zope.globalrequest 2.0__tar.gz → 2.1__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.
- zope_globalrequest-2.1/.pre-commit-config.yaml +28 -0
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/CHANGES.rst +8 -0
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/CONTRIBUTING.md +1 -1
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/MANIFEST.in +1 -0
- {zope.globalrequest-2.0/src/zope.globalrequest.egg-info → zope_globalrequest-2.1}/PKG-INFO +31 -5
- zope_globalrequest-2.1/pyproject.toml +32 -0
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/setup.cfg +1 -4
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/setup.py +4 -4
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/src/zope/globalrequest/tests.py +4 -4
- {zope.globalrequest-2.0 → zope_globalrequest-2.1/src/zope.globalrequest.egg-info}/PKG-INFO +31 -5
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/src/zope.globalrequest.egg-info/SOURCES.txt +2 -0
- zope_globalrequest-2.1/tox.ini +70 -0
- zope.globalrequest-2.0/tox.ini +0 -74
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/README.rst +0 -0
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/buildout.cfg +0 -0
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/src/zope/__init__.py +0 -0
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/src/zope/globalrequest/__init__.py +0 -0
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/src/zope/globalrequest/configure.zcml +0 -0
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/src/zope/globalrequest/interfaces.py +0 -0
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/src/zope/globalrequest/local.py +0 -0
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/src/zope/globalrequest/subscribers.py +0 -0
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/src/zope.globalrequest.egg-info/dependency_links.txt +0 -0
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/src/zope.globalrequest.egg-info/namespace_packages.txt +0 -0
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/src/zope.globalrequest.egg-info/not-zip-safe +0 -0
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/src/zope.globalrequest.egg-info/requires.txt +0 -0
- {zope.globalrequest-2.0 → zope_globalrequest-2.1}/src/zope.globalrequest.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.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.2.0"
|
|
25
|
+
hooks:
|
|
26
|
+
- id: flake8
|
|
27
|
+
additional_dependencies:
|
|
28
|
+
- flake8-debugger == 4.1.2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: zope.globalrequest
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1
|
|
4
4
|
Summary: Global way of retrieving the currently active request.
|
|
5
5
|
Home-page: https://github.com/zopefoundation/zope.globalrequest
|
|
6
6
|
Author: Zope Foundation and Contributors
|
|
@@ -22,14 +22,32 @@ Classifier: License :: OSI Approved :: Zope Public License
|
|
|
22
22
|
Classifier: Operating System :: OS Independent
|
|
23
23
|
Classifier: Programming Language :: Python
|
|
24
24
|
Classifier: Programming Language :: Python :: 3
|
|
25
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
26
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
27
25
|
Classifier: Programming Language :: Python :: 3.9
|
|
28
26
|
Classifier: Programming Language :: Python :: 3.10
|
|
29
27
|
Classifier: Programming Language :: Python :: 3.11
|
|
28
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
29
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
30
30
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
|
+
Requires-Dist: setuptools
|
|
33
|
+
Requires-Dist: zope.interface
|
|
34
|
+
Requires-Dist: zope.publisher
|
|
35
|
+
Requires-Dist: zope.traversing
|
|
32
36
|
Provides-Extra: test
|
|
37
|
+
Requires-Dist: zope.testrunner; extra == "test"
|
|
38
|
+
Dynamic: author
|
|
39
|
+
Dynamic: author-email
|
|
40
|
+
Dynamic: classifier
|
|
41
|
+
Dynamic: description
|
|
42
|
+
Dynamic: home-page
|
|
43
|
+
Dynamic: keywords
|
|
44
|
+
Dynamic: license
|
|
45
|
+
Dynamic: platform
|
|
46
|
+
Dynamic: project-url
|
|
47
|
+
Dynamic: provides-extra
|
|
48
|
+
Dynamic: requires-dist
|
|
49
|
+
Dynamic: requires-python
|
|
50
|
+
Dynamic: summary
|
|
33
51
|
|
|
34
52
|
|
|
35
53
|
|
|
@@ -49,6 +67,14 @@ the latter promotes a clean separation of concerns and the pattern of having a g
|
|
|
49
67
|
Changelog
|
|
50
68
|
=========
|
|
51
69
|
|
|
70
|
+
2.1 (2025-09-04)
|
|
71
|
+
----------------
|
|
72
|
+
|
|
73
|
+
- Add support for Python 3.12, 3.13.
|
|
74
|
+
|
|
75
|
+
- Drop support for Python 3.7, 3.8.
|
|
76
|
+
|
|
77
|
+
|
|
52
78
|
2.0 (2023-03-27)
|
|
53
79
|
----------------
|
|
54
80
|
|
|
@@ -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 == 75.8.2",
|
|
7
|
+
"wheel",
|
|
8
|
+
]
|
|
9
|
+
build-backend = "setuptools.build_meta"
|
|
10
|
+
|
|
11
|
+
[tool.coverage.run]
|
|
12
|
+
branch = true
|
|
13
|
+
source = ["zope.globalrequest"]
|
|
14
|
+
|
|
15
|
+
[tool.coverage.report]
|
|
16
|
+
fail_under = 100
|
|
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
|
|
|
@@ -13,7 +10,7 @@ ignore =
|
|
|
13
10
|
force_single_line = True
|
|
14
11
|
combine_as_imports = True
|
|
15
12
|
sections = FUTURE,STDLIB,THIRDPARTY,ZOPE,FIRSTPARTY,LOCALFOLDER
|
|
16
|
-
known_third_party =
|
|
13
|
+
known_third_party = docutils, pkg_resources, pytz
|
|
17
14
|
known_zope =
|
|
18
15
|
known_first_party =
|
|
19
16
|
default_section = ZOPE
|
|
@@ -2,7 +2,7 @@ from setuptools import find_packages
|
|
|
2
2
|
from setuptools import setup
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
version = '2.
|
|
5
|
+
version = '2.1'
|
|
6
6
|
|
|
7
7
|
readme = open('README.rst').read()
|
|
8
8
|
changes = open('CHANGES.rst').read()
|
|
@@ -25,11 +25,11 @@ setup(
|
|
|
25
25
|
'Operating System :: OS Independent',
|
|
26
26
|
'Programming Language :: Python',
|
|
27
27
|
'Programming Language :: Python :: 3',
|
|
28
|
-
'Programming Language :: Python :: 3.7',
|
|
29
|
-
'Programming Language :: Python :: 3.8',
|
|
30
28
|
'Programming Language :: Python :: 3.9',
|
|
31
29
|
'Programming Language :: Python :: 3.10',
|
|
32
30
|
'Programming Language :: Python :: 3.11',
|
|
31
|
+
'Programming Language :: Python :: 3.12',
|
|
32
|
+
'Programming Language :: Python :: 3.13',
|
|
33
33
|
'Programming Language :: Python :: Implementation :: CPython',
|
|
34
34
|
],
|
|
35
35
|
keywords='zope request global',
|
|
@@ -48,7 +48,7 @@ setup(
|
|
|
48
48
|
include_package_data=True,
|
|
49
49
|
platforms='Any',
|
|
50
50
|
zip_safe=False,
|
|
51
|
-
python_requires='>=3.
|
|
51
|
+
python_requires='>=3.9',
|
|
52
52
|
install_requires=[
|
|
53
53
|
'setuptools',
|
|
54
54
|
'zope.interface',
|
|
@@ -13,7 +13,7 @@ class TestGlobalrequest(unittest.TestCase):
|
|
|
13
13
|
def test_unset_local(self):
|
|
14
14
|
# test with unset values
|
|
15
15
|
import zope.globalrequest.local
|
|
16
|
-
self.
|
|
16
|
+
self.assertIsNone(zope.globalrequest.local.getLocal('unsetkey'))
|
|
17
17
|
|
|
18
18
|
def test_set_get_local(self):
|
|
19
19
|
# test with simple values
|
|
@@ -44,7 +44,7 @@ class TestGlobalrequest(unittest.TestCase):
|
|
|
44
44
|
def test_unset_global_request(self):
|
|
45
45
|
# get w/o any value set returns None
|
|
46
46
|
import zope.globalrequest
|
|
47
|
-
self.
|
|
47
|
+
self.assertIsNone(zope.globalrequest.getRequest())
|
|
48
48
|
|
|
49
49
|
def test_set_get_globalrequest(self):
|
|
50
50
|
# set a value and get it back
|
|
@@ -59,7 +59,7 @@ class TestGlobalrequest(unittest.TestCase):
|
|
|
59
59
|
test_request = dict(value='I am a dummy request')
|
|
60
60
|
zope.globalrequest.setRequest(test_request)
|
|
61
61
|
zope.globalrequest.clearRequest()
|
|
62
|
-
self.
|
|
62
|
+
self.assertIsNone(zope.globalrequest.getRequest())
|
|
63
63
|
|
|
64
64
|
def test_set_subscriber(self):
|
|
65
65
|
import zope.globalrequest.subscribers
|
|
@@ -86,7 +86,7 @@ class TestGlobalrequest(unittest.TestCase):
|
|
|
86
86
|
# test clear
|
|
87
87
|
zope.globalrequest.subscribers.set(None, dummy_event)
|
|
88
88
|
zope.globalrequest.subscribers.clear(dummy_event)
|
|
89
|
-
self.
|
|
89
|
+
self.assertIsNone(zope.globalrequest.getRequest())
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
def test_suite():
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: zope.globalrequest
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1
|
|
4
4
|
Summary: Global way of retrieving the currently active request.
|
|
5
5
|
Home-page: https://github.com/zopefoundation/zope.globalrequest
|
|
6
6
|
Author: Zope Foundation and Contributors
|
|
@@ -22,14 +22,32 @@ Classifier: License :: OSI Approved :: Zope Public License
|
|
|
22
22
|
Classifier: Operating System :: OS Independent
|
|
23
23
|
Classifier: Programming Language :: Python
|
|
24
24
|
Classifier: Programming Language :: Python :: 3
|
|
25
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
26
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
27
25
|
Classifier: Programming Language :: Python :: 3.9
|
|
28
26
|
Classifier: Programming Language :: Python :: 3.10
|
|
29
27
|
Classifier: Programming Language :: Python :: 3.11
|
|
28
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
29
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
30
30
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
|
+
Requires-Dist: setuptools
|
|
33
|
+
Requires-Dist: zope.interface
|
|
34
|
+
Requires-Dist: zope.publisher
|
|
35
|
+
Requires-Dist: zope.traversing
|
|
32
36
|
Provides-Extra: test
|
|
37
|
+
Requires-Dist: zope.testrunner; extra == "test"
|
|
38
|
+
Dynamic: author
|
|
39
|
+
Dynamic: author-email
|
|
40
|
+
Dynamic: classifier
|
|
41
|
+
Dynamic: description
|
|
42
|
+
Dynamic: home-page
|
|
43
|
+
Dynamic: keywords
|
|
44
|
+
Dynamic: license
|
|
45
|
+
Dynamic: platform
|
|
46
|
+
Dynamic: project-url
|
|
47
|
+
Dynamic: provides-extra
|
|
48
|
+
Dynamic: requires-dist
|
|
49
|
+
Dynamic: requires-python
|
|
50
|
+
Dynamic: summary
|
|
33
51
|
|
|
34
52
|
|
|
35
53
|
|
|
@@ -49,6 +67,14 @@ the latter promotes a clean separation of concerns and the pattern of having a g
|
|
|
49
67
|
Changelog
|
|
50
68
|
=========
|
|
51
69
|
|
|
70
|
+
2.1 (2025-09-04)
|
|
71
|
+
----------------
|
|
72
|
+
|
|
73
|
+
- Add support for Python 3.12, 3.13.
|
|
74
|
+
|
|
75
|
+
- Drop support for Python 3.7, 3.8.
|
|
76
|
+
|
|
77
|
+
|
|
52
78
|
2.0 (2023-03-27)
|
|
53
79
|
----------------
|
|
54
80
|
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
coverage
|
|
14
|
+
|
|
15
|
+
[testenv]
|
|
16
|
+
usedevelop = true
|
|
17
|
+
package = wheel
|
|
18
|
+
wheel_build_env = .pkg
|
|
19
|
+
deps =
|
|
20
|
+
setuptools == 75.8.2
|
|
21
|
+
commands =
|
|
22
|
+
zope-testrunner --test-path=src {posargs:-vc}
|
|
23
|
+
extras =
|
|
24
|
+
test
|
|
25
|
+
|
|
26
|
+
[testenv:setuptools-latest]
|
|
27
|
+
basepython = python3
|
|
28
|
+
deps =
|
|
29
|
+
git+https://github.com/pypa/setuptools.git\#egg=setuptools
|
|
30
|
+
|
|
31
|
+
[testenv:release-check]
|
|
32
|
+
description = ensure that the distribution is ready to release
|
|
33
|
+
basepython = python3
|
|
34
|
+
skip_install = true
|
|
35
|
+
deps =
|
|
36
|
+
setuptools == 75.8.2
|
|
37
|
+
wheel
|
|
38
|
+
twine
|
|
39
|
+
build
|
|
40
|
+
check-manifest
|
|
41
|
+
check-python-versions >= 0.20.0
|
|
42
|
+
wheel
|
|
43
|
+
commands_pre =
|
|
44
|
+
commands =
|
|
45
|
+
check-manifest
|
|
46
|
+
check-python-versions --only setup.py,tox.ini,.github/workflows/tests.yml
|
|
47
|
+
python -m build --sdist --no-isolation
|
|
48
|
+
twine check dist/*
|
|
49
|
+
|
|
50
|
+
[testenv:lint]
|
|
51
|
+
description = This env runs all linters configured in .pre-commit-config.yaml
|
|
52
|
+
basepython = python3
|
|
53
|
+
skip_install = true
|
|
54
|
+
deps =
|
|
55
|
+
pre-commit
|
|
56
|
+
commands_pre =
|
|
57
|
+
commands =
|
|
58
|
+
pre-commit run --all-files --show-diff-on-failure
|
|
59
|
+
|
|
60
|
+
[testenv:coverage]
|
|
61
|
+
basepython = python3
|
|
62
|
+
allowlist_externals =
|
|
63
|
+
mkdir
|
|
64
|
+
deps =
|
|
65
|
+
coverage[toml]
|
|
66
|
+
commands =
|
|
67
|
+
mkdir -p {toxinidir}/parts/htmlcov
|
|
68
|
+
coverage run -m zope.testrunner --test-path=src {posargs:-vc}
|
|
69
|
+
coverage html
|
|
70
|
+
coverage report
|
zope.globalrequest-2.0/tox.ini
DELETED
|
@@ -1,74 +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
|
-
coverage
|
|
13
|
-
|
|
14
|
-
[testenv]
|
|
15
|
-
usedevelop = true
|
|
16
|
-
deps =
|
|
17
|
-
commands =
|
|
18
|
-
zope-testrunner --test-path=src {posargs:-vc}
|
|
19
|
-
extras =
|
|
20
|
-
test
|
|
21
|
-
|
|
22
|
-
[testenv:lint]
|
|
23
|
-
basepython = python3
|
|
24
|
-
skip_install = true
|
|
25
|
-
commands =
|
|
26
|
-
isort --check-only --diff {toxinidir}/src {toxinidir}/setup.py
|
|
27
|
-
flake8 src setup.py
|
|
28
|
-
check-manifest
|
|
29
|
-
check-python-versions
|
|
30
|
-
deps =
|
|
31
|
-
check-manifest
|
|
32
|
-
check-python-versions >= 0.19.1
|
|
33
|
-
wheel
|
|
34
|
-
flake8
|
|
35
|
-
isort
|
|
36
|
-
|
|
37
|
-
[testenv:isort-apply]
|
|
38
|
-
basepython = python3
|
|
39
|
-
skip_install = true
|
|
40
|
-
commands_pre =
|
|
41
|
-
deps =
|
|
42
|
-
isort
|
|
43
|
-
commands =
|
|
44
|
-
isort {toxinidir}/src {toxinidir}/setup.py []
|
|
45
|
-
|
|
46
|
-
[testenv:coverage]
|
|
47
|
-
basepython = python3
|
|
48
|
-
allowlist_externals =
|
|
49
|
-
mkdir
|
|
50
|
-
deps =
|
|
51
|
-
coverage
|
|
52
|
-
commands =
|
|
53
|
-
mkdir -p {toxinidir}/parts/htmlcov
|
|
54
|
-
coverage run -m zope.testrunner --test-path=src {posargs:-vc}
|
|
55
|
-
coverage html --ignore-errors
|
|
56
|
-
coverage report --ignore-errors --show-missing --fail-under=100
|
|
57
|
-
|
|
58
|
-
[coverage:run]
|
|
59
|
-
branch = True
|
|
60
|
-
source = zope.globalrequest
|
|
61
|
-
|
|
62
|
-
[coverage:report]
|
|
63
|
-
precision = 2
|
|
64
|
-
exclude_lines =
|
|
65
|
-
pragma: no cover
|
|
66
|
-
pragma: nocover
|
|
67
|
-
except ImportError:
|
|
68
|
-
raise NotImplementedError
|
|
69
|
-
if __name__ == '__main__':
|
|
70
|
-
self.fail
|
|
71
|
-
raise AssertionError
|
|
72
|
-
|
|
73
|
-
[coverage:html]
|
|
74
|
-
directory = parts/htmlcov
|
|
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
|
{zope.globalrequest-2.0 → zope_globalrequest-2.1}/src/zope.globalrequest.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{zope.globalrequest-2.0 → zope_globalrequest-2.1}/src/zope.globalrequest.egg-info/requires.txt
RENAMED
|
File without changes
|
{zope.globalrequest-2.0 → zope_globalrequest-2.1}/src/zope.globalrequest.egg-info/top_level.txt
RENAMED
|
File without changes
|