zope.app.component 5.0__tar.gz → 6.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. zope_app_component-6.0/.pre-commit-config.yaml +28 -0
  2. {zope.app.component-5.0 → zope_app_component-6.0}/CHANGES.rst +10 -0
  3. {zope.app.component-5.0 → zope_app_component-6.0}/CONTRIBUTING.md +1 -1
  4. {zope.app.component-5.0 → zope_app_component-6.0}/MANIFEST.in +1 -0
  5. {zope.app.component-5.0 → zope_app_component-6.0}/PKG-INFO +73 -8
  6. zope_app_component-6.0/pyproject.toml +32 -0
  7. {zope.app.component-5.0 → zope_app_component-6.0}/setup.cfg +1 -4
  8. {zope.app.component-5.0 → zope_app_component-6.0}/setup.py +7 -11
  9. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/browser/registration.py +1 -1
  10. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope.app.component.egg-info/PKG-INFO +73 -8
  11. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope.app.component.egg-info/SOURCES.txt +2 -3
  12. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope.app.component.egg-info/requires.txt +1 -1
  13. zope_app_component-6.0/tox.ini +71 -0
  14. zope.app.component-5.0/src/zope/__init__.py +0 -1
  15. zope.app.component-5.0/src/zope/app/__init__.py +0 -1
  16. zope.app.component-5.0/src/zope.app.component.egg-info/namespace_packages.txt +0 -2
  17. zope.app.component-5.0/tox.ini +0 -75
  18. {zope.app.component-5.0 → zope_app_component-6.0}/COPYRIGHT.txt +0 -0
  19. {zope.app.component-5.0 → zope_app_component-6.0}/LICENSE.txt +0 -0
  20. {zope.app.component-5.0 → zope_app_component-6.0}/README.rst +0 -0
  21. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/__init__.py +0 -0
  22. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/browser/__init__.py +0 -0
  23. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/browser/configure.zcml +0 -0
  24. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/browser/ftesting.zcml +0 -0
  25. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/browser/registration.pt +0 -0
  26. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/browser/site.rst +0 -0
  27. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/browser/siteregistration.pt +0 -0
  28. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/browser/tests/__init__.py +0 -0
  29. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/browser/tests/test_site.py +0 -0
  30. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/configure.zcml +0 -0
  31. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/contentdirective.py +0 -0
  32. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/ftesting.zcml +0 -0
  33. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/hooks.py +0 -0
  34. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/i18n.py +0 -0
  35. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/interfaces/__init__.py +0 -0
  36. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/interfaces/registration.py +0 -0
  37. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/interfaces/tests/__init__.py +0 -0
  38. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/interfaces/tests/test_registration.py +0 -0
  39. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/meta.zcml +0 -0
  40. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/metaconfigure.py +0 -0
  41. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/metadirectives.py +0 -0
  42. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/site.py +0 -0
  43. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/testing.py +0 -0
  44. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/tests/__init__.py +0 -0
  45. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/tests/test_bwc_imports.py +0 -0
  46. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/tests/test_testing.py +0 -0
  47. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope/app/component/vocabulary.py +0 -0
  48. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope.app.component.egg-info/dependency_links.txt +0 -0
  49. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope.app.component.egg-info/not-zip-safe +0 -0
  50. {zope.app.component-5.0 → zope_app_component-6.0}/src/zope.app.component.egg-info/top_level.txt +0 -0
@@ -0,0 +1,28 @@
1
+ # Generated from:
2
+ # https://github.com/zopefoundation/meta/tree/master/config/pure-python
3
+ minimum_pre_commit_version: '3.6'
4
+ repos:
5
+ - repo: https://github.com/pycqa/isort
6
+ rev: "6.0.1"
7
+ hooks:
8
+ - id: isort
9
+ - repo: https://github.com/hhatto/autopep8
10
+ rev: "v2.3.2"
11
+ hooks:
12
+ - id: autopep8
13
+ args: [--in-place, --aggressive, --aggressive]
14
+ - repo: https://github.com/asottile/pyupgrade
15
+ rev: v3.20.0
16
+ hooks:
17
+ - id: pyupgrade
18
+ args: [--py39-plus]
19
+ - repo: https://github.com/isidentical/teyit
20
+ rev: 0.4.3
21
+ hooks:
22
+ - id: teyit
23
+ - repo: https://github.com/PyCQA/flake8
24
+ rev: "7.3.0"
25
+ hooks:
26
+ - id: flake8
27
+ additional_dependencies:
28
+ - flake8-debugger == 4.1.2
@@ -2,6 +2,16 @@
2
2
  CHANGES
3
3
  =======
4
4
 
5
+ 6.0 (2025-09-12)
6
+ ----------------
7
+
8
+ - Replace ``pkg_resources`` namespace with PEP 420 native namespace.
9
+
10
+ - Add support for Python 3.12, 3.13.
11
+
12
+ - Drop support for Python 3.7, 3.8.
13
+
14
+
5
15
  5.0 (2023-02-21)
6
16
  ----------------
7
17
 
@@ -1,7 +1,7 @@
1
1
  <!--
2
2
  Generated from:
3
3
  https://github.com/zopefoundation/meta/tree/master/config/pure-python
4
- -->
4
+ -->
5
5
  # Contributing to zopefoundation projects
6
6
 
7
7
  The projects under the zopefoundation GitHub organization are open source and
@@ -5,6 +5,7 @@ include *.rst
5
5
  include *.txt
6
6
  include buildout.cfg
7
7
  include tox.ini
8
+ include .pre-commit-config.yaml
8
9
 
9
10
  recursive-include src *.py
10
11
  recursive-include src *.pt
@@ -1,11 +1,11 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: zope.app.component
3
- Version: 5.0
3
+ Version: 6.0
4
4
  Summary: Local Zope Component Support
5
5
  Home-page: https://github.com/zopefoundation/zope.app.component
6
- Author: Zope Corporation and Contributors
6
+ Author: Zope Foundation and Contributors
7
7
  Author-email: zope-dev@zope.dev
8
- License: ZPL 2.1
8
+ License: ZPL-2.1
9
9
  Keywords: zope component architecture local
10
10
  Classifier: Development Status :: 5 - Production/Stable
11
11
  Classifier: Environment :: Web Environment
@@ -13,20 +13,75 @@ Classifier: Intended Audience :: Developers
13
13
  Classifier: License :: OSI Approved :: Zope Public License
14
14
  Classifier: Programming Language :: Python
15
15
  Classifier: Programming Language :: Python :: 3
16
- Classifier: Programming Language :: Python :: 3.7
17
- Classifier: Programming Language :: Python :: 3.8
18
16
  Classifier: Programming Language :: Python :: 3.9
19
17
  Classifier: Programming Language :: Python :: 3.10
20
18
  Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
21
  Classifier: Programming Language :: Python :: Implementation :: CPython
22
22
  Classifier: Programming Language :: Python :: Implementation :: PyPy
23
23
  Classifier: Natural Language :: English
24
24
  Classifier: Operating System :: OS Independent
25
25
  Classifier: Topic :: Internet :: WWW/HTTP
26
26
  Classifier: Framework :: Zope :: 3
27
- Requires-Python: >=3.7
28
- Provides-Extra: test
27
+ Requires-Python: >=3.9
29
28
  License-File: LICENSE.txt
29
+ Requires-Dist: setuptools
30
+ Requires-Dist: zope.site
31
+ Requires-Dist: zope.app.container>=4.0
32
+ Requires-Dist: zope.app.pagetemplate>=4.0
33
+ Requires-Dist: zope.component[hook,zcml]>=4.3.0
34
+ Requires-Dist: zope.deprecation
35
+ Requires-Dist: zope.exceptions
36
+ Requires-Dist: zope.formlib
37
+ Requires-Dist: zope.i18nmessageid
38
+ Requires-Dist: zope.interface
39
+ Requires-Dist: zope.publisher>=4.3.1
40
+ Requires-Dist: zope.schema
41
+ Requires-Dist: zope.security
42
+ Requires-Dist: zope.traversing
43
+ Requires-Dist: zope.componentvocabulary
44
+ Provides-Extra: test
45
+ Requires-Dist: zope.app.appsetup; extra == "test"
46
+ Requires-Dist: zope.app.basicskin>=4.0; extra == "test"
47
+ Requires-Dist: zope.app.container[test]>=4.0; extra == "test"
48
+ Requires-Dist: zope.app.content; extra == "test"
49
+ Requires-Dist: zope.app.dependable>=4.0; extra == "test"
50
+ Requires-Dist: zope.app.http; extra == "test"
51
+ Requires-Dist: zope.app.pagetemplate>=4.0; extra == "test"
52
+ Requires-Dist: zope.app.principalannotation; extra == "test"
53
+ Requires-Dist: zope.app.publication; extra == "test"
54
+ Requires-Dist: zope.app.publisher; extra == "test"
55
+ Requires-Dist: zope.app.rotterdam>=4.0; extra == "test"
56
+ Requires-Dist: zope.app.schema; extra == "test"
57
+ Requires-Dist: zope.app.testing; extra == "test"
58
+ Requires-Dist: zope.app.wsgi; extra == "test"
59
+ Requires-Dist: zope.applicationcontrol; extra == "test"
60
+ Requires-Dist: zope.browser; extra == "test"
61
+ Requires-Dist: zope.browserresource; extra == "test"
62
+ Requires-Dist: zope.copypastemove; extra == "test"
63
+ Requires-Dist: zope.login; extra == "test"
64
+ Requires-Dist: zope.password; extra == "test"
65
+ Requires-Dist: zope.principalannotation; extra == "test"
66
+ Requires-Dist: zope.principalregistry; extra == "test"
67
+ Requires-Dist: zope.proxy>=4.2.1; extra == "test"
68
+ Requires-Dist: zope.securitypolicy; extra == "test"
69
+ Requires-Dist: zope.site; extra == "test"
70
+ Requires-Dist: zope.testbrowser>=5.2; extra == "test"
71
+ Requires-Dist: zope.testing; extra == "test"
72
+ Requires-Dist: zope.testrunner>=6.4; extra == "test"
73
+ Dynamic: author
74
+ Dynamic: author-email
75
+ Dynamic: classifier
76
+ Dynamic: description
77
+ Dynamic: home-page
78
+ Dynamic: keywords
79
+ Dynamic: license
80
+ Dynamic: license-file
81
+ Dynamic: provides-extra
82
+ Dynamic: requires-dist
83
+ Dynamic: requires-python
84
+ Dynamic: summary
30
85
 
31
86
  NOTE: this package is deprecated. Its functionality has been moved to
32
87
  more reusable packages, namely: zope.component, zope.security, zope.site
@@ -42,6 +97,16 @@ user interface related to local component management.
42
97
  CHANGES
43
98
  =======
44
99
 
100
+ 6.0 (2025-09-12)
101
+ ----------------
102
+
103
+ - Replace ``pkg_resources`` namespace with PEP 420 native namespace.
104
+
105
+ - Add support for Python 3.12, 3.13.
106
+
107
+ - Drop support for Python 3.7, 3.8.
108
+
109
+
45
110
  5.0 (2023-02-21)
46
111
  ----------------
47
112
 
@@ -0,0 +1,32 @@
1
+ # Generated from:
2
+ # https://github.com/zopefoundation/meta/tree/master/config/pure-python
3
+
4
+ [build-system]
5
+ requires = [
6
+ "setuptools == 78.1.1",
7
+ "wheel",
8
+ ]
9
+ build-backend = "setuptools.build_meta"
10
+
11
+ [tool.coverage.run]
12
+ branch = true
13
+ source = ["zope.app.component"]
14
+
15
+ [tool.coverage.report]
16
+ fail_under = 97
17
+ precision = 2
18
+ ignore_errors = true
19
+ show_missing = true
20
+ exclude_lines = [
21
+ "pragma: no cover",
22
+ "pragma: nocover",
23
+ "except ImportError:",
24
+ "raise NotImplementedError",
25
+ "if __name__ == '__main__':",
26
+ "self.fail",
27
+ "raise AssertionError",
28
+ "raise unittest.Skip",
29
+ ]
30
+
31
+ [tool.coverage.html]
32
+ directory = "parts/htmlcov"
@@ -1,6 +1,3 @@
1
- [bdist_wheel]
2
- universal = 0
3
-
4
1
  [flake8]
5
2
  doctests = 1
6
3
  per-file-ignores =
@@ -22,7 +19,7 @@ ignore =
22
19
  force_single_line = True
23
20
  combine_as_imports = True
24
21
  sections = FUTURE,STDLIB,THIRDPARTY,ZOPE,FIRSTPARTY,LOCALFOLDER
25
- known_third_party = six, docutils, pkg_resources, pytz
22
+ known_third_party = docutils, pkg_resources, pytz
26
23
  known_zope =
27
24
  known_first_party =
28
25
  default_section = ZOPE
@@ -20,7 +20,6 @@
20
20
  """
21
21
  import os
22
22
 
23
- from setuptools import find_packages
24
23
  from setuptools import setup
25
24
 
26
25
 
@@ -58,12 +57,12 @@ test_requires = [
58
57
  'zope.site',
59
58
  'zope.testbrowser >= 5.2',
60
59
  'zope.testing',
61
- 'zope.testrunner',
60
+ 'zope.testrunner >= 6.4',
62
61
  ]
63
62
 
64
63
  setup(name='zope.app.component',
65
- version='5.0',
66
- author='Zope Corporation and Contributors',
64
+ version='6.0',
65
+ author='Zope Foundation and Contributors',
67
66
  author_email='zope-dev@zope.dev',
68
67
  description='Local Zope Component Support',
69
68
  long_description=(
@@ -79,11 +78,11 @@ setup(name='zope.app.component',
79
78
  'License :: OSI Approved :: Zope Public License',
80
79
  'Programming Language :: Python',
81
80
  'Programming Language :: Python :: 3',
82
- 'Programming Language :: Python :: 3.7',
83
- 'Programming Language :: Python :: 3.8',
84
81
  'Programming Language :: Python :: 3.9',
85
82
  'Programming Language :: Python :: 3.10',
86
83
  'Programming Language :: Python :: 3.11',
84
+ 'Programming Language :: Python :: 3.12',
85
+ 'Programming Language :: Python :: 3.13',
87
86
  'Programming Language :: Python :: Implementation :: CPython',
88
87
  'Programming Language :: Python :: Implementation :: PyPy',
89
88
  'Natural Language :: English',
@@ -92,11 +91,8 @@ setup(name='zope.app.component',
92
91
  'Framework :: Zope :: 3',
93
92
  ],
94
93
  url='https://github.com/zopefoundation/zope.app.component',
95
- license='ZPL 2.1',
96
- packages=find_packages('src'),
97
- package_dir={'': 'src'},
98
- namespace_packages=['zope', 'zope.app'],
99
- python_requires='>=3.7',
94
+ license='ZPL-2.1',
95
+ python_requires='>=3.9',
100
96
  extras_require={
101
97
  'test': test_requires,
102
98
  },
@@ -99,7 +99,7 @@ class UtilityRegistrationDisplay:
99
99
  return provided.__module__ + '.' + provided.__name__
100
100
 
101
101
  def id(self):
102
- joined = "{} {}".format(self.provided(), self.context.name)
102
+ joined = f"{self.provided()} {self.context.name}"
103
103
  joined_bytes = joined.encode("utf8")
104
104
  j64_bytes = base64.b64encode(joined_bytes)
105
105
  if not isinstance(j64_bytes, str):
@@ -1,11 +1,11 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: zope.app.component
3
- Version: 5.0
3
+ Version: 6.0
4
4
  Summary: Local Zope Component Support
5
5
  Home-page: https://github.com/zopefoundation/zope.app.component
6
- Author: Zope Corporation and Contributors
6
+ Author: Zope Foundation and Contributors
7
7
  Author-email: zope-dev@zope.dev
8
- License: ZPL 2.1
8
+ License: ZPL-2.1
9
9
  Keywords: zope component architecture local
10
10
  Classifier: Development Status :: 5 - Production/Stable
11
11
  Classifier: Environment :: Web Environment
@@ -13,20 +13,75 @@ Classifier: Intended Audience :: Developers
13
13
  Classifier: License :: OSI Approved :: Zope Public License
14
14
  Classifier: Programming Language :: Python
15
15
  Classifier: Programming Language :: Python :: 3
16
- Classifier: Programming Language :: Python :: 3.7
17
- Classifier: Programming Language :: Python :: 3.8
18
16
  Classifier: Programming Language :: Python :: 3.9
19
17
  Classifier: Programming Language :: Python :: 3.10
20
18
  Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
21
  Classifier: Programming Language :: Python :: Implementation :: CPython
22
22
  Classifier: Programming Language :: Python :: Implementation :: PyPy
23
23
  Classifier: Natural Language :: English
24
24
  Classifier: Operating System :: OS Independent
25
25
  Classifier: Topic :: Internet :: WWW/HTTP
26
26
  Classifier: Framework :: Zope :: 3
27
- Requires-Python: >=3.7
28
- Provides-Extra: test
27
+ Requires-Python: >=3.9
29
28
  License-File: LICENSE.txt
29
+ Requires-Dist: setuptools
30
+ Requires-Dist: zope.site
31
+ Requires-Dist: zope.app.container>=4.0
32
+ Requires-Dist: zope.app.pagetemplate>=4.0
33
+ Requires-Dist: zope.component[hook,zcml]>=4.3.0
34
+ Requires-Dist: zope.deprecation
35
+ Requires-Dist: zope.exceptions
36
+ Requires-Dist: zope.formlib
37
+ Requires-Dist: zope.i18nmessageid
38
+ Requires-Dist: zope.interface
39
+ Requires-Dist: zope.publisher>=4.3.1
40
+ Requires-Dist: zope.schema
41
+ Requires-Dist: zope.security
42
+ Requires-Dist: zope.traversing
43
+ Requires-Dist: zope.componentvocabulary
44
+ Provides-Extra: test
45
+ Requires-Dist: zope.app.appsetup; extra == "test"
46
+ Requires-Dist: zope.app.basicskin>=4.0; extra == "test"
47
+ Requires-Dist: zope.app.container[test]>=4.0; extra == "test"
48
+ Requires-Dist: zope.app.content; extra == "test"
49
+ Requires-Dist: zope.app.dependable>=4.0; extra == "test"
50
+ Requires-Dist: zope.app.http; extra == "test"
51
+ Requires-Dist: zope.app.pagetemplate>=4.0; extra == "test"
52
+ Requires-Dist: zope.app.principalannotation; extra == "test"
53
+ Requires-Dist: zope.app.publication; extra == "test"
54
+ Requires-Dist: zope.app.publisher; extra == "test"
55
+ Requires-Dist: zope.app.rotterdam>=4.0; extra == "test"
56
+ Requires-Dist: zope.app.schema; extra == "test"
57
+ Requires-Dist: zope.app.testing; extra == "test"
58
+ Requires-Dist: zope.app.wsgi; extra == "test"
59
+ Requires-Dist: zope.applicationcontrol; extra == "test"
60
+ Requires-Dist: zope.browser; extra == "test"
61
+ Requires-Dist: zope.browserresource; extra == "test"
62
+ Requires-Dist: zope.copypastemove; extra == "test"
63
+ Requires-Dist: zope.login; extra == "test"
64
+ Requires-Dist: zope.password; extra == "test"
65
+ Requires-Dist: zope.principalannotation; extra == "test"
66
+ Requires-Dist: zope.principalregistry; extra == "test"
67
+ Requires-Dist: zope.proxy>=4.2.1; extra == "test"
68
+ Requires-Dist: zope.securitypolicy; extra == "test"
69
+ Requires-Dist: zope.site; extra == "test"
70
+ Requires-Dist: zope.testbrowser>=5.2; extra == "test"
71
+ Requires-Dist: zope.testing; extra == "test"
72
+ Requires-Dist: zope.testrunner>=6.4; extra == "test"
73
+ Dynamic: author
74
+ Dynamic: author-email
75
+ Dynamic: classifier
76
+ Dynamic: description
77
+ Dynamic: home-page
78
+ Dynamic: keywords
79
+ Dynamic: license
80
+ Dynamic: license-file
81
+ Dynamic: provides-extra
82
+ Dynamic: requires-dist
83
+ Dynamic: requires-python
84
+ Dynamic: summary
30
85
 
31
86
  NOTE: this package is deprecated. Its functionality has been moved to
32
87
  more reusable packages, namely: zope.component, zope.security, zope.site
@@ -42,6 +97,16 @@ user interface related to local component management.
42
97
  CHANGES
43
98
  =======
44
99
 
100
+ 6.0 (2025-09-12)
101
+ ----------------
102
+
103
+ - Replace ``pkg_resources`` namespace with PEP 420 native namespace.
104
+
105
+ - Add support for Python 3.12, 3.13.
106
+
107
+ - Drop support for Python 3.7, 3.8.
108
+
109
+
45
110
  5.0 (2023-02-21)
46
111
  ----------------
47
112
 
@@ -1,21 +1,20 @@
1
+ .pre-commit-config.yaml
1
2
  CHANGES.rst
2
3
  CONTRIBUTING.md
3
4
  COPYRIGHT.txt
4
5
  LICENSE.txt
5
6
  MANIFEST.in
6
7
  README.rst
8
+ pyproject.toml
7
9
  setup.cfg
8
10
  setup.py
9
11
  tox.ini
10
- src/zope/__init__.py
11
12
  src/zope.app.component.egg-info/PKG-INFO
12
13
  src/zope.app.component.egg-info/SOURCES.txt
13
14
  src/zope.app.component.egg-info/dependency_links.txt
14
- src/zope.app.component.egg-info/namespace_packages.txt
15
15
  src/zope.app.component.egg-info/not-zip-safe
16
16
  src/zope.app.component.egg-info/requires.txt
17
17
  src/zope.app.component.egg-info/top_level.txt
18
- src/zope/app/__init__.py
19
18
  src/zope/app/component/__init__.py
20
19
  src/zope/app/component/configure.zcml
21
20
  src/zope/app/component/contentdirective.py
@@ -42,4 +42,4 @@ zope.securitypolicy
42
42
  zope.site
43
43
  zope.testbrowser>=5.2
44
44
  zope.testing
45
- zope.testrunner
45
+ zope.testrunner>=6.4
@@ -0,0 +1,71 @@
1
+ # Generated from:
2
+ # https://github.com/zopefoundation/meta/tree/master/config/pure-python
3
+ [tox]
4
+ minversion = 3.18
5
+ envlist =
6
+ release-check
7
+ lint
8
+ py39
9
+ py310
10
+ py311
11
+ py312
12
+ py313
13
+ pypy3
14
+ coverage
15
+
16
+ [testenv]
17
+ usedevelop = true
18
+ package = wheel
19
+ wheel_build_env = .pkg
20
+ deps =
21
+ setuptools == 78.1.1
22
+ commands =
23
+ zope-testrunner --test-path=src {posargs:-vc}
24
+ extras =
25
+ test
26
+
27
+ [testenv:setuptools-latest]
28
+ basepython = python3
29
+ deps =
30
+ git+https://github.com/pypa/setuptools.git\#egg=setuptools
31
+
32
+ [testenv:release-check]
33
+ description = ensure that the distribution is ready to release
34
+ basepython = python3
35
+ skip_install = true
36
+ deps =
37
+ setuptools == 78.1.1
38
+ wheel
39
+ twine
40
+ build
41
+ check-manifest
42
+ check-python-versions >= 0.20.0
43
+ wheel
44
+ commands_pre =
45
+ commands =
46
+ check-manifest
47
+ check-python-versions --only setup.py,tox.ini,.github/workflows/tests.yml
48
+ python -m build --sdist --no-isolation
49
+ twine check dist/*
50
+
51
+ [testenv:lint]
52
+ description = This env runs all linters configured in .pre-commit-config.yaml
53
+ basepython = python3
54
+ skip_install = true
55
+ deps =
56
+ pre-commit
57
+ commands_pre =
58
+ commands =
59
+ pre-commit run --all-files --show-diff-on-failure
60
+
61
+ [testenv:coverage]
62
+ basepython = python3
63
+ allowlist_externals =
64
+ mkdir
65
+ deps =
66
+ coverage[toml]
67
+ commands =
68
+ mkdir -p {toxinidir}/parts/htmlcov
69
+ coverage run -m zope.testrunner --test-path=src {posargs:-vc}
70
+ coverage html
71
+ coverage report
@@ -1 +0,0 @@
1
- __import__('pkg_resources').declare_namespace(__name__) # pragma: no cover
@@ -1 +0,0 @@
1
- __import__('pkg_resources').declare_namespace(__name__) # pragma: no cover
@@ -1,75 +0,0 @@
1
- # Generated from:
2
- # https://github.com/zopefoundation/meta/tree/master/config/pure-python
3
- [tox]
4
- minversion = 3.18
5
- envlist =
6
- lint
7
- py37
8
- py38
9
- py39
10
- py310
11
- py311
12
- pypy3
13
- coverage
14
-
15
- [testenv]
16
- usedevelop = true
17
- deps =
18
- commands =
19
- zope-testrunner --test-path=src {posargs:-vc}
20
- extras =
21
- test
22
-
23
- [testenv:lint]
24
- basepython = python3
25
- skip_install = true
26
- commands =
27
- isort --check-only --diff {toxinidir}/src {toxinidir}/setup.py
28
- flake8 src setup.py
29
- check-manifest
30
- check-python-versions
31
- deps =
32
- check-manifest
33
- check-python-versions >= 0.19.1
34
- wheel
35
- flake8
36
- isort
37
-
38
- [testenv:isort-apply]
39
- basepython = python3
40
- skip_install = true
41
- commands_pre =
42
- deps =
43
- isort
44
- commands =
45
- isort {toxinidir}/src {toxinidir}/setup.py []
46
-
47
- [testenv:coverage]
48
- basepython = python3
49
- allowlist_externals =
50
- mkdir
51
- deps =
52
- coverage
53
- commands =
54
- mkdir -p {toxinidir}/parts/htmlcov
55
- coverage run -m zope.testrunner --test-path=src {posargs:-vc}
56
- coverage html --ignore-errors
57
- coverage report --ignore-errors --show-missing --fail-under=97
58
-
59
- [coverage:run]
60
- branch = True
61
- source = zope.app.component
62
-
63
- [coverage:report]
64
- precision = 2
65
- exclude_lines =
66
- pragma: no cover
67
- pragma: nocover
68
- except ImportError:
69
- raise NotImplementedError
70
- if __name__ == '__main__':
71
- self.fail
72
- raise AssertionError
73
-
74
- [coverage:html]
75
- directory = parts/htmlcov