-
Notifications
You must be signed in to change notification settings - Fork 21
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
Update tox.ini and fix install requirements #181
Conversation
Hi @ildyria 👋 . I think we can be flexible with the version of tox that is required - Adding a new section at the top of tox.ini can also help with this: [tox]
minversion = 4.0.0 |
Well, I would have hoped so, but when I run this on my laptop with Tox |
What sort of breaking output are you getting just so we are looking at the same thing? I've performed 2 tests on resc-backend, using Python3.11 and python3.9. The below details describe the 3.11 test but the same versions of pip and tox are used in both tests. I haven't run into any issues with the setup as described here. # I'm using the same version of tox (4.11.3) that you are using
# Tox was installed on my machine using Python 3.11
markbyrne@Marks-MacBook-Air-2 resc-backend % python3.11 -m tox --version
4.11.3 from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tox/__init__.py
# pip version:
markbyrne@Marks-MacBook-Air-2 resc-backend % python3.11 -m pip --version
pip 23.2.1 from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip (python 3.11) # Run tox `lint` environment
cd resc-backend
python3.11 -m tox -e lint
# flake8 & pylint complete # Tox's site-packages contains the version of tox defined in test-requirements.txt:
markbyrne@Marks-MacBook-Air-2 resc-backend % ls .tox/lint/lib/python3.11/site-packages/tox
tox/ tox-4.11.1.dist-info/ The one thing I did run into which could be fixed is when running tox by default with the |
|
Aha right :D. So I would say the root-cause here is that resc-backend is pinning all of it's dependencies too strictly. |
Installing tox is done directly via
pip install -r test-requirements.txt
.This ensures that a newer version of tox does not conflict with dependencies.