-
Notifications
You must be signed in to change notification settings - Fork 101
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
A [test]
extra?
#1121
Comments
Gil Forcada Codinachs wrote at 2023-4-15 14:50 -0700:
While testing the new `pip` version that came out today, I noticed that when it installs new packages it explains why, e.g:
...
And that's the topic of this issue: I see that on `setup.py` in `install_requires` there is at least `zope.testbrowser` and `zope.testing` which I assume to be distributions meant only for testing.
Part of `Zope` is the package `Testing`.
It contains utilities to create test suites for Zope applications.
And it uses `zope.testbrowser`.
Thus, `Zope` really depends on `zope.testbrowser`.
`zope.testbrowser` is not only used to test `Zope` itself.
IT is part of the application support provided by Zope (more precisely,
to create test suites for those application).
|
For me it would make sense to create a test extra though. That would be for Zope 6 then. We could create an empty one in Zope 5 as preparation. Or have these dependencies duplicate for now. |
Maurits van Rees wrote at 2023-4-17 02:40 -0700:
For me it would make sense to create a test extra though.
Why?
`Zope` would have have the subpackage `Testing` which could only
be used when `Zope` had been installed with the `test` extra.
The introduction of the `test` extra would make things more complex
without a significant advantage.
|
The advantage would be to get rid of packages like |
This Not sure how much tangled is |
"Patches welcome"? |
I searched for
Ah, and that same import is used in
@dataflake wrote:
That seems the main question here: would a patch to split off I don't know who will work on this, and when. There is a Beethoven sprint in May in Bonn, that could be a good time, but no promises. But how about the following plan? In Zope 5:
In Zope 6:
These are the affected namespaces:
|
Maurits van Rees wrote at 2023-4-19 01:35 -0700:
...
These are the affected namespaces:
... large list ...
A lot of changes -- for a small benefit.
|
Dieter is right, that is a lot of work just so loading Zope doesn't pull |
I see a benefit from not installing test dependencies (and their dependencies) on a production system, so I support this change request even though it requires changes in many places. |
I'm open to this as well, but don't want to do the work. So my earlier remark, "patches welcome", still stands. The package name "Testing" is so generic that if it were to be moved outside of Zope I'd either rename it or merge it into another package like |
Same here.
I think we need a new package, as |
While testing the new
pip
version that came out today, I noticed that when it installs new packages it explains why, e.g:a
pip install Plone
pullsplone.app.upgrade
, which in turn pullsZope
and thenzope.testbrowser
, etc ...And that's the topic of this issue: I see that on
setup.py
ininstall_requires
there is at leastzope.testbrowser
andzope.testing
which I assume to be distributions meant only for testing.Given that there's at least a
docs
and awsgi
extras, would it make sense to move at least these two distributions mentioned above to it, possibly(?) others as well? 🤔Or is there some historical reason not to do so?
The text was updated successfully, but these errors were encountered: