-
-
Notifications
You must be signed in to change notification settings - Fork 777
Update pip dependencies, fix conflicting dependency version, ensure there are no conflicting dependencies #4819
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
Conversation
which polute PYTHONPATH.
there are no dependency conflicts.
| $(VIRTUALENV_DIR)/bin/python scripts/fixate-requirements.py --skip=virtualenv,virtualenv-osx -s st2*/in-requirements.txt contrib/runners/*/in-requirements.txt -f fixed-requirements.txt -o requirements.txt | ||
|
|
||
| # Remove any *.egg-info files which polute PYTHONPATH | ||
| rm -rf *.egg-info* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have done that before.
We add repo root to PYTHONPATH in virtualenv we create which means if you run python setup.py install or similar in st2client/ directory, it will create egg-info directory for that Python package which will mask actual st2client/ directory in PYTHONPATH.
|
I confirmed conflict checker tool works correctly. Here is an example if we use # Verify there are no conflicting dependencies
virtualenv/bin/pipconflictchecker
--------------------------------------------------
Conflicts Detected
--------------------------------------------------
- amqp(2.5.1) kombu(>=2.5.2,<2.6)
Makefile:437: recipe for target 'requirements' failedIt will return an error since that version of kombu request |
test-requirements.txt
Outdated
| # (those tests only run under Python 2.7 since keyczar doesn't support Python 3.x). | ||
| # See https://github.com/StackStorm/st2/pull/4165 | ||
| python-keyczar | ||
| git+https://github.com/Kami/pip-conflict-checker.git@fix_pip_issue#egg=pip-conflict-checker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just FYI - that's the change we need - ambitioninc/pip-conflict-checker#14.
I can also push that fork to StackStorm org and use that version until it's merged upstream.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we go - febde46.
|
This pull request includes the following changes:
cryptographydependency to v2.8 since version ofrequestswe use depends on that version. As per Master currently broken because of dependency conflict between requests and cryptography #4818 (comment), that is not actually a fatal issue since pip just prints a warning and doesn't fail on install, but it's still good to get it sorted out.test-requirements.txtare in sync with versions inrequirements.txtpip-conflict-checkeras part ofmake requirementsstep. This command will fail and exit with non-zero if there are any conflicting dependency versions.TODO
Resolves #4818.