-
-
Notifications
You must be signed in to change notification settings - Fork 611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip-compile crashes on a setup.py that contains entry_points #572
Comments
Out of curiosity, could you try this and see if the problem occurs: In short, this will do a |
We have to use a `requirements.in` just to proxy `setup.cfg`, since an error occurs when we rely on the implicit dependency (ref: jazzband/pip-tools#572). This way abstracted requirements are expressed via `setup.cfg` while concrete dependencies are expressed via `requirements.txt`. Basic workflow: - Add abstract dependencies to `setup.cfg` - Proxy `setup.cfg` using `requirements.in` - Write dev dependencies to `dev-requirements.in` - Use `pip-compile --output-file (dev-)requirements.txt (dev-)requirements.in` to compile the concrete dependencies - Add the `requirements.{in,txt}` files to source control for repeatable installations: https://caremad.io/posts/2013/07/setup-vs-requirement/ - Use `pip-sync dev-requirements.txt requirements.txt` to install the packages into the current virtualenv - Run commands normally inside the current virtualenv (e.g. `tox`) - Don't expose test requirements directly to pip-tools. Instead, just rely on tox/pytest-runner to install them inside the test venv.
@vphilippon, I was facing the same problem in this repository (pip-tools branch). Then I added a So your guess seem to be consistent... (thank you very much for the information and workaround!) |
It looks like
You've got an error in the module path in the entry points: change |
I'll close this based on the above, but please let us know if it doesn't resolve your issue. Thanks! |
If my setup.py contains
entry_points
, I get an error.Environment Versions
Python 3.6.2
pip 9.0.1
pip-compile, version 1.10.1
Steps to replicate
pip-compile
Expected result
A
requirements.txt
is produced. This is the result I get with the exact same setup.py but withoutentry_points
.Actual result
The text was updated successfully, but these errors were encountered: