Re: [Twisted-Python] Twisted 9.0.0?
On 3/4/10 21:21 , exar...@twistedmatrix.com wrote: I think that easy_install and related tools can be directed to the proper download location by providing a Download-URL on the PyPI page. E.g. the page for Twisted 9.0.0: http://pypi.python.org/pypi/Twisted/9.0.0 should have a Download-URL link to: http://tmrc.mit.edu/mirror/twisted/Twisted/9.0/ That's easy enough to adjust. There. Someone want to try it and see if it works? Thanks Jean-Paul and Ziga! It indeed works like a charm! I have to admit that, for someone who uses PyPi daily, I know too little about it. I probably would have started tinkering with my zc.buildout configuration to get it working, but this is a much better solution. Thanks again, Mark ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Re: [Twisted-Python] Twisted 9.0.0?
Tim Allen wrote: On Thu, Mar 04, 2010 at 01:55:50PM -0500, Glyph Lefkowitz wrote: Now that our release process is better documented (THANK YOU JML), you might be able to have a look at http://twistedmatrix.com/trac/wiki/ReleaseProcess and figure out where 'setup.py upload' could fit in without uploading a tarball that is _not_ actually our official release. If setup.py upload involves setup.py sdist then I guess this is ticket #4138 again. No, it doesn't... see the release process I use for my own packages here: http://packages.python.org/errorhandler/development.html#making-a-release cheers, Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Re: [Twisted-Python] Twisted 9.0.0?
Tim Allen wrote: ...so presumably sdist *is* a prerequisite for upload. Or are you saying that you can store any old file as dist/$PACKAGE-$VERSION.tar.gz and setup.py upload will ship it to PyPI? I think that's true, but I admit, I haven't checked myself ;-) Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Re: [Twisted-Python] Twisted 9.0.0?
On 02:42 pm, ch...@simplistix.co.uk wrote: Tim Allen wrote: ...so presumably sdist *is* a prerequisite for upload. Or are you saying that you can store any old file as dist/$PACKAGE-$VERSION.tar.gz and setup.py upload will ship it to PyPI? I think that's true, but I admit, I haven't checked myself ;-) It is. Or at least something like sdist. The thread Glyph linked to covers this. Jean-Paul ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
[Twisted-Python] Twisted 9.0.0?
Hi everyone! I am a bit puzzled about the way new version of Twisted is released. Or better: the way the old version seems to be taken out of service. Last weeks I've been developing agains version Twisted 9.0.0. Yesterday I wanted to deploy my code to my production server, but to my surprise I could not easy_install that version anymore: $ easy_install Twisted==9.0.0 Searching for Twisted==9.0.0 Reading http://pypi.python.org/simple/Twisted/ Reading http://www.twistedmatrix.com Reading http://twistedmatrix.com/products/download Reading http://twistedmatrix.com/projects/core/ Reading http://twistedmatrix.com/ No local packages or download links found for Twisted==9.0.0 Best match: None (Okay, actually I'm using buildout to setup my environment, but the above demonstrates my problem more clearly.) I'm sure the new version of Twisted is better and improved but I still wonder why version 9.0.0 has effectively been decommissioned. Or am I missing something and is it still possible to easy_install version 9.0.0? Thanks, Mark -- Mark van Lent m.van.l...@zestsoftware.nl ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Re: [Twisted-Python] Twisted 9.0.0?
On 10:45 am, m.van.l...@zestsoftware.nl wrote: Hi everyone! I am a bit puzzled about the way new version of Twisted is released. Or better: the way the old version seems to be taken out of service. Last weeks I've been developing agains version Twisted 9.0.0. Yesterday I wanted to deploy my code to my production server, but to my surprise I could not easy_install that version anymore: $ easy_install Twisted==9.0.0 Searching for Twisted==9.0.0 Reading http://pypi.python.org/simple/Twisted/ Reading http://www.twistedmatrix.com Reading http://twistedmatrix.com/products/download Reading http://twistedmatrix.com/projects/core/ Reading http://twistedmatrix.com/ No local packages or download links found for Twisted==9.0.0 Best match: None (Okay, actually I'm using buildout to setup my environment, but the above demonstrates my problem more clearly.) I'm sure the new version of Twisted is better and improved but I still wonder why version 9.0.0 has effectively been decommissioned. Or am I missing something and is it still possible to easy_install version 9.0.0? Decommissioned? Not really. There is a link to older releases at the top of http://twistedmatrix.com/trac/wiki/Downloads. You can find releases going all the way back to 2.0 there. Perhaps easy_install isn't the best way to manage deployments to your production server? Jean-Paul ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Re: [Twisted-Python] Twisted 9.0.0?
exar...@twistedmatrix.com wrote: Perhaps easy_install isn't the best way to manage deployments to your production server? No, but buildout is... However, this process of discovering packages (hit pypi, scrape web pags if the distro isn't on pypi) is the only solution the python community (be it pip, easy_install, virtualenv or buildout) is using to download packages... Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Re: [Twisted-Python] Twisted 9.0.0?
exar...@twistedmatrix.com wrote: On 04:53 pm, kevin.h...@gmail.com wrote: Is there any particular reason Twisted doesn't upload packages to PyPI itself? Messing about with web forms is no fun and setup.py register has issues. What issues? I've never had problems with either the register or upload commands... Having the distributions on PyPI makes the OP's problem go away, and reduces the maintenance burned for you guys who release twisted... Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Re: [Twisted-Python] Twisted 9.0.0?
Jonathan Lange wrote: I don't know how the PyPI announcement was done (although I'd love to!), but I think you can announce new versions without decommissioning old ones. PyPI already does the right thing w.r.t. hide previous versions (either way works, it doesn't affect tools like easy_install) but ONLY if you put your distros on PyPI... ...obviously PyPI has not knowledge of your website and so can't do anything about it. Chris -- Simplistix - Content Management, Batch Processing Python Consulting - http://www.simplistix.co.uk ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Re: [Twisted-Python] Twisted 9.0.0?
Glyph Lefkowitz wrote: On Mar 4, 2010, at 7:59 AM, Jonathan Lange wrote: On Thu, Mar 4, 2010 at 10:45 AM, Mark van Lent m.van.l...@zestsoftware.nl wrote: Hi everyone! I am a bit puzzled about the way new version of Twisted is released. Or better: the way the old version seems to be taken out of service. Last weeks I've been developing agains version Twisted 9.0.0. Yesterday I wanted to deploy my code to my production server, but to my surprise I could not easy_install that version anymore: $ easy_install Twisted==9.0.0 Searching for Twisted==9.0.0 Reading http://pypi.python.org/simple/Twisted/ Reading http://www.twistedmatrix.com Reading http://twistedmatrix.com/products/download Reading http://twistedmatrix.com/projects/core/ Reading http://twistedmatrix.com/ No local packages or download links found for Twisted==9.0.0 Best match: None (Okay, actually I'm using buildout to setup my environment, but the above demonstrates my problem more clearly.) I'm sure the new version of Twisted is better and improved but I still wonder why version 9.0.0 has effectively been decommissioned. Or am I missing something and is it still possible to easy_install version 9.0.0? It's an oversight. I think it's actually a bug in easy_install, or at least a mis-design. To make something easy_installable, you don't provide structured information in PyPI; there may be a way to do that, but most packages I've seen (Twisted included) just provide a link to a page which then provides a link to a file with a filename of vaguely the appropriate shape. easy_install works by screen-scraping that link. In our case, the home page, http://twistedmatrix.com, links directly to a Twisted-version.tar.bz2, which is then used. If someone (perhaps Mark van Lent!) could point us at how to provide the correctly structured information to easy_install via PyPI so it will _stop_ screen-scraping our website, and just point at the correct files, this problem could be addressed. I think that easy_install and related tools can be directed to the proper download location by providing a Download-URL on the PyPI page. E.g. the page for Twisted 9.0.0: http://pypi.python.org/pypi/Twisted/9.0.0 should have a Download-URL link to: http://tmrc.mit.edu/mirror/twisted/Twisted/9.0/ Regards, Ziga ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Re: [Twisted-Python] Twisted 9.0.0?
On 07:54 pm, ziga.seilna...@gmail.com wrote: Glyph Lefkowitz wrote: If someone (perhaps Mark van Lent!) could point us at how to provide the correctly structured information to easy_install via PyPI so it will _stop_ screen-scraping our website, and just point at the correct files, this problem could be addressed. I think that easy_install and related tools can be directed to the proper download location by providing a Download-URL on the PyPI page. E.g. the page for Twisted 9.0.0: http://pypi.python.org/pypi/Twisted/9.0.0 should have a Download-URL link to: http://tmrc.mit.edu/mirror/twisted/Twisted/9.0/ That's easy enough to adjust. There. Someone want to try it and see if it works? Jean-Paul ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Re: [Twisted-Python] Twisted 9.0.0?
exar...@twistedmatrix.com wrote: On 07:54 pm, ziga.seilna...@gmail.com wrote: I think that easy_install and related tools can be directed to the proper download location by providing a Download-URL on the PyPI page. E.g. the page for Twisted 9.0.0: http://pypi.python.org/pypi/Twisted/9.0.0 should have a Download-URL link to: http://tmrc.mit.edu/mirror/twisted/Twisted/9.0/ That's easy enough to adjust. There. Someone want to try it and see if it works? Jean-Paul It looks like it works now: I:\ easy_install Twisted==9.0.0 Searching for Twisted==9.0.0 Reading http://pypi.python.org/simple/Twisted/ Reading http://www.twistedmatrix.com Reading http://twistedmatrix.com/products/download Reading http://twistedmatrix.com/projects/core/ Reading http://twistedmatrix.com/ Reading http://tmrc.mit.edu/mirror/twisted/Twisted/9.0/ Best match: Twisted 9.0.0 Downloading http://tmrc.mit.edu/mirror/twisted/Twisted/9.0/Twisted-9.0.0.win32-py2.5.exe Now, how to get rid of the egg yolk... Regards, Ziga ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Re: [Twisted-Python] Twisted 9.0.0?
On Thu, Mar 04, 2010 at 01:55:50PM -0500, Glyph Lefkowitz wrote: Now that our release process is better documented (THANK YOU JML), you might be able to have a look at http://twistedmatrix.com/trac/wiki/ReleaseProcess and figure out where 'setup.py upload' could fit in without uploading a tarball that is _not_ actually our official release. If setup.py upload involves setup.py sdist then I guess this is ticket #4138 again. I still plan to tackle it sometime soon, but totally would not object if anybody else wanted to dive in. :D ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Re: [Twisted-Python] Twisted 9.0.0 prerelease 1
On 2009.11.20 13:33:24 -0800, David Ripton wrote: On 2009.11.19 22:13:46 -0500, Christopher Armstrong wrote: Hey guys. I've done an initial cut of Twisted 9. Please check out these tarballs and tell me whether or not you find any regressions or other release-related problems. The release notes are here: http://twistedmatrix.com/users/radix/twisted-prereleases/9.0.0pre1/NEWS.txt The tarballs are here: http://twistedmatrix.com/users/radix/twisted-prereleases/9.0.0pre1/ Please post a message even if you don't have any problems. I just replaced Twisted 8.2.0 with 9.0.0pre1 in my local Git repo at work, and did a full build of our product, and then ran the bits that use Twisted (we use the core and the gtk2 reactor and AMP, on RHEL), and nothing obviously weird or bad happened. Bor-ing! Maybe try fewer unit tests next time, to add more excitement to the upgrade process? It also installed effortlessly and worked perfectly on Gentoo x86 and Ubuntu amd64. The only difference I actually noticed from 8.2 was the lack of deprecation warnings from Python 2.6. (Skip to the bottom if you don't care about the detailed pain of installing Twisted from source on Windows.) Then I tried to install it on Windows XP. python setup.py install whines about a missing vcvars.bat. I think that means I need to install a C compiler. I download Visual C++ 2008 Express Edition with Service Pack 1 from microsoft.com. Huge license agreement, tiny window, making it almost impossible to actually read it all. Fearing all that legalese, I abort the install and fetch my seven-year-old daughter and ask her to install it, thus preserving my right to someday publish benchmarks of SQL Server without Microsoft's permission. (Yes, it would be cruel to preserve my own rights while sacrificing hers, but she's too young to sign legally binding contracts.) Then we wait forever for the world's slowest installer. (Express Edition. Heh.) It finally finishes and then tells her to reboot. I thank her and send her back to playing. I rerun Twisted's python setup.py install I see some errors about missing epoll.h, but the install continues. I finally start up my game server. To Help Protect My Computer, Windows Firewall has blocked some features of this program. (Funny, it doesn't pop up that same warning if someone tries to use IE or Outlook.) I unblock python. I see deprecation warnings for md5, that I thought were fixed in Twisted 9. So maybe I'm still running 8.2. I start python, import twisted, and print twisted.version. 9.0.0pre1. But I might have a mixed version install, so I go to Add/Remove Programs and uninstall Twisted 8.2, then run python setup.py install again to reinstall Twisted 9. I start my game server again, and get No module named zope.interface I guess the Twisted 8.2 binary installer installed it for me and when I uninstalled it I lost it, so now I need to install it myself. I fetch a zope interface tarball, gunzip it, untar it, and run python setup.py install on it. I start my game server again, and get ImportError: No module named pkg_resources. I go back to the Twisted directory and redo python setup.py install Same error. So I guess the zope interface install failed in some odd way without warning. I go back to the zope interface page, and see a note that says to just use the .exe installer on Windows. But there isn't one. I hunt around the zope site for several minutes and fail to find one. (There's one for all of zope, but that seems like overkill.) I go to PyPI and find a zope interface egg for Windows. I double-click on the egg and Windows has no idea what it is. I go to PyPI and find a setuptools .exe installer, install that, then use setuptools' ez_setup.py to install the Zope Interface egg. And then Twisted 9.0.0pre1 works fine. So the moral of the story is that installing software from source on Windows really is way too hard, and Windows users really do need binary installers. But Twisted 9 did eventually work for me on Windows. -- David Riptondrip...@ripton.net ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Re: [Twisted-Python] Twisted 9.0.0 prerelease 1
On Nov 20, 2009, at 12:23 PM, Jonathan Lange wrote: On Thu, Nov 19, 2009 at 9:13 PM, Christopher Armstrong ra...@twistedmatrix.com wrote: Hey guys. I've done an initial cut of Twisted 9. Please check out these tarballs and tell me whether or not you find any regressions or other release-related problems. The release notes are here: http://twistedmatrix.com/users/radix/twisted-prereleases/9.0.0pre1/NEWS.txt The tarballs are here: http://twistedmatrix.com/users/radix/twisted-prereleases/9.0.0pre1/ Please post a message even if you don't have any problems. Woot! I have many problems, but none of them seem to be related to this release. Hooray!!! ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Re: [Twisted-Python] Twisted 9.0.0 prerelease 1
On 2009.11.19 22:13:46 -0500, Christopher Armstrong wrote: Hey guys. I've done an initial cut of Twisted 9. Please check out these tarballs and tell me whether or not you find any regressions or other release-related problems. The release notes are here: http://twistedmatrix.com/users/radix/twisted-prereleases/9.0.0pre1/NEWS.txt The tarballs are here: http://twistedmatrix.com/users/radix/twisted-prereleases/9.0.0pre1/ Please post a message even if you don't have any problems. I just replaced Twisted 8.2.0 with 9.0.0pre1 in my local Git repo at work, and did a full build of our product, and then ran the bits that use Twisted (we use the core and the gtk2 reactor and AMP, on RHEL), and nothing obviously weird or bad happened. Bor-ing! Maybe try fewer unit tests next time, to add more excitement to the upgrade process? -- David Riptondrip...@ripton.net ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
[Twisted-Python] Twisted 9.0.0 prerelease 1
Hey guys. I've done an initial cut of Twisted 9. Please check out these tarballs and tell me whether or not you find any regressions or other release-related problems. The release notes are here: http://twistedmatrix.com/users/radix/twisted-prereleases/9.0.0pre1/NEWS.txt The tarballs are here: http://twistedmatrix.com/users/radix/twisted-prereleases/9.0.0pre1/ Please post a message even if you don't have any problems. -- Christopher Armstrong http://radix.twistedmatrix.com/ http://planet-if.com/ ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python