Skip to content

Commit

Permalink
Add test extra with the same contents as the tests extra.
Browse files Browse the repository at this point in the history
The `tests` extra will be removed in Plone 7.
`plone.app.testing` was missing because in `tox.ini` we used the not yet existing `test` extra.
  • Loading branch information
mauritsvanrees committed Apr 6, 2023
1 parent 4810906 commit 036f83e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
3 changes: 3 additions & 0 deletions news/164.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Add ``test`` extra with the same contents as the ``tests`` extra.
The ``tests`` extra will be removed in Plone 7.
[maurits]
30 changes: 18 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ def read(*rnames):
+ read("CHANGES.rst")
+ "\n"
)
test_requirements = [
"plone.app.contenttypes[test]",
"plone.app.layout",
"plone.app.testing",
"plone.autoform",
"plone.browserlayer",
"plone.supermodel",
"plone.testing",
"zope.annotation",
"zope.intid",
"zope.publisher",
]

setup(
name="plone.app.z3cform",
Expand Down Expand Up @@ -79,17 +91,11 @@ def read(*rnames):
"Zope",
],
extras_require={
"tests": [
"plone.app.contenttypes[test]",
"plone.app.layout",
"plone.app.testing",
"plone.autoform",
"plone.browserlayer",
"plone.supermodel",
"plone.testing",
"zope.annotation",
"zope.intid",
"zope.publisher",
]
# Until plone.app.z3cform 4.0.2 we only had the 'tests' extra.
# In 4.0.3 we introduced the 'test' extra.
# Keep 'tests' for backwards compatibility.
# Remove it in Plone 7.
"test": test_requirements,
"tests": test_requirements,
},
)

0 comments on commit 036f83e

Please sign in to comment.