Re: [Distutils] PEP 438 - Transition Phase 1
Someone else got that error on 2.6 they said 2.7 worked for them. I wasn't able to reproduce on either 2.6 or 2.7. I can add the dep info when I get home. Currently sitting in the ER for my wife. On May 20, 2013, at 3:20 PM, PJ Eby wrote: > On Mon, May 20, 2013 at 1:03 PM, Lennart Regebro wrote: >> On Mon, May 20, 2013 at 6:05 PM, PJ Eby wrote: >>> On Sun, May 19, 2013 at 7:26 PM, Richard Jones wrote: Donald wrote a handy script to help make this easier: https://pypi.python.org/pypi/pypi-show-urls >>> >>> Doesn't seem to work for me: >>> >>> $ pypi-show-urls -u pje >>> Traceback (most recent call last): >>> File "/usr/bin/pypi-show-urls", line 8, in >>>load_entry_point('pypi-show-urls==2.1.1', 'console_scripts', >>> 'pypi-show-urls')() >>> File "build/bdist.linux-i686/egg/pkg_resources.py", line 318, in >>> load_entry_point >>> File "build/bdist.linux-i686/egg/pkg_resources.py", line 2221, in >>> load_entry_point >>> File "build/bdist.linux-i686/egg/pkg_resources.py", line 1954, in load >>> File "build/bdist.cygwin-1.7.15-i686/egg/pypi_show_urls/__main__.py", >>> line 24, in >>> ImportError: No module named pip.req >> >> Do you have pip installed? > > No, but installing it didn't help; I got an ElementTree exception next: > > $ pypi-show-urls -u pje > > Download candidates for PEAK > > Traceback (most recent call last): > File "/usr/bin/pypi-show-urls", line 8, in >load_entry_point('pypi-show-urls==2.1.1', 'console_scripts', > 'pypi-show-urls')() > File "build/bdist.cygwin-1.7.15-i686/egg/pypi_show_urls/__main__.py", > line 148, in main > File "/usr/lib/python2.6/xml/etree/ElementPath.py", line 198, in findall >return _compile(path).findall(element) > File "/usr/lib/python2.6/xml/etree/ElementPath.py", line 176, in _compile >p = Path(path) > File "/usr/lib/python2.6/xml/etree/ElementPath.py", line 93, in __init__ >"expected path separator (%s)" % (op or tag) > SyntaxError: expected path separator ([) > > (And of course the package should specify that it has an install-time > requirement for pip.) > ___ > Distutils-SIG maillist - Distutils-SIG@python.org > http://mail.python.org/mailman/listinfo/distutils-sig ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] PEP 438 - Transition Phase 1
On Mon, May 20, 2013 at 1:03 PM, Lennart Regebro wrote: > On Mon, May 20, 2013 at 6:05 PM, PJ Eby wrote: >> On Sun, May 19, 2013 at 7:26 PM, Richard Jones wrote: >>> Donald wrote a handy script to help make this easier: >>> >>> https://pypi.python.org/pypi/pypi-show-urls >> >> Doesn't seem to work for me: >> >> $ pypi-show-urls -u pje >> Traceback (most recent call last): >> File "/usr/bin/pypi-show-urls", line 8, in >> load_entry_point('pypi-show-urls==2.1.1', 'console_scripts', >> 'pypi-show-urls')() >> File "build/bdist.linux-i686/egg/pkg_resources.py", line 318, in >> load_entry_point >> File "build/bdist.linux-i686/egg/pkg_resources.py", line 2221, in >> load_entry_point >> File "build/bdist.linux-i686/egg/pkg_resources.py", line 1954, in load >> File "build/bdist.cygwin-1.7.15-i686/egg/pypi_show_urls/__main__.py", >> line 24, in >> ImportError: No module named pip.req > > Do you have pip installed? No, but installing it didn't help; I got an ElementTree exception next: $ pypi-show-urls -u pje Download candidates for PEAK Traceback (most recent call last): File "/usr/bin/pypi-show-urls", line 8, in load_entry_point('pypi-show-urls==2.1.1', 'console_scripts', 'pypi-show-urls')() File "build/bdist.cygwin-1.7.15-i686/egg/pypi_show_urls/__main__.py", line 148, in main File "/usr/lib/python2.6/xml/etree/ElementPath.py", line 198, in findall return _compile(path).findall(element) File "/usr/lib/python2.6/xml/etree/ElementPath.py", line 176, in _compile p = Path(path) File "/usr/lib/python2.6/xml/etree/ElementPath.py", line 93, in __init__ "expected path separator (%s)" % (op or tag) SyntaxError: expected path separator ([) (And of course the package should specify that it has an install-time requirement for pip.) ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] PEP 438 - Transition Phase 1
It requires pip because it process requirements files too. I don't think pip works in install_requires though. A few versions older didn't parse requirements files and didn't have pip requirement. On May 20, 2013, at 12:05 PM, PJ Eby wrote: > On Sun, May 19, 2013 at 7:26 PM, Richard Jones wrote: >> Donald wrote a handy script to help make this easier: >> >> https://pypi.python.org/pypi/pypi-show-urls > > Doesn't seem to work for me: > > $ pypi-show-urls -u pje > Traceback (most recent call last): > File "/usr/bin/pypi-show-urls", line 8, in >load_entry_point('pypi-show-urls==2.1.1', 'console_scripts', > 'pypi-show-urls')() > File "build/bdist.linux-i686/egg/pkg_resources.py", line 318, in > load_entry_point > File "build/bdist.linux-i686/egg/pkg_resources.py", line 2221, in > load_entry_point > File "build/bdist.linux-i686/egg/pkg_resources.py", line 1954, in load > File "build/bdist.cygwin-1.7.15-i686/egg/pypi_show_urls/__main__.py", > line 24, in > ImportError: No module named pip.req > ___ > Distutils-SIG maillist - Distutils-SIG@python.org > http://mail.python.org/mailman/listinfo/distutils-sig ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] PEP 438 - Transition Phase 1
On Mon, May 20, 2013 at 6:05 PM, PJ Eby wrote: > On Sun, May 19, 2013 at 7:26 PM, Richard Jones wrote: >> Donald wrote a handy script to help make this easier: >> >> https://pypi.python.org/pypi/pypi-show-urls > > Doesn't seem to work for me: > > $ pypi-show-urls -u pje > Traceback (most recent call last): > File "/usr/bin/pypi-show-urls", line 8, in > load_entry_point('pypi-show-urls==2.1.1', 'console_scripts', > 'pypi-show-urls')() > File "build/bdist.linux-i686/egg/pkg_resources.py", line 318, in > load_entry_point > File "build/bdist.linux-i686/egg/pkg_resources.py", line 2221, in > load_entry_point > File "build/bdist.linux-i686/egg/pkg_resources.py", line 1954, in load > File "build/bdist.cygwin-1.7.15-i686/egg/pypi_show_urls/__main__.py", > line 24, in > ImportError: No module named pip.req Do you have pip installed? //Lennart ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] PEP 438 - Transition Phase 1
On Sun, May 19, 2013 at 7:26 PM, Richard Jones wrote: > Donald wrote a handy script to help make this easier: > > https://pypi.python.org/pypi/pypi-show-urls Doesn't seem to work for me: $ pypi-show-urls -u pje Traceback (most recent call last): File "/usr/bin/pypi-show-urls", line 8, in load_entry_point('pypi-show-urls==2.1.1', 'console_scripts', 'pypi-show-urls')() File "build/bdist.linux-i686/egg/pkg_resources.py", line 318, in load_entry_point File "build/bdist.linux-i686/egg/pkg_resources.py", line 2221, in load_entry_point File "build/bdist.linux-i686/egg/pkg_resources.py", line 1954, in load File "build/bdist.cygwin-1.7.15-i686/egg/pypi_show_urls/__main__.py", line 24, in ImportError: No module named pip.req ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] PEP 438 - Transition Phase 1
On 19 May, 2013, at 2:51, Donald Stufft wrote: >> > > Forgot to mention, both of those options are available by clicking on "urls" > when viewing a package you have permissions on, see: > http://d.stufft.io/image/2h073q2L3Z29 I get a "Forbidden" error when following the "urls" link in Safari on OSX 10.8. The link does work properly with Chrome on the same machine. Ronald ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] PEP 438 - Transition Phase 1
On May 19, 2013, at 6:09 PM, PJ Eby wrote: > On Sun, May 19, 2013 at 4:58 AM, holger krekel wrote: >> Tensed to see how many people will switch without the mails > > I'll be waiting for the mails, myself, on account of I'm hoping it'll > give me a nice list of which of my packages I can switch, so as not to > need to go check on all of them myself. > > It occurred to me today, something I probably should have mentioned > earlier in the PEP process, but it'd be nice to be able to switch off > home page links without switching off download links. I never have > anything to spider in my homepage links, only ever in the download > links. > > Ah well, it'll probably be moot soon. If I understand the PEP > correctly, I should be able to write a script that posts #md5-tagged > links to my development snapshots, so I can include those directly > instead of using directory spidering from the download URLs. Maybe > I'll write an "uplink" command extension for setuptools to generate > and send the links to PyPI, using the same hooks the "upload" command > does. Then I could tie it straight into my build process for > development snapshots, without having to run a separate script. Sorry I forgot to reply to this. Yes this is completely accurate as far as what you'll be able to do (and can do right now). Emails will be coming soon I hope, my processing of PyPI is in the o's now. Just a data point to show the difference this change can have on the large scale, I'm 3 days into processing all of PyPI looking for things that can be downloaded and isntalled and I'm only on the o's. For kicks I did the same thing but with spidering external sites turned off and it took about 10 minutes to process all of PyPI. - Donald Stufft PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA signature.asc Description: Message signed with OpenPGP using GPGMail ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] PEP 438 - Transition Phase 1
And the urls page now has a toggle all checkbox. Thanks again! On May 20, 2013, at 7:16 AM, Donald Stufft wrote: > > On May 20, 2013, at 2:44 AM, Marius Gedminas wrote: > >> On Mon, May 20, 2013 at 02:21:05AM -0400, Donald Stufft wrote: >>> >>> On May 20, 2013, at 2:18 AM, Lennart Regebro wrote: >>> On Sun, May 19, 2013 at 10:20 PM, Donald Stufft wrote: > Hrm, ZPT doesn't seem to be stripping the CDATA or unescaping the strings? > > https://gist.github.com/dstufft/5608838 is what i have in the template > file and that appears verbatim in the output? Yes? It will escape *data* inserted into the template (unless told not to), but what is in the template will appear in the output unescaped. I'm not sure how any template system can work otherwise, but perhaps I've been using Zope too long. :-) //Lennart >>> >>> Maybe you can tell me what I'm doing wrong? >> >> Using zope.pagetemplate. ;) >> >> More seriously, zope.pagetemplate has two parsing modes: HTML and XML. >> Nobody actually uses the XML mode (pt files start with an >> declaration, all tal/metal namespaces must be explicitly defined using >> xmlns:tal=url-that-nobody-can-remember). The HTML mode allows you to >> write Javascript just like you would do it in a browser, with no extra >> XML-quoting: >> >> > >> >> Does this not work for you? I'm currently looking at a Zope3 app that >> does precisely this in its working page templates. >> >>> I need to insert a tag with Javascript in it. Tres told me to >>> put the contents of the script tag in CDATA blocks which I did, and >>> then when the template was rendered it still had the CDATA blocks so >>> it was invalid javascript. >> >> I seem to recall hacks of the form >> >>