PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Tuesday the 29th of July, 2014

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[09:39:45] <atodorov> hi everyone, I'm working on one of my packages to make it work with Python3. I've created a fresh virtualenv with Python3 and then pip install my package. pip freeze shows it as UNKNOWN==0.0.0.
[09:40:01] <atodorov> anyone knows why and what to do to fix it ?
[17:10:02] <kennethreitz> does pip have an externally available requirements.txt parser?
[17:10:31] <kennethreitz> I'm using pkg_resources.parse_requirements currently, but it errors out on certian lines
[17:10:42] <kennethreitz> e.g. https://www.djangoproject.com/download/1.7c2/tarball/
[17:11:17] <dstufft> kennethreitz: We don't have a public API for it, some people use our internal routines for it, but it's not public so it may or may not break
[17:11:32] <kennethreitz> hmm
[17:11:45] <kennethreitz> well, if i'm resoponsible for the version of pip, i think that'll be fine
[17:11:53] <kennethreitz> dstufft: does it use pkg_resources objects inernally?
[17:12:29] <dstufft> https://github.com/pypa/pip/blob/develop/pip/req/req_file.py#L12-L127
[17:13:03] <kennethreitz> nice
[17:13:05] <kennethreitz> i may have to use this
[17:14:06] <dstufft> it yields InstallRequirements
[17:14:16] <dstufft> https://github.com/pypa/pip/blob/develop/pip/req/req_install.py#L34
[17:14:31] <dstufft> also a private API techincally
[17:21:33] <kennethreitz> ahh, this is quite nice
[17:21:42] <kennethreitz> InstallRequirements.req
[17:21:48] <kennethreitz> perfection
[17:28:58] <kennethreitz> fyi, it's for this
[17:28:58] <kennethreitz> https://github.com/kennethreitz/pip-pop
[17:31:11] <DanielHolth> funky
[17:58:29] <jezdez> kennethreitz: dstufft: fwiw, caniusepython3 the CLI tool uses that parser as well
[17:59:06] <jezdez> I talked to brett about it and had to shrug when he asked me if there is a requirements format spec
[17:59:29] <jezdez> that said, there is a standalone parser somewhere on github
[18:09:48] <kennethreitz> jezdez: nice. This is working perfectly so far, and since I control the version of pip, it'll be fine
[18:50:15] <agronholm> kennethreitz: did you get my email?
[18:50:30] <kennethreitz> agronholm: i don't recall. What was it about?
[18:50:35] <agronholm> apscheduler 3.0
[18:50:40] <kennethreitz> ah, yes i did
[18:50:42] <agronholm> ok
[18:50:52] <kennethreitz> looking forward to updating it :)
[18:50:55] <agronholm> great :)
[18:51:03] <agronholm> gonna blog about it in the near future too