nti.testing 4.1.0__tar.gz → 4.2.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 (60) hide show
  1. {nti.testing-4.1.0 → nti_testing-4.2.0}/.pylintrc +1 -8
  2. {nti.testing-4.1.0 → nti_testing-4.2.0}/CHANGES.rst +7 -0
  3. {nti.testing-4.1.0 → nti_testing-4.2.0}/PKG-INFO +10 -2
  4. nti_testing-4.2.0/pyproject.toml +5 -0
  5. nti_testing-4.2.0/setup.cfg +4 -0
  6. {nti.testing-4.1.0 → nti_testing-4.2.0}/setup.py +6 -5
  7. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/base.py +1 -1
  8. nti_testing-4.2.0/src/nti/testing/tests/__init__.py +0 -0
  9. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/tests/test_component_cleanup_broken.txt +0 -1
  10. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/zodb.py +1 -1
  11. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti.testing.egg-info/PKG-INFO +10 -2
  12. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti.testing.egg-info/SOURCES.txt +1 -3
  13. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti.testing.egg-info/requires.txt +0 -1
  14. nti.testing-4.1.0/nose2.cfg +0 -21
  15. nti.testing-4.1.0/setup.cfg +0 -11
  16. nti.testing-4.1.0/src/nti/__init__.py +0 -1
  17. nti.testing-4.1.0/src/nti.testing.egg-info/namespace_packages.txt +0 -1
  18. {nti.testing-4.1.0 → nti_testing-4.2.0}/.coveragerc +0 -0
  19. {nti.testing-4.1.0 → nti_testing-4.2.0}/.isort.cfg +0 -0
  20. {nti.testing-4.1.0 → nti_testing-4.2.0}/.nti_cover_package +0 -0
  21. {nti.testing-4.1.0 → nti_testing-4.2.0}/.readthedocs.yml +0 -0
  22. {nti.testing-4.1.0 → nti_testing-4.2.0}/.travis.yml +0 -0
  23. {nti.testing-4.1.0 → nti_testing-4.2.0}/COPYRIGHT.txt +0 -0
  24. {nti.testing-4.1.0 → nti_testing-4.2.0}/INSTALL +0 -0
  25. {nti.testing-4.1.0 → nti_testing-4.2.0}/LICENSE +0 -0
  26. {nti.testing-4.1.0 → nti_testing-4.2.0}/MANIFEST.in +0 -0
  27. {nti.testing-4.1.0 → nti_testing-4.2.0}/README.rst +0 -0
  28. {nti.testing-4.1.0 → nti_testing-4.2.0}/TODO +0 -0
  29. {nti.testing-4.1.0 → nti_testing-4.2.0}/doc-requirements.txt +0 -0
  30. {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/_static/custom.css +0 -0
  31. {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/api.rst +0 -0
  32. {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/base.rst +0 -0
  33. {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/changelog.rst +0 -0
  34. {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/conf.py +0 -0
  35. {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/index.rst +0 -0
  36. {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/layers.rst +0 -0
  37. {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/matchers.rst +0 -0
  38. {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/time.rst +0 -0
  39. {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/zodb.rst +0 -0
  40. {nti.testing-4.1.0/src/nti/testing/layers/tests → nti_testing-4.2.0/src/nti}/__init__.py +0 -0
  41. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/__init__.py +0 -0
  42. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/layers/__init__.py +0 -0
  43. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/layers/cleanup.py +0 -0
  44. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/layers/postgres.py +0 -0
  45. {nti.testing-4.1.0/src/nti/testing → nti_testing-4.2.0/src/nti/testing/layers}/tests/__init__.py +0 -0
  46. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/layers/tests/test_postgres.py +0 -0
  47. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/layers/zope.py +0 -0
  48. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/matchers.py +0 -0
  49. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/mock.py +0 -0
  50. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/tests/test_base.py +0 -0
  51. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/tests/test_layers.py +0 -0
  52. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/tests/test_main.py +0 -0
  53. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/tests/test_matchers.py +0 -0
  54. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/tests/test_time.py +0 -0
  55. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/tests/test_zodb.py +0 -0
  56. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/time.py +0 -0
  57. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti.testing.egg-info/dependency_links.txt +0 -0
  58. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti.testing.egg-info/top_level.txt +0 -0
  59. {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti.testing.egg-info/zip-safe +0 -0
  60. {nti.testing-4.1.0 → nti_testing-4.2.0}/tox.ini +0 -0
@@ -1,6 +1,5 @@
1
1
  [MASTER]
2
2
  load-plugins=pylint.extensions.bad_builtin,
3
- pylint.extensions.broad_try_clause,
4
3
  pylint.extensions.check_elif,
5
4
  pylint.extensions.code_style,
6
5
  pylint.extensions.dict_init_mutate,
@@ -16,13 +15,9 @@ load-plugins=pylint.extensions.bad_builtin,
16
15
  pylint.extensions.overlapping_exceptions,
17
16
  pylint.extensions.docparams,
18
17
  pylint.extensions.private_import,
18
+ pylint.extensions.set_membership,
19
19
  pylint.extensions.typing,
20
20
 
21
- # pylint.extensions.set_membership,
22
- # wants you to turn ``foo in (1, 2)`` into ``foo in {1, 2}``;
23
- # but for small tuples, the former is actually more
24
- # performant.
25
-
26
21
  # magic_value wants you to not use arbitrary strings and numbers
27
22
  # inline in the code. But it's overzealous and has way too many false
28
23
  # positives. Trust people to do the most readable thing.
@@ -155,8 +150,6 @@ disable=wrong-import-position,
155
150
  differing-type-doc,
156
151
  compare-to-zero,
157
152
  docstring-first-line-empty,
158
- too-many-try-statements,
159
- redefined-variable-type,
160
153
 
161
154
  enable=consider-using-augmented-assign
162
155
 
@@ -2,6 +2,13 @@
2
2
  Changes
3
3
  =========
4
4
 
5
+ 4.2.0 (2024-11-06)
6
+ ==================
7
+
8
+ - Add support for Python 3.13.
9
+ - Use native namespace packages.
10
+
11
+
5
12
  4.1.0 (2024-04-10)
6
13
  ==================
7
14
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nti.testing
3
- Version: 4.1.0
3
+ Version: 4.2.0
4
4
  Summary: Support for testing code
5
5
  Home-page: https://github.com/OpenNTI/nti.testing
6
6
  Author: Jason Madden
@@ -13,9 +13,11 @@ Classifier: Natural Language :: English
13
13
  Classifier: Operating System :: OS Independent
14
14
  Classifier: License :: OSI Approved :: Apache Software License
15
15
  Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3 :: Only
16
17
  Classifier: Programming Language :: Python :: 3.10
17
18
  Classifier: Programming Language :: Python :: 3.11
18
19
  Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
19
21
  Classifier: Programming Language :: Python :: Implementation :: CPython
20
22
  Classifier: Programming Language :: Python :: Implementation :: PyPy
21
23
  Classifier: Topic :: Software Development :: Testing
@@ -26,7 +28,6 @@ Requires-Dist: ZODB>=5.6.0
26
28
  Requires-Dist: zope.interface>=5.4.0
27
29
  Requires-Dist: pyhamcrest
28
30
  Requires-Dist: six
29
- Requires-Dist: setuptools
30
31
  Requires-Dist: transaction
31
32
  Requires-Dist: zope.component
32
33
  Requires-Dist: zope.configuration
@@ -301,6 +302,13 @@ ZODB in `nti.testing.zodb`. See the API documentation for details.
301
302
  Changes
302
303
  =========
303
304
 
305
+ 4.2.0 (2024-11-06)
306
+ ==================
307
+
308
+ - Add support for Python 3.13.
309
+ - Use native namespace packages.
310
+
311
+
304
312
  4.1.0 (2024-04-10)
305
313
  ==================
306
314
 
@@ -0,0 +1,5 @@
1
+ [build-system]
2
+ requires = [
3
+ "wheel",
4
+ "setuptools",
5
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -2,10 +2,11 @@
2
2
  # Copyright 2022-2024 Jason Madden
3
3
  # Released under the terms of the LICENSE file.
4
4
  import codecs
5
- from setuptools import setup, find_packages
5
+ from setuptools import setup
6
+ from setuptools import find_namespace_packages
6
7
 
7
8
 
8
- version = '4.1.0'
9
+ version = '4.2.0'
9
10
 
10
11
  entry_points = {
11
12
  }
@@ -41,25 +42,25 @@ setup(
41
42
  'Operating System :: OS Independent',
42
43
  'License :: OSI Approved :: Apache Software License',
43
44
  'Programming Language :: Python :: 3',
45
+ 'Programming Language :: Python :: 3 :: Only',
44
46
  'Programming Language :: Python :: 3.10',
45
47
  'Programming Language :: Python :: 3.11',
46
48
  'Programming Language :: Python :: 3.12',
49
+ 'Programming Language :: Python :: 3.13',
47
50
  'Programming Language :: Python :: Implementation :: CPython',
48
51
  'Programming Language :: Python :: Implementation :: PyPy',
49
52
  'Topic :: Software Development :: Testing',
50
53
  'Framework :: Zope3',
51
54
  ],
52
55
  zip_safe=True,
53
- packages=find_packages('src'),
56
+ packages=find_namespace_packages(where='src'),
54
57
  package_dir={'': 'src'},
55
- namespace_packages=['nti'],
56
58
  install_requires=[
57
59
  'ZODB >= 5.6.0',
58
60
  # Error messages changed in 5.1, reprs changed <= 5.4
59
61
  'zope.interface >= 5.4.0',
60
62
  'pyhamcrest',
61
63
  'six',
62
- 'setuptools',
63
64
  'transaction',
64
65
  'zope.component',
65
66
  'zope.configuration',
@@ -94,7 +94,7 @@ class AbstractConfiguringObject(object):
94
94
  package=obj.get_configuration_package())
95
95
 
96
96
  @staticmethod
97
- def _do_configure_packages(obj,
97
+ def _do_configure_packages(obj, # pylint:disable=too-many-positional-arguments
98
98
  set_up_packages=(),
99
99
  features=(),
100
100
  context=_marker,
File without changes
@@ -17,7 +17,6 @@ We can demonstrate this with some code.
17
17
 
18
18
  First we import the basic modules::
19
19
 
20
- >>> import pkg_resources # to make sure namespace imports work
21
20
  >>> from zope.testing import cleanup
22
21
  >>> from zope import interface
23
22
  >>> from zope import component
@@ -154,7 +154,7 @@ class mock_db_trans(object):
154
154
  tx = self.__current_transaction
155
155
  if not txm.explicit:
156
156
  abort_only = True
157
- error_in_body = _TransactionManagerModeChanged(t, v, tb)
157
+ error_in_body:Exception = _TransactionManagerModeChanged(t, v, tb)
158
158
 
159
159
  try:
160
160
  if txm.get() is not tx:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nti.testing
3
- Version: 4.1.0
3
+ Version: 4.2.0
4
4
  Summary: Support for testing code
5
5
  Home-page: https://github.com/OpenNTI/nti.testing
6
6
  Author: Jason Madden
@@ -13,9 +13,11 @@ Classifier: Natural Language :: English
13
13
  Classifier: Operating System :: OS Independent
14
14
  Classifier: License :: OSI Approved :: Apache Software License
15
15
  Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3 :: Only
16
17
  Classifier: Programming Language :: Python :: 3.10
17
18
  Classifier: Programming Language :: Python :: 3.11
18
19
  Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
19
21
  Classifier: Programming Language :: Python :: Implementation :: CPython
20
22
  Classifier: Programming Language :: Python :: Implementation :: PyPy
21
23
  Classifier: Topic :: Software Development :: Testing
@@ -26,7 +28,6 @@ Requires-Dist: ZODB>=5.6.0
26
28
  Requires-Dist: zope.interface>=5.4.0
27
29
  Requires-Dist: pyhamcrest
28
30
  Requires-Dist: six
29
- Requires-Dist: setuptools
30
31
  Requires-Dist: transaction
31
32
  Requires-Dist: zope.component
32
33
  Requires-Dist: zope.configuration
@@ -301,6 +302,13 @@ ZODB in `nti.testing.zodb`. See the API documentation for details.
301
302
  Changes
302
303
  =========
303
304
 
305
+ 4.2.0 (2024-11-06)
306
+ ==================
307
+
308
+ - Add support for Python 3.13.
309
+ - Use native namespace packages.
310
+
311
+
304
312
  4.1.0 (2024-04-10)
305
313
  ==================
306
314
 
@@ -12,8 +12,7 @@ MANIFEST.in
12
12
  README.rst
13
13
  TODO
14
14
  doc-requirements.txt
15
- nose2.cfg
16
- setup.cfg
15
+ pyproject.toml
17
16
  setup.py
18
17
  tox.ini
19
18
  docs/api.rst
@@ -30,7 +29,6 @@ src/nti/__init__.py
30
29
  src/nti.testing.egg-info/PKG-INFO
31
30
  src/nti.testing.egg-info/SOURCES.txt
32
31
  src/nti.testing.egg-info/dependency_links.txt
33
- src/nti.testing.egg-info/namespace_packages.txt
34
32
  src/nti.testing.egg-info/requires.txt
35
33
  src/nti.testing.egg-info/top_level.txt
36
34
  src/nti.testing.egg-info/zip-safe
@@ -2,7 +2,6 @@ ZODB>=5.6.0
2
2
  zope.interface>=5.4.0
3
3
  pyhamcrest
4
4
  six
5
- setuptools
6
5
  transaction
7
6
  zope.component
8
7
  zope.configuration
@@ -1,21 +0,0 @@
1
- [unittest]
2
- plugins = nose2.plugins.layers
3
- nose2.plugins.doctests
4
-
5
- [log-capture]
6
- always-on = true
7
- clear-handlers = true
8
- loglevel = DEBUG
9
-
10
- #[output-buffer]
11
- #always-on = true
12
- #stderr = true
13
-
14
- [doctest]
15
- always-on = true
16
- extensions = .txt
17
- .rst
18
-
19
- [layer-reporter]
20
- always-on = true
21
- colors = true
@@ -1,11 +0,0 @@
1
- [nosetests]
2
- cover-package = nti.testing
3
- match = [Tt]est[s_]
4
-
5
- [bdist_wheel]
6
- universal = 1
7
-
8
- [egg_info]
9
- tag_build =
10
- tag_date = 0
11
-
@@ -1 +0,0 @@
1
- __import__('pkg_resources').declare_namespace(__name__) # pragma: no cover
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes