-
Notifications
You must be signed in to change notification settings - Fork 62
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
Use extras instead of deps in tox.ini #445
Conversation
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.
I like the suggested change, using extras
in zopefoundation
all the time.
Thanks, looks good. I'm not that experienced with tox yet, so I've learned something again :-) I wonder though: how can this influence downstream packaging? Or are you using |
I'm packaging Python projects for OpenIndiana and during packaging we run tests to make sure everything is okay. We prefer To run in real (current) environment we use the tox-current-env plugin. Running in current env means that we cannot leave test dependency resolution on Thank you for merging this. |
FYI, here is this change as a downstream patch. |
Thanks for the info, I didn't know about tox-current-env (which might be something I can use later on, btw). I don't know if you need a release for this, but as zest.releaser makes it so easy I put out 9.1.3 :-) |
No. I do not need release for this change only. Actually, it is better to NOT release with this change only because every release adds some work for us and since this adds no value for us (we already have the patch downstream), then it is definitely better to go without the release yet :-). Thank you. |
Okay. It looks like I was late and 9.1.3 is already tagged :-). |
The current specification of test dependencies via the
deps
keyword is effectively saying that in addition to bothtest
andrecommended
extras there needs to be alsozest.releaser
installed. This causes inconvenience for downstream packagers because it is creating some sort of circular dependency.See also: https://peps.python.org/pep-0508/#extras