five.localsitemanager 3.4__tar.gz → 5.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 (33) hide show
  1. five_localsitemanager-5.0/.pre-commit-config.yaml +28 -0
  2. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/CHANGES.rst +20 -2
  3. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/CONTRIBUTING.md +1 -1
  4. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/MANIFEST.in +1 -1
  5. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/PKG-INFO +37 -13
  6. five_localsitemanager-5.0/pyproject.toml +21 -0
  7. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/setup.cfg +1 -4
  8. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/setup.py +6 -17
  9. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/src/five/localsitemanager/registry.py +11 -13
  10. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/src/five.localsitemanager.egg-info/PKG-INFO +37 -13
  11. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/src/five.localsitemanager.egg-info/SOURCES.txt +2 -3
  12. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/src/five.localsitemanager.egg-info/requires.txt +0 -1
  13. five_localsitemanager-5.0/tox.ini +76 -0
  14. five.localsitemanager-3.4/buildout4.cfg +0 -7
  15. five.localsitemanager-3.4/src/five/__init__.py +0 -1
  16. five.localsitemanager-3.4/src/five.localsitemanager.egg-info/namespace_packages.txt +0 -1
  17. five.localsitemanager-3.4/tox.ini +0 -90
  18. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/COPYRIGHT.rst +0 -0
  19. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/LICENSE.rst +0 -0
  20. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/README.rst +0 -0
  21. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/buildout.cfg +0 -0
  22. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/src/five/localsitemanager/__init__.py +0 -0
  23. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/src/five/localsitemanager/browser.py +0 -0
  24. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/src/five/localsitemanager/browser.txt +0 -0
  25. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/src/five/localsitemanager/components.pt +0 -0
  26. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/src/five/localsitemanager/configure.zcml +0 -0
  27. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/src/five/localsitemanager/localsitemanager.txt +0 -0
  28. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/src/five/localsitemanager/overrides.zcml +0 -0
  29. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/src/five/localsitemanager/tests.py +0 -0
  30. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/src/five/localsitemanager/utils.py +0 -0
  31. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/src/five.localsitemanager.egg-info/dependency_links.txt +0 -0
  32. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/src/five.localsitemanager.egg-info/not-zip-safe +0 -0
  33. {five.localsitemanager-3.4 → five_localsitemanager-5.0}/src/five.localsitemanager.egg-info/top_level.txt +0 -0
@@ -0,0 +1,28 @@
1
+ # Generated from:
2
+ # https://github.com/zopefoundation/meta/tree/master/config/zope-product
3
+ minimum_pre_commit_version: '3.6'
4
+ repos:
5
+ - repo: https://github.com/pycqa/isort
6
+ rev: "6.0.0"
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.19.1
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.1.1"
25
+ hooks:
26
+ - id: flake8
27
+ additional_dependencies:
28
+ - flake8-debugger == 4.1.2
@@ -1,12 +1,30 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 5.0 (2025-02-15)
5
+ ----------------
6
+
7
+ * Drop support for ``pkg_resources`` namespace and replace it with
8
+ PEP 420 native namespace.
9
+ Caution: This change requires to switch all packages in the `five`
10
+ namespace to versions using a PEP 420 namespace.
11
+
12
+ * Drop support for Python 3.7, 3.8.
13
+
14
+ * Add support for Python 3.12, 3.13.
15
+
16
+ 4.0 (2023-02-01)
17
+ ----------------
18
+
19
+ * Drop support for Python 2.7, 3.5, 3.6.
20
+
21
+
4
22
  3.4 (2022-12-16)
5
23
  ----------------
6
24
 
7
- - Fix insidious buildout configuration bug for tests against Zope 4.
25
+ * Fix insidious buildout configuration bug for tests against Zope 4.
8
26
 
9
- - Add support for Python 3.11.
27
+ * Add support for Python 3.11.
10
28
 
11
29
 
12
30
  3.3 (2022-04-11)
@@ -1,7 +1,7 @@
1
1
  <!--
2
2
  Generated from:
3
3
  https://github.com/zopefoundation/meta/tree/master/config/zope-product
4
- -->
4
+ -->
5
5
  # Contributing to zopefoundation projects
6
6
 
7
7
  The projects under the zopefoundation GitHub organization are open source and
@@ -5,9 +5,9 @@ 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
- include buildout4.cfg
11
11
  recursive-include src *.pt
12
12
  recursive-include src *.txt
13
13
  recursive-include src *.zcml
@@ -1,35 +1,41 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: five.localsitemanager
3
- Version: 3.4
3
+ Version: 5.0
4
4
  Summary: Local site manager implementation for Zope.
5
5
  Home-page: https://github.com/zopefoundation/five.localsitemanager
6
6
  Author: Zope Foundation and Contributors
7
- Author-email: zope-dev@zope.org
8
- License: ZPL 2.1
7
+ Author-email: zope-dev@zope.dev
8
+ License: ZPL-2.1
9
9
  Project-URL: Issue Tracker, https://github.com/zopefoundation/five.localsitemanager/issues
10
10
  Project-URL: Sources, https://github.com/zopefoundation/five.localsitemanager
11
11
  Keywords: zope five sitemanager
12
12
  Classifier: Development Status :: 5 - Production/Stable
13
13
  Classifier: Environment :: Web Environment
14
- Classifier: Framework :: Zope :: 4
15
14
  Classifier: Framework :: Zope :: 5
16
15
  Classifier: License :: OSI Approved :: Zope Public License
17
16
  Classifier: Operating System :: OS Independent
18
17
  Classifier: Programming Language :: Python
19
- Classifier: Programming Language :: Python :: 2
20
- Classifier: Programming Language :: Python :: 2.7
21
18
  Classifier: Programming Language :: Python :: 3
22
- Classifier: Programming Language :: Python :: 3.5
23
- Classifier: Programming Language :: Python :: 3.6
24
- Classifier: Programming Language :: Python :: 3.7
25
- Classifier: Programming Language :: Python :: 3.8
26
19
  Classifier: Programming Language :: Python :: 3.9
27
20
  Classifier: Programming Language :: Python :: 3.10
28
21
  Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
29
24
  Classifier: Programming Language :: Python :: Implementation :: CPython
30
25
  Classifier: Topic :: Internet :: WWW/HTTP :: Site Management
31
- Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
26
+ Requires-Python: >=3.9
32
27
  License-File: LICENSE.rst
28
+ Requires-Dist: Acquisition
29
+ Requires-Dist: persistent
30
+ Requires-Dist: setuptools
31
+ Requires-Dist: zope.component
32
+ Requires-Dist: zope.event
33
+ Requires-Dist: zope.interface>=3.8
34
+ Requires-Dist: zope.location
35
+ Requires-Dist: zope.lifecycleevent
36
+ Requires-Dist: zope.site
37
+ Requires-Dist: zope.testing
38
+ Requires-Dist: Zope>=4.0b1
33
39
 
34
40
  Introduction
35
41
  ============
@@ -52,12 +58,30 @@ Developer Resources
52
58
  Changelog
53
59
  =========
54
60
 
61
+ 5.0 (2025-02-15)
62
+ ----------------
63
+
64
+ * Drop support for ``pkg_resources`` namespace and replace it with
65
+ PEP 420 native namespace.
66
+ Caution: This change requires to switch all packages in the `five`
67
+ namespace to versions using a PEP 420 namespace.
68
+
69
+ * Drop support for Python 3.7, 3.8.
70
+
71
+ * Add support for Python 3.12, 3.13.
72
+
73
+ 4.0 (2023-02-01)
74
+ ----------------
75
+
76
+ * Drop support for Python 2.7, 3.5, 3.6.
77
+
78
+
55
79
  3.4 (2022-12-16)
56
80
  ----------------
57
81
 
58
- - Fix insidious buildout configuration bug for tests against Zope 4.
82
+ * Fix insidious buildout configuration bug for tests against Zope 4.
59
83
 
60
- - Add support for Python 3.11.
84
+ * Add support for Python 3.11.
61
85
 
62
86
 
63
87
  3.3 (2022-04-11)
@@ -0,0 +1,21 @@
1
+ #
2
+ # Generated from:
3
+ # https://github.com/zopefoundation/meta/tree/master/config/zope-product
4
+
5
+ [build-system]
6
+ requires = ["setuptools <= 75.6.0"]
7
+ build-backend = "setuptools.build_meta"
8
+
9
+ [tool.coverage.run]
10
+ branch = true
11
+ source = ["five.localsitemanager"]
12
+
13
+ [tool.coverage.report]
14
+ fail_under = 88.5
15
+ precision = 2
16
+ ignore_errors = true
17
+ show_missing = true
18
+ exclude_lines = ["pragma: no cover", "pragma: nocover", "except ImportError:", "raise NotImplementedError", "if __name__ == '__main__':", "self.fail", "raise AssertionError", "raise unittest.Skip"]
19
+
20
+ [tool.coverage.html]
21
+ directory = "parts/htmlcov"
@@ -1,6 +1,3 @@
1
- [bdist_wheel]
2
- universal = 1
3
-
4
1
  [flake8]
5
2
  doctests = 1
6
3
  no-accept-encodings = True
@@ -15,7 +12,7 @@ ignore =
15
12
  force_single_line = True
16
13
  combine_as_imports = True
17
14
  sections = FUTURE,STDLIB,THIRDPARTY,ZOPE,FIRSTPARTY,LOCALFOLDER
18
- known_third_party = six, docutils, pkg_resources
15
+ known_third_party = docutils, pkg_resources, pytz
19
16
  known_zope =
20
17
  known_first_party =
21
18
  default_section = ZOPE
@@ -1,55 +1,44 @@
1
1
  from setuptools import setup
2
2
 
3
3
 
4
- version = '3.4'
5
-
6
4
  setup(
7
5
  name='five.localsitemanager',
8
- version=version,
6
+ version='5.0',
9
7
  url='https://github.com/zopefoundation/five.localsitemanager',
10
8
  project_urls={
11
9
  'Issue Tracker': ('https://github.com/zopefoundation/'
12
10
  'five.localsitemanager/issues'),
13
11
  'Sources': 'https://github.com/zopefoundation/five.localsitemanager',
14
12
  },
15
- license='ZPL 2.1',
13
+ license='ZPL-2.1',
16
14
  description='Local site manager implementation for Zope.',
17
15
  author='Zope Foundation and Contributors',
18
- author_email='zope-dev@zope.org',
16
+ author_email='zope-dev@zope.dev',
19
17
  long_description=(open("README.rst").read() + "\n" +
20
18
  open("CHANGES.rst").read()),
21
19
  classifiers=[
22
20
  'Development Status :: 5 - Production/Stable',
23
21
  'Environment :: Web Environment',
24
- 'Framework :: Zope :: 4',
25
22
  'Framework :: Zope :: 5',
26
23
  'License :: OSI Approved :: Zope Public License',
27
24
  'Operating System :: OS Independent',
28
25
  'Programming Language :: Python',
29
- 'Programming Language :: Python :: 2',
30
- 'Programming Language :: Python :: 2.7',
31
26
  'Programming Language :: Python :: 3',
32
- 'Programming Language :: Python :: 3.5',
33
- 'Programming Language :: Python :: 3.6',
34
- 'Programming Language :: Python :: 3.7',
35
- 'Programming Language :: Python :: 3.8',
36
27
  'Programming Language :: Python :: 3.9',
37
28
  'Programming Language :: Python :: 3.10',
38
29
  'Programming Language :: Python :: 3.11',
30
+ 'Programming Language :: Python :: 3.12',
31
+ 'Programming Language :: Python :: 3.13',
39
32
  'Programming Language :: Python :: Implementation :: CPython',
40
33
  'Topic :: Internet :: WWW/HTTP :: Site Management',
41
34
  ],
42
35
  keywords='zope five sitemanager',
43
- packages=['five', 'five.localsitemanager'],
44
- package_dir={'': 'src'},
45
- namespace_packages=['five'],
46
36
  include_package_data=True,
47
- python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*',
37
+ python_requires='>=3.9',
48
38
  install_requires=[
49
39
  'Acquisition',
50
40
  'persistent',
51
41
  'setuptools',
52
- 'six',
53
42
  'zope.component',
54
43
  'zope.event',
55
44
  'zope.interface >= 3.8',
@@ -13,8 +13,6 @@
13
13
  """Component registry for local site manager.
14
14
  """
15
15
 
16
- import six
17
-
18
16
  import Acquisition
19
17
  import persistent
20
18
  import zope.event
@@ -42,7 +40,7 @@ class FiveVerifyingAdapterLookup(VerifyingAdapterLookup):
42
40
 
43
41
  # override some AdapterLookupBase methods for acquisition wrapping
44
42
 
45
- def _uncached_lookup(self, required, provided, name=u''):
43
+ def _uncached_lookup(self, required, provided, name=''):
46
44
  result = None
47
45
  order = len(required)
48
46
  for registry in self._registry.ro:
@@ -78,13 +76,13 @@ class FiveVerifyingAdapterLookup(VerifyingAdapterLookup):
78
76
  components = byorder[order]
79
77
  tmp_result = {}
80
78
  _lookupAll(components, required, extendors, tmp_result, 0, order)
81
- for k, v in six.iteritems(tmp_result):
79
+ for k, v in tmp_result.items():
82
80
  tmp_result[k] = _wrap(v, registry)
83
81
  result.update(tmp_result)
84
82
 
85
83
  self._subscribe(*required)
86
84
 
87
- return tuple(six.iteritems(result))
85
+ return tuple(result.items())
88
86
 
89
87
  def _uncached_subscriptions(self, required, provided):
90
88
  order = len(required)
@@ -101,7 +99,7 @@ class FiveVerifyingAdapterLookup(VerifyingAdapterLookup):
101
99
  if extendors is None:
102
100
  continue
103
101
 
104
- _subscriptions(byorder[order], required, extendors, u'',
102
+ _subscriptions(byorder[order], required, extendors, '',
105
103
  result, 0, order)
106
104
  result = [_wrap(r, registry) for r in result]
107
105
 
@@ -217,7 +215,7 @@ class PersistentComponents(PersistentComponents, ObjectManager):
217
215
  """
218
216
 
219
217
  def _init_registries(self):
220
- super(PersistentComponents, self)._init_registries()
218
+ super()._init_registries()
221
219
  utilities = Acquisition.aq_base(self.utilities)
222
220
  utilities.LookupClass = FiveVerifyingAdapterLookup
223
221
  utilities._createLookup()
@@ -233,15 +231,15 @@ class PersistentComponents(PersistentComponents, ObjectManager):
233
231
  path = getattr(site, 'getPhysicalPath', None)
234
232
  if path is not None and callable(path):
235
233
  url = '/'.join(path())
236
- return "<%s %s>" % (self.__class__.__name__, url)
234
+ return f"<{self.__class__.__name__} {url}>"
237
235
 
238
236
  def registeredUtilities(self):
239
- for reg in super(PersistentComponents, self).registeredUtilities():
237
+ for reg in super().registeredUtilities():
240
238
  reg.component = _wrap(reg.component, self)
241
239
  yield reg
242
240
 
243
- def registerUtility(self, component=None, provided=None, name=u'',
244
- info=u'', event=True, factory=None):
241
+ def registerUtility(self, component=None, provided=None, name='',
242
+ info='', event=True, factory=None):
245
243
  if factory:
246
244
  if component:
247
245
  raise TypeError("Can't specify factory and component.")
@@ -263,7 +261,7 @@ class PersistentComponents(PersistentComponents, ObjectManager):
263
261
  self.unregisterUtility(reg[0], provided, name)
264
262
 
265
263
  subscribed = False
266
- for ((p, _), data) in six.iteritems(self._utility_registrations):
264
+ for ((p, _), data) in self._utility_registrations.items():
267
265
  if p == provided and data[0] == component:
268
266
  subscribed = True
269
267
  break
@@ -298,7 +296,7 @@ class PersistentComponents(PersistentComponents, ObjectManager):
298
296
  self, provided, name, component, info, factory)
299
297
  ))
300
298
 
301
- def unregisterUtility(self, component=None, provided=None, name=u'',
299
+ def unregisterUtility(self, component=None, provided=None, name='',
302
300
  factory=None):
303
301
  if factory:
304
302
  if component:
@@ -1,35 +1,41 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: five.localsitemanager
3
- Version: 3.4
3
+ Version: 5.0
4
4
  Summary: Local site manager implementation for Zope.
5
5
  Home-page: https://github.com/zopefoundation/five.localsitemanager
6
6
  Author: Zope Foundation and Contributors
7
- Author-email: zope-dev@zope.org
8
- License: ZPL 2.1
7
+ Author-email: zope-dev@zope.dev
8
+ License: ZPL-2.1
9
9
  Project-URL: Issue Tracker, https://github.com/zopefoundation/five.localsitemanager/issues
10
10
  Project-URL: Sources, https://github.com/zopefoundation/five.localsitemanager
11
11
  Keywords: zope five sitemanager
12
12
  Classifier: Development Status :: 5 - Production/Stable
13
13
  Classifier: Environment :: Web Environment
14
- Classifier: Framework :: Zope :: 4
15
14
  Classifier: Framework :: Zope :: 5
16
15
  Classifier: License :: OSI Approved :: Zope Public License
17
16
  Classifier: Operating System :: OS Independent
18
17
  Classifier: Programming Language :: Python
19
- Classifier: Programming Language :: Python :: 2
20
- Classifier: Programming Language :: Python :: 2.7
21
18
  Classifier: Programming Language :: Python :: 3
22
- Classifier: Programming Language :: Python :: 3.5
23
- Classifier: Programming Language :: Python :: 3.6
24
- Classifier: Programming Language :: Python :: 3.7
25
- Classifier: Programming Language :: Python :: 3.8
26
19
  Classifier: Programming Language :: Python :: 3.9
27
20
  Classifier: Programming Language :: Python :: 3.10
28
21
  Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
29
24
  Classifier: Programming Language :: Python :: Implementation :: CPython
30
25
  Classifier: Topic :: Internet :: WWW/HTTP :: Site Management
31
- Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
26
+ Requires-Python: >=3.9
32
27
  License-File: LICENSE.rst
28
+ Requires-Dist: Acquisition
29
+ Requires-Dist: persistent
30
+ Requires-Dist: setuptools
31
+ Requires-Dist: zope.component
32
+ Requires-Dist: zope.event
33
+ Requires-Dist: zope.interface>=3.8
34
+ Requires-Dist: zope.location
35
+ Requires-Dist: zope.lifecycleevent
36
+ Requires-Dist: zope.site
37
+ Requires-Dist: zope.testing
38
+ Requires-Dist: Zope>=4.0b1
33
39
 
34
40
  Introduction
35
41
  ============
@@ -52,12 +58,30 @@ Developer Resources
52
58
  Changelog
53
59
  =========
54
60
 
61
+ 5.0 (2025-02-15)
62
+ ----------------
63
+
64
+ * Drop support for ``pkg_resources`` namespace and replace it with
65
+ PEP 420 native namespace.
66
+ Caution: This change requires to switch all packages in the `five`
67
+ namespace to versions using a PEP 420 namespace.
68
+
69
+ * Drop support for Python 3.7, 3.8.
70
+
71
+ * Add support for Python 3.12, 3.13.
72
+
73
+ 4.0 (2023-02-01)
74
+ ----------------
75
+
76
+ * Drop support for Python 2.7, 3.5, 3.6.
77
+
78
+
55
79
  3.4 (2022-12-16)
56
80
  ----------------
57
81
 
58
- - Fix insidious buildout configuration bug for tests against Zope 4.
82
+ * Fix insidious buildout configuration bug for tests against Zope 4.
59
83
 
60
- - Add support for Python 3.11.
84
+ * Add support for Python 3.11.
61
85
 
62
86
 
63
87
  3.3 (2022-04-11)
@@ -1,3 +1,4 @@
1
+ .pre-commit-config.yaml
1
2
  CHANGES.rst
2
3
  CONTRIBUTING.md
3
4
  COPYRIGHT.rst
@@ -5,15 +6,13 @@ LICENSE.rst
5
6
  MANIFEST.in
6
7
  README.rst
7
8
  buildout.cfg
8
- buildout4.cfg
9
+ pyproject.toml
9
10
  setup.cfg
10
11
  setup.py
11
12
  tox.ini
12
- src/five/__init__.py
13
13
  src/five.localsitemanager.egg-info/PKG-INFO
14
14
  src/five.localsitemanager.egg-info/SOURCES.txt
15
15
  src/five.localsitemanager.egg-info/dependency_links.txt
16
- src/five.localsitemanager.egg-info/namespace_packages.txt
17
16
  src/five.localsitemanager.egg-info/not-zip-safe
18
17
  src/five.localsitemanager.egg-info/requires.txt
19
18
  src/five.localsitemanager.egg-info/top_level.txt
@@ -1,7 +1,6 @@
1
1
  Acquisition
2
2
  persistent
3
3
  setuptools
4
- six
5
4
  zope.component
6
5
  zope.event
7
6
  zope.interface>=3.8
@@ -0,0 +1,76 @@
1
+ # Generated from:
2
+ # https://github.com/zopefoundation/meta/tree/master/config/zope-product
3
+ [tox]
4
+ minversion = 3.18
5
+ envlist =
6
+ release-check
7
+ lint
8
+ py39
9
+ py310
10
+ py311
11
+ py312
12
+ py313
13
+ coverage
14
+
15
+ [testenv]
16
+ skip_install = true
17
+ deps =
18
+ setuptools <= 75.6.0
19
+ zc.buildout >= 3.1
20
+ wheel > 0.37
21
+ setenv =
22
+ commands_pre =
23
+ {envbindir}/buildout -nc {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} install test
24
+ commands =
25
+ {envbindir}/test {posargs:-cv}
26
+
27
+ [testenv:setuptools-latest]
28
+ basepython = python3
29
+ deps =
30
+ git+https://github.com/pypa/setuptools.git\#egg=setuptools
31
+ zc.buildout >= 3.1
32
+ wheel > 0.37
33
+
34
+
35
+ [testenv:release-check]
36
+ description = ensure that the distribution is ready to release
37
+ basepython = python3
38
+ skip_install = true
39
+ deps =
40
+ setuptools <= 75.6.0
41
+ twine
42
+ build
43
+ check-manifest
44
+ check-python-versions >= 0.20.0
45
+ wheel
46
+ commands_pre =
47
+ commands =
48
+ check-manifest
49
+ check-python-versions --only setup.py,tox.ini,.github/workflows/tests.yml
50
+ python -m build --sdist --no-isolation
51
+ twine check dist/*
52
+
53
+ [testenv:lint]
54
+ description = This env runs all linters configured in .pre-commit-config.yaml
55
+ basepython = python3
56
+ skip_install = true
57
+ deps =
58
+ pre-commit
59
+ commands_pre =
60
+ commands =
61
+ pre-commit run --all-files --show-diff-on-failure
62
+
63
+ [testenv:coverage]
64
+ basepython = python3
65
+ skip_install = true
66
+ allowlist_externals =
67
+ {[testenv]allowlist_externals}
68
+ mkdir
69
+ deps =
70
+ {[testenv]deps}
71
+ coverage[toml]
72
+ commands =
73
+ mkdir -p {toxinidir}/parts/htmlcov
74
+ coverage run {envbindir}/test {posargs:-cv}
75
+ coverage html
76
+ coverage report
@@ -1,7 +0,0 @@
1
- [buildout]
2
- extends =
3
- buildout.cfg
4
- http://zopefoundation.github.io/Zope/releases/4.x/versions.cfg
5
-
6
- [versions]
7
- five.localsitemanager =
@@ -1 +0,0 @@
1
- __import__('pkg_resources').declare_namespace(__name__)
@@ -1,90 +0,0 @@
1
- # Generated from:
2
- # https://github.com/zopefoundation/meta/tree/master/config/zope-product
3
- [tox]
4
- minversion = 3.18
5
- envlist =
6
- lint
7
- py27
8
- py35
9
- py36
10
- py37
11
- py38
12
- py39
13
- py310
14
- py311
15
- coverage
16
-
17
- [testenv]
18
- skip_install = true
19
- deps =
20
- zc.buildout >= 3.0.1
21
- wheel > 0.37
22
- commands_pre =
23
- py27,py35: {envbindir}/buildout -nc {toxinidir}/buildout4.cfg buildout:directory={envdir} buildout:develop={toxinidir} install test
24
- !py27-!py35: {envbindir}/buildout -nc {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} install test
25
- commands =
26
- {envdir}/bin/test {posargs:-cv}
27
-
28
- [testenv:lint]
29
- basepython = python3
30
- commands_pre =
31
- mkdir -p {toxinidir}/parts/flake8
32
- allowlist_externals =
33
- mkdir
34
- commands =
35
- isort --check-only --diff {toxinidir}/src {toxinidir}/setup.py
36
- - flake8 {toxinidir}/src {toxinidir}/setup.py
37
- flake8 {toxinidir}/src {toxinidir}/setup.py
38
- check-manifest
39
- check-python-versions
40
- deps =
41
- check-manifest
42
- check-python-versions
43
- flake8
44
- isort
45
- # Useful flake8 plugins that are Python and Plone specific:
46
- flake8-coding
47
- flake8-debugger
48
- mccabe
49
-
50
- [testenv:isort-apply]
51
- basepython = python3
52
- commands_pre =
53
- deps =
54
- isort
55
- commands =
56
- isort {toxinidir}/src {toxinidir}/setup.py []
57
-
58
- [testenv:coverage]
59
- basepython = python3
60
- skip_install = true
61
- allowlist_externals =
62
- mkdir
63
- deps =
64
- {[testenv]deps}
65
- coverage
66
- coverage-python-version
67
- commands =
68
- mkdir -p {toxinidir}/parts/htmlcov
69
- coverage run {envdir}/bin/test {posargs:-cv}
70
- coverage html
71
- coverage report -m --fail-under=89
72
-
73
- [coverage:run]
74
- branch = True
75
- plugins = coverage_python_version
76
- source = five.localsitemanager
77
-
78
- [coverage:report]
79
- precision = 2
80
- exclude_lines =
81
- pragma: no cover
82
- pragma: nocover
83
- except ImportError:
84
- raise NotImplementedError
85
- if __name__ == '__main__':
86
- self.fail
87
- raise AssertionError
88
-
89
- [coverage:html]
90
- directory = parts/htmlcov