PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Tuesday the 17th of February, 2015

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[00:01:16] <Guddu> dstufft, I should put those lines i setup.py of reportlab and zipp it again in a .tar.gz file and run pip again to get extra info?
[00:02:05] <dstufft> Guddu: yea
[00:02:14] <dstufft> it should give you a debugger session
[00:02:31] <Guddu> Thanks dstufft I will try that in a local environment now
[00:03:16] <Guddu> Once i get to debugger session is there anything specific i should do?
[00:03:31] <dstufft> try importing setuptools and see what happens
[00:07:41] <Guddu> dstufft, Unfortunately I am not able to log in to VPN . . I will continue this from office the first thing tomorrow. I will do all this from command prompt then and not setup.py of reportlab right?
[00:10:35] <dstufft> Guddu: yea
[08:11:21] <ronny> moin
[08:11:35] <ronny> do we have any mac users?
[09:41:12] <ronny> hmm
[09:41:27] <ronny> wht is wrong if setuptools hangs after writing egg_info
[09:58:23] <mgedmin> I once found a Python package doing raw_input() from its setup.py
[09:58:29] <mgedmin> that... doesn't work well with pip
[10:28:59] <ronny> should setuptools/pip monkeypatch that
[10:29:38] <ronny> +?
[10:34:00] <mgedmin> maybe
[13:48:12] <SamuelMarks> hi
[13:48:12] <SamuelMarks> Handling multiple repositories, each with their own dependencies. Why isn't p2—which is a dependency of p1, which is a dependency of p0—being installed [via github]? - stackoverflow.com/q/28540839
[13:54:19] <ronny> SamuelMarks: did you list them in setup.py? the requirements files are pip only
[13:55:05] <mgedmin> SamuelMarks: stackoverflow.com/a/28544551/110151 is correct
[13:55:29] <ronny> SamuelMarks: requiremens files are good for pinning versions or finalr projects, they have no use in libraries unless you parse them in each setup.py (which is kinda tricky)
[13:56:21] <SamuelMarks> Yeah, I tried putting them in install_requires and dependency_links; but that failed to find the package
[13:56:31] <SamuelMarks> (see my git commit history for what I tried)
[13:56:37] <mgedmin> can you link to the git repos?
[13:57:09] <mgedmin> the SO question links to github.com/bettertutors, which has four repos, and I don't know where I should look
[13:57:12] <SamuelMarks> github.com/bettertutors - github.com/bettertutors/user-api/blob/master/setup.py - github.com/bettertutors/rest-api/blob/master/setup.py
[13:57:14] <ronny> SamuelMarks: for convenience you might want to set up a internal pypi server with something like evpi
[13:57:22] <ronny> *devpi
[13:58:00] <SamuelMarks> ronny: All my stuff is open source, so will eventually put it on pypi proper. For now though, everything is too much in an alpha dev stage.
[13:58:05] <mgedmin> when you say "failed to find the package", what package do you mean?
[13:58:19] <mgedmin> ideally pastebin the console session where you tried to pip install something and got an error
[13:58:30] <ronny> SamuelMarks: you can spin up a devpi instance even on your local computer
[13:58:48] <SamuelMarks> Here's my pip freeze output and a comment showing what's missing (sql-models to be exact) - gist.github.com/SamuelMarks/684b7737e2d54965f1ef
[13:59:25] <ronny> SamuelMarks: for development it might also make sense to just make a virtualenv in a parent directory, and pip install -e the repos in order
[14:00:18] <SamuelMarks> ronny: Maybe, but at the end of the day I am deploying through a CD system, so everything should be automated + standards driven rather than through custom scripts
[14:00:28] <SamuelMarks> (e.g.: I deploy to Heroku, OpenShift and others)
[14:01:56] <SamuelMarks> mgedmin / ronny : I have to run, if you figure out where I went wrong I'd appreciate it if you could reply on that stackoverflow post or comment on that github gist. Thanks
[14:02:20] <SamuelMarks> (or send a PR)
[14:02:31] <ronny> SamuelMarks: then go for a devpi server and also use devpi test ^^
[15:37:48] <doismellburning> is there a way to push arbitrary-project-A to arbitrary-pypi-B purely by running a command, with no ~/.pypirc or similar hackery?
[15:43:06] <doismellburning> (because I would like to not have to hardcode my PyPI credentials in a file in my repo :()
[15:58:43] <ronny> doismellburning: maybe with twine? also devpi has such tooling
[16:04:50] <doismellburning> ronny: oh gp, thanks
[16:05:10] <doismellburning> ...
[16:07:19] <pf_moore> PEP 440 - am I missing something, how do you specify "I want version X.Y.Z or U.V.W or A.B.C"? Comma means "and", what means "or"?
[16:23:33] <ronny> dstufft: is there a reason why twine cant just be passed a directory?
[16:24:20] <doismellburning> ronny: FYI no, not with twine
[16:26:06] <ronny> doismellburning: if you want to have sets of internal pypis i think devpi is the perfect option
[16:26:22] <ronny> it supports uploads and pushing things between indexes
[16:26:29] <ronny> (there also is a server)
[16:27:02] <doismellburning> ronny: I suspect the server is in fact devpi
[16:27:04] <doismellburning> thanks
[16:28:56] <doismellburning> I don't quite get it - using arbitrary PyPI is easy for down (`pip install -i $URL`) - why the hoops on the way up?
[16:29:02] <ronny> doismellburning: the devpi client can just be configured with credentials via the devpi login command, then it stores a signed auth cookie that it will use for the next 10 hours
[16:29:15] <ronny> doismellburning: and when using devpi, just use devpi install to use the selected index
[16:29:31] <ronny> so the worflow is devpi use someindex: devpi install somepackage
[16:30:06] <ronny> doismellburning: one of the reasons is that pypi uploads where implmeented in distutils, thata waaaaay off from pip
[16:30:11] <doismellburning> ronny: sure, thanks, I've seen _how_, I'm failing to understand why
[16:30:15] <doismellburning> ah
[16:30:40] <ronny> distutils is ancient, not exactly nice bit part of the stdlib fro mthe early days of the language
[16:31:03] <ronny> pip and setuptools are both external libraries, so they hae different constraints
[16:34:34] <doismellburning> oh right, iswym
[16:34:35] <doismellburning> thanks
[16:44:48] <ThomasV> why do I get a "No files were found to uninstall" on a package installed with pip?
[16:44:54] <ThomasV> (dnspython)
[16:47:41] <xafer> how did you install it ? Just tried installing and uninstalling dnspython without issue
[16:48:31] <ThomasV> xafer: pip install dnspython
[16:48:45] <ThomasV> (sudo)
[16:49:18] <xafer> and sudo pip uninstall ?
[16:49:46] <ThomasV> returns "Can't uninstall 'dnspython'. No files were found to uninstall.
[16:49:46] <ThomasV> "
[16:51:04] <xafer> what does python -c "from pkg_resources import Environment; print Environment()['dnspython']" return ?
[16:51:30] <ThomasV> before or after uninstall?
[16:51:49] <ThomasV> [dnspython 1.12.0 (/usr/local/lib/python2.7/dist-packages)]
[16:51:51] <xafer> either (apparently, your uninstall does not change much :p )
[16:52:06] <ThomasV> well either
[16:52:12] <ThomasV> indeed
[16:52:32] <ThomasV> is it a problem with that package?
[16:53:43] <xafer> and what do you have inside /usr/local/lib/python2.7/dist-packages ? dnspython and dnspython-1.12.0-py2.7.egg-info directories ?
[16:54:04] <ThomasV> no, the other dir is named 'dns'
[16:54:20] <xafer> yup my bad
[16:54:26] <xafer> whats your pip version ?
[16:54:52] <ThomasV> pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)
[16:59:18] <xafer> arf
[16:59:34] <xafer> well your dnspython seems to come from your distribution
[17:00:07] <ThomasV> if I rm -rf the dns dir, I cannot import dns anymore
[17:00:15] <xafer> sure
[17:00:34] <ThomasV> well, so why would it come from the distro?
[17:02:15] <xafer> my bad its /usr/local/lib and not /usr/lib
[17:03:10] <xafer> what do you have inside /usr/local/lib/python2.7/dist-packages/dnspython-1.12.0-py2.7.egg-info ?
[17:03:20] <xafer> no installed-files.txt ?
[17:03:30] <ThomasV> yes I do have it
[17:04:12] <ThomasV> it lists files in ../dns/
[17:09:44] <xafer> well I'm at loss, here... You could try to upgrade your pip, or manually rm -rf dns and dnspython-1.12.0-py2.7.egg-info to have the same behavior as pip
[17:10:02] <ThomasV> xafer: btw, what is the reason behind having some packages in /usr/lib and some in /usr/local/lib ?
[17:10:37] <xafer> this is some debian magic
[17:11:03] <ThomasV> well, manyally removing works.. but I am considering adding dnspython as a dependency in my project, and I would prefer if it was able to uninstall
[17:11:18] <xafer> cf stackoverflow.com/questions/9387928/whats-the-difference-between-dist-packages-and-site-packages for instance
[17:12:06] <xafer> and if you redo sudo pip install dnspython ?
[17:12:22] <ThomasV> oh same result
[17:12:27] <ThomasV> I tried many times :)
[17:13:18] <xafer> well maybe it's a sign you should use virtualenv :p
[17:13:48] <ThomasV> oh well..
[17:14:15] <ThomasV> apt-get tells me I have the most recent version
[17:14:22] <ThomasV> (I am on ubuntu)
[17:24:45] <[Tritium]> apt is grosly out of date
[17:42:09] <doismellburning> TIL `setup.py upload` will exit 0 in failure cases
[17:43:07] <doismellburning> as you can probably imagine, this was not the happiest of discoveries
[17:59:09] <[Tritium]> doismellburning: does twine?
[18:00:25] <doismellburning> [Tritium]: no
[18:00:50] <doismellburning> at least, not that I've observed
[18:01:04] <[Tritium]> doismellburning: if you can reproduce the error, file a bug with python (upload is part of distutils i think, not setuptools)
[18:02:15] <doismellburning> [Tritium]: bugs.python.org/issue21722 exists etc.
[18:03:05] <[Tritium]> oh, so its fixed in a version no one cares about yet
[18:03:36] <doismellburning> "no one cares about yet"?
[18:06:18] <Wooble> [Tritium]: well, fixing it in 2.7.7 would involving hacking everyone's computer to replace the buggy version, so, uh...
[18:06:43] <[Tritium]> they could have fixed it in 2.7.9
[18:06:50] <Wooble> They did.
[18:07:15] <doismellburning> I swear I'm running 2.7.9...
[18:07:18] <[Tritium]> Oh, i just saw 3.5
[18:07:40] <Wooble> 2.7.8 should have it, actually, it was committed in june.
[18:11:02] <[Tritium]> doismellburning: do i even have to ask if you just did python -V
[18:18:09] <doismellburning> [Tritium]: not really
[18:21:26] <doismellburning> is there anything I can do to facilitate a release of twine perchance? I've just fallen foul of github.com/pypa/twine/issues/8
[18:24:59] <doismellburning> ...my apologies, misread the dates, thought that issue showed unreleased changes from 2013, oops
[18:55:51] <ronny> jaraco: ping, i finished modularization of hgdistver, it now discovers all metadata extractors based on hooks and supports plugins cappable of adding new scm's easyly
[18:56:04] <ronny> eh setuptools_scm
[19:03:18] <jaraco> ronny, good to hear.
[19:12:29] <ronny> jaraco: is there a standard way to get informations from the egg_info directory of a sdist?
[19:13:17] <ronny> i'd like to get rid of the setuptools_scm.hacks module (which reads them from a PKG-INFO file thats always there
[19:13:25] <ronny> hmm
[19:13:39] <ronny> ah, i forgot, its still required for distutils style usage
[19:15:16] <ronny> jaraco: but bascially now all one needs to do to add another scm is register at 2 entrypoints with the names of the control directories
[19:17:54] <ronny> jaraco: could you perhaps review the readme and skim over the modules? i'd like to get some feedback from someone not used to the codebase, then do a initial release
[19:22:29] <ronny> jaraco: btw, file finders are not configurable enough, unlike with the distribution configuration i cant pass extra arguments
[19:24:11] <ronny> jaraco: whats the policy on the setuptools repo? is pushing to named branches for proposals/experiments ok ir should a separate one be used
[19:43:09] <jaraco> ronny, I'm happy to review. I'm not sure when I'll get to it. I'll be travelling Thursday and Monday, so I might pull a clone and review in the plane.
[19:44:06] <ronny> jaraco: the codebase is rather small, and i only need a skimming, before the first release undere the new name, i suspect you can do it in 5-10 minutes
[19:44:11] <jaraco> ronny, as for setuptools, there's no policy per-se. I personally prefer unnamed branches (typically managed with bookmarks) for small-scale commits, following the Mercurial guidance for creating named branches.
[19:44:14] <jaraco> !g mercurial branches
[19:44:15] <pmxbot> mercurial.selenic.com/wiki/Branch - Branch - Mercurial
[19:45:49] <jaraco> So if you submit a small PR to a named branch, I might rebase it. But I might also keep it in the named branch, especially if that name is specific and descriptive.
[19:46:36] <ronny> jaraco: i prefer to use namd branches with feature names that get closed *before* merge]
[19:48:19] <ronny> i'll use the branch name experiment/configurable-file-finder
[19:53:28] <jaraco> wfm
[19:54:25] <ronny> hmm
[19:54:27] <ronny> omg
[19:54:50] <ronny> i just learned how setuptools manages svn versions
[19:57:34] <[Tritium]> sad that subversion is still something that needs to be managed
[19:58:00] <ronny> [Tritium]: its mainly backward compat ^^
[19:58:06] <ronny> cant be ripped out easily
[19:58:48] <[Tritium]> the only good i have to say about subversion is it isnt cvs
[19:59:22] <ronny> hmm
[19:59:26] <ronny> svn is fun at times
[19:59:44] <ronny> (the pypy svn repo was fun in particular)
[19:59:59] <ronny> some commits where impossible t make with any svn client that ever exited
[20:00:22] <apollo13> oh killing svn repos with git-svn is fun too
[20:01:47] <ronny> apollo13: well, git svn oesnt make impossible commits as far as i remember
[20:02:42] <apollo13> ronny: dunno we ran into a situation where you couldn't checkout the repo via svn anymore
[20:39:09] <ronny> jaraco: did you decide to do the skiming or did you choose to defer for a real review?
[20:45:54] <jaraco> ronny, I do have a couple of suggestions, but i don't have time to write them up or discuss atm.
[20:46:14] <ronny> unfortunate
[21:38:54] <ronny> hmm
[21:42:36] <ronny> what the hell ?!
[21:43:05] <ronny> develop was implemented with 2to3 supports ,thats just a big wtf
[22:11:22] <nanonyme> Hmm?
[22:24:50] <SamuelMarks> p0 deps on p1, p1 deps on p2. Why isn't p2 being installed when I install p0? - stackoverflow.com/q/28540839
[22:26:56] <apollo13> pip.pypa.io/en/latest/reference/pip_install.html?highlight=insecure#externally-hosted-files
[22:30:53] <SamuelMarks> apollo13: I'm deploying to Heroku, where I don't have control over the pip command. Can I set those options somewhere else? - Also, how does that explain 2/3 of the packages being installed?
[22:31:37] <apollo13> SamuelMarks: as the example shows: in the requirements file