Closed robertlagrant closed 4 years ago
Same here when I was updating https://github.com/pyupio/safety it was installing as extra dependencies pipenv. I'm using pip-tools to compile my requirement files.
@rafaelpivato It looks like you probably forgot to remove a dirty dparse.egg-info/
(or some other files with stale state) while cutting the 0.5.0 release. The old stuff made it into both the source and wheel release (also there should ideally be a py2 wheel):
$ python2 -m pip --isolated --no-cache-dir download --no-deps --no-binary :all: dparse
$ tar xf dparse-0.5.0.tar.gz
$ cat dparse-0.5.0/dparse.egg-info/requires.txt
pipenv
packaging
pyyaml
toml
[pipenv]
pipenv
$ python3 -m pip --isolated --no-cache-dir download --no-deps --only-binary :all: dparse
$ pkginfo -f requires_dist dparse-0.5.0-py3-none-any.whl
requires_dist: ['pipenv', 'packaging', 'pyyaml', 'toml', "pipenv ; extra == 'pipenv'"]
If you build a new wheel from scratch, they don't have this problem.
$ python setup.py bdist_wheel
$ pkginfo -f requires_dist dist/dparse-0.5.0-py2-none-any.whl
requires_dist: ['packaging', 'pyyaml', 'toml', "pipenv ; extra == 'pipenv'"]
I'd recommend cutting py2 and py3 wheels as 0.5.1 and making sure pkginfo -f requires_dist
looks good, then bumping dparse in safety (safety's why I noticed this in the first place).
Makes sense to me. Pull-requests are welcome. I'll keep an eye on this anyway and try to fix it ASAP.
@rafaelpivato, there aren't really any non-maintainer changes required.
setup.py
22: version='0.5.0',
dparse/__init__.py
7:__version__ = '0.5.0'
You need to update those version strings, tag a 0.5.1, update HISTORY.rst
, make sure pkginfo -f requires_dist
looks good, then bump the dparse pin in safety.
Thanks, @joshuarli
So, as it looks like, this wasn't related to egg cache, but some bad bumps and deployments. Travis is the one publishing this to PyPi, just in case.
I bumped to 0.5.1a now (5c707969a479f4b28e70ceff2078afcda7c59db9) and building the package looks good now. I'll bring this to PyPi as soon as possible.
Description
Installing dparse without specifying anything extra installs pipenv as well. The docs (and setup.py) imply that this is an optional dependency.
What I Did