command-line zope.org product upload ?
If you have a recipe or script or ideas for this, I'd appreciate it. I have a non-functional makefile recipe that currently looks like this - echo id=$(PRODUCT)-$(VERSION).tgz\nfile=`cat releases/$(PRODUCT)-$(VERSION).tgz | \ python -c "import sys,urllib; print urllib.quote_plus(sys.stdin.read())"` \ | TERM=vt100 lynx -post_data -auth=$(USERZOPEORG):$(PASSZOPEORG) -term=vt100 \ -dump http://zope.org/Members/simon/ZWiki/manage_addProduct/ZopeSite/Release_facto... \
.log
(Oh please! shoot me now! :)
Hi, Ive been successfully finding other things to do other ZPM which is an attempt to make a package manager for Zope ala RPM, PPM etc. A command line interface to it would be cool. http://www.zope.org/Members/andym/ZPM Cheers. -- Andy McKay. ----- Original Message ----- From: "Simon Michael" <simon@joyful.com> To: <zope-dev@zope.org> Sent: Tuesday, June 19, 2001 10:46 AM Subject: [Zope-dev] command-line zope.org product upload ?
If you have a recipe or script or ideas for this, I'd appreciate it. I have a non-functional makefile recipe that currently looks like this -
echo id=$(PRODUCT)-$(VERSION).tgz\nfile=`cat releases/$(PRODUCT)-$(VERSION).tgz | \ python -c "import sys,urllib; print urllib.quote_plus(sys.stdin.read())"` \ | TERM=vt100 lynx -post_data -auth=$(USERZOPEORG):$(PASSZOPEORG) -term=vt100 \ -dump http://zope.org/Members/simon/ZWiki/manage_addProduct/ZopeSite/Release_facto ry/Release_add \
.log
(Oh please! shoot me now! :)
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
On Tue, 19 Jun 2001, Andy McKay wrote:
Ive been successfully finding other things to do other ZPM which is an attempt to make a package manager for Zope ala RPM, PPM etc. A command line interface to it would be cool.
Cool. And maybe some apt-get functionality? Like 'zope-apt-get dist-upgrade'? :-) Cheers, Morten
Yeah sure :) Lets get products and zexp's working first :) Cheers. -- Andy McKay. ----- Original Message ----- From: "Morten W. Petersen" <morten@thingamy.net> To: "Andy McKay" <andym@activestate.com> Cc: <zope-dev@zope.org>; "Simon Michael" <simon@joyful.com> Sent: Tuesday, June 19, 2001 11:13 AM Subject: Re: [Zope-dev] command-line zope.org product upload ?
On Tue, 19 Jun 2001, Andy McKay wrote:
Ive been successfully finding other things to do other ZPM which is an attempt to make a package manager for Zope ala RPM, PPM etc. A command line interface to it would be cool.
Cool. And maybe some apt-get functionality? Like 'zope-apt-get dist-upgrade'? :-)
Cheers,
Morten
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
"Morten W. Petersen" <morten@thingamy.net> writes:
Cool. And maybe some apt-get functionality? Like 'zope-apt-get dist-upgrade'? :-)
Yeah, hang on - uh, Jerome ? Hey, uh, me and the folks on the list think there's this one little extra that would make zshell perfect.. :) Meanwhile, if I could just figure out how to POST multi-field form data I'd make some progress..
Now I can do something like
make zdoreleaseall creating ZWiki-0.9.3.tgz release on zope.org uploading ZWiki-0.9.3.tgz configuring ZWiki-0.9.3.tgz properties submitting ZWiki-0.9.3.tgz to the catalog creating ZWiki-0.9.3-released news item on zope.org configuring ZWiki-0.9.3-released properties submitting ZWiki-0.9.3-released to the catalog
Here are the makefile recipes with the magic curl incantations. A zope.org entry in ~/.netrc is assumed. PRODUCT=ZWiki VERSION=0.9.3 STATUS=Development TITLE= PLATFORM=All PRODUCTURL=http://zope.org/Members/simon/ZWiki FILE=$(PRODUCT)-$(VERSION).tgz zdoreleaseall: zdorelease zdorelease-catalog zdoannounce zdoannounce-catalog zdorelease: zdorelease-create zdorelease-upload zdorelease-configure zdorelease-create: @echo creating $(FILE) release on zope.org @curl -s -n -Fid=$(FILE) -Ftitle='' -Ffile=@releases/$(FILE) $(PRODUCTURL)/manage_addProduct/ZopeSite/Release_factory/Release_add -o /dev/null zdorelease-upload: @echo uploading $(FILE) @curl -n -F"file=@releases/$(FILE);type=application/x-tgz" $(PRODUCTURL)/$(FILE)/editFile -o /dev/null zdorelease-configure: @echo configuring $(FILE) properties @curl -s -n -Ftitle=$(TITLE) -Fversion=$(VERSION) -Fstatus=$(STATUS) -Fplatform=$(PLATFORM) $(PRODUCTURL)/$(FILE)/editItem -o /dev/null zdorelease-catalog: @echo submitting $(FILE) to the catalog @curl -s -n -F"submit= Request Entry " $(PRODUCTURL)/$(FILE)/manageCatalog -o /dev/null NEWSITEM=$(PRODUCT)-$(VERSION)-released NEWSTEXT=`echo "/^\w.*$(VERSION)/;/^\w/-1p" |ed -s Changelog` zdoannounce: zdoannounce-create zdoannounce-configure zdoannounce-create: @echo creating $(NEWSITEM) news item on zope.org @curl -s -n -Fid=$(NEWSITEM) -Ftitle="" -Ftext="" -F"submit= Add " $(PRODUCTURL)/manage_addProduct/ZopeSite/fNewsItem/addNewsItem -o /dev/null zdoannounce-configure: @echo configuring $(NEWSITEM) properties @echo "/^\w.*$(VERSION)/;/^\w/-1p" |ed -s Changelog | curl -s -n -F'text=<-' -Ftitle="$(PRODUCT) $(VERSION) released" -FNewsItem_topics=Announcement -F"format=Structured Text" $(PRODUCTURL)/$(NEWSITEM)/editItem -o /dev/null zdoannounce-catalog: @echo submitting $(NEWSITEM) to the catalog @curl -s -n $(PRODUCTURL)/$(NEWSITEM)/manageCatalog -o /dev/null
participants (3)
-
Andy McKay -
Morten W. Petersen -
Simon Michael