z3c.flashmessage 3.0__tar.gz → 4.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 (32) hide show
  1. z3c_flashmessage-4.0/.pre-commit-config.yaml +28 -0
  2. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/CHANGES.rst +14 -0
  3. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/CONTRIBUTING.md +1 -1
  4. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/MANIFEST.in +1 -0
  5. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/PKG-INFO +43 -7
  6. z3c_flashmessage-4.0/pyproject.toml +32 -0
  7. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/setup.cfg +1 -4
  8. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/setup.py +6 -10
  9. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/src/z3c.flashmessage.egg-info/PKG-INFO +43 -7
  10. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/src/z3c.flashmessage.egg-info/SOURCES.txt +2 -2
  11. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/src/z3c.flashmessage.egg-info/requires.txt +1 -1
  12. z3c_flashmessage-4.0/tox.ini +73 -0
  13. z3c.flashmessage-3.0/src/z3c/__init__.py +0 -1
  14. z3c.flashmessage-3.0/src/z3c.flashmessage.egg-info/namespace_packages.txt +0 -1
  15. z3c.flashmessage-3.0/tox.ini +0 -77
  16. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/COPYRIGHT.txt +0 -0
  17. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/LICENSE.txt +0 -0
  18. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/README.rst +0 -0
  19. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/buildout.cfg +0 -0
  20. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/src/z3c/flashmessage/README.rst +0 -0
  21. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/src/z3c/flashmessage/TODO.txt +0 -0
  22. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/src/z3c/flashmessage/__init__.py +0 -0
  23. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/src/z3c/flashmessage/ftesting.zcml +0 -0
  24. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/src/z3c/flashmessage/interfaces.py +0 -0
  25. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/src/z3c/flashmessage/message.py +0 -0
  26. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/src/z3c/flashmessage/receiver.py +0 -0
  27. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/src/z3c/flashmessage/sketches.txt +0 -0
  28. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/src/z3c/flashmessage/sources.py +0 -0
  29. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/src/z3c/flashmessage/tests.py +0 -0
  30. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/src/z3c.flashmessage.egg-info/dependency_links.txt +0 -0
  31. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/src/z3c.flashmessage.egg-info/not-zip-safe +0 -0
  32. {z3c.flashmessage-3.0 → z3c_flashmessage-4.0}/src/z3c.flashmessage.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.1.2"
25
+ hooks:
26
+ - id: flake8
27
+ additional_dependencies:
28
+ - flake8-debugger == 4.1.2
@@ -2,6 +2,20 @@
2
2
  CHANGES
3
3
  =======
4
4
 
5
+ 4.0 (2025-04-14)
6
+ ================
7
+
8
+ - Replace ``pkg_resources`` namespace with PEP 420 native namespace.
9
+
10
+
11
+ 3.1 (2025-04-03)
12
+ ================
13
+
14
+ - Add support for Python 3.12, 3.13.
15
+
16
+ - Drop support for Python 3.7, 3.8.
17
+
18
+
5
19
  3.0 (2023-02-08)
6
20
  ================
7
21
 
@@ -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 *.rst
@@ -1,30 +1,52 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: z3c.flashmessage
3
- Version: 3.0
3
+ Version: 4.0
4
4
  Summary: A package for sending `flash messages` to users.
5
5
  Home-page: https://github.com/zopefoundation/z3c.flashmessage
6
6
  Author: Jasper Op de Coul, Christian Theune
7
7
  Author-email: jasper@infrae.com, mail@gocept.com
8
- License: ZPL 2.1
8
+ License: ZPL-2.1
9
9
  Keywords: zope3 message zope session
10
10
  Classifier: Environment :: Web Environment
11
11
  Classifier: Intended Audience :: Developers
12
12
  Classifier: License :: OSI Approved :: Zope Public License
13
13
  Classifier: Programming Language :: Python :: 3
14
- Classifier: Programming Language :: Python :: 3.7
15
- Classifier: Programming Language :: Python :: 3.8
16
14
  Classifier: Programming Language :: Python :: 3.9
17
15
  Classifier: Programming Language :: Python :: 3.10
18
16
  Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
19
  Classifier: Programming Language :: Python :: Implementation :: CPython
20
20
  Classifier: Programming Language :: Python :: Implementation :: PyPy
21
21
  Classifier: Natural Language :: English
22
22
  Classifier: Operating System :: OS Independent
23
23
  Classifier: Topic :: Internet :: WWW/HTTP
24
24
  Classifier: Framework :: Zope :: 3
25
- Requires-Python: >=3.7
26
- Provides-Extra: test
25
+ Requires-Python: >=3.9
27
26
  License-File: LICENSE.txt
27
+ Requires-Dist: setuptools
28
+ Requires-Dist: ZODB
29
+ Requires-Dist: zope.interface
30
+ Requires-Dist: zope.schema
31
+ Requires-Dist: zope.session
32
+ Provides-Extra: test
33
+ Requires-Dist: zope.publisher; extra == "test"
34
+ Requires-Dist: zope.component; extra == "test"
35
+ Requires-Dist: zope.security; extra == "test"
36
+ Requires-Dist: zope.testrunner>=6.4; extra == "test"
37
+ Requires-Dist: zope.app.wsgi[testlayer]>=4.0; extra == "test"
38
+ Requires-Dist: Webtest; extra == "test"
39
+ Dynamic: author
40
+ Dynamic: author-email
41
+ Dynamic: classifier
42
+ Dynamic: description
43
+ Dynamic: home-page
44
+ Dynamic: keywords
45
+ Dynamic: license
46
+ Dynamic: provides-extra
47
+ Dynamic: requires-dist
48
+ Dynamic: requires-python
49
+ Dynamic: summary
28
50
 
29
51
  .. contents::
30
52
 
@@ -167,6 +189,20 @@ clustering.
167
189
  CHANGES
168
190
  =======
169
191
 
192
+ 4.0 (2025-04-14)
193
+ ================
194
+
195
+ - Replace ``pkg_resources`` namespace with PEP 420 native namespace.
196
+
197
+
198
+ 3.1 (2025-04-03)
199
+ ================
200
+
201
+ - Add support for Python 3.12, 3.13.
202
+
203
+ - Drop support for Python 3.7, 3.8.
204
+
205
+
170
206
  3.0 (2023-02-08)
171
207
  ================
172
208
 
@@ -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 = ["z3c.flashmessage"]
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 = six, docutils, pkg_resources, pytz
13
+ known_third_party = docutils, pkg_resources, pytz
17
14
  known_zope =
18
15
  known_first_party =
19
16
  default_section = ZOPE
@@ -1,6 +1,5 @@
1
1
  import os.path
2
2
 
3
- from setuptools import find_packages
4
3
  from setuptools import setup
5
4
 
6
5
 
@@ -13,14 +12,14 @@ TEST_REQUIREMENTS = [
13
12
  'zope.publisher',
14
13
  'zope.component',
15
14
  'zope.security',
16
- 'zope.testrunner',
15
+ 'zope.testrunner >= 6.4',
17
16
  'zope.app.wsgi[testlayer] >= 4.0',
18
17
  'Webtest',
19
18
  ]
20
19
 
21
20
  setup(
22
21
  name="z3c.flashmessage",
23
- version='3.0',
22
+ version='4.0',
24
23
  author="Jasper Op de Coul, Christian Theune",
25
24
  author_email="jasper@infrae.com, mail@gocept.com",
26
25
  description="A package for sending `flash messages` to users.",
@@ -30,18 +29,18 @@ setup(
30
29
  read('CHANGES.rst')
31
30
  ),
32
31
  url='https://github.com/zopefoundation/z3c.flashmessage',
33
- license="ZPL 2.1",
32
+ license="ZPL-2.1",
34
33
  keywords="zope3 message zope session",
35
34
  classifiers=[
36
35
  'Environment :: Web Environment',
37
36
  'Intended Audience :: Developers',
38
37
  'License :: OSI Approved :: Zope Public License',
39
38
  'Programming Language :: Python :: 3',
40
- 'Programming Language :: Python :: 3.7',
41
- 'Programming Language :: Python :: 3.8',
42
39
  'Programming Language :: Python :: 3.9',
43
40
  'Programming Language :: Python :: 3.10',
44
41
  'Programming Language :: Python :: 3.11',
42
+ 'Programming Language :: Python :: 3.12',
43
+ 'Programming Language :: Python :: 3.13',
45
44
  'Programming Language :: Python :: Implementation :: CPython',
46
45
  'Programming Language :: Python :: Implementation :: PyPy',
47
46
  'Natural Language :: English',
@@ -50,11 +49,8 @@ setup(
50
49
  'Framework :: Zope :: 3',
51
50
  ],
52
51
  zip_safe=False,
53
- packages=find_packages('src'),
54
52
  include_package_data=True,
55
- package_dir={'': 'src'},
56
- namespace_packages=['z3c'],
57
- python_requires='>=3.7',
53
+ python_requires='>=3.9',
58
54
  install_requires=[
59
55
  'setuptools',
60
56
  'ZODB',
@@ -1,30 +1,52 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: z3c.flashmessage
3
- Version: 3.0
3
+ Version: 4.0
4
4
  Summary: A package for sending `flash messages` to users.
5
5
  Home-page: https://github.com/zopefoundation/z3c.flashmessage
6
6
  Author: Jasper Op de Coul, Christian Theune
7
7
  Author-email: jasper@infrae.com, mail@gocept.com
8
- License: ZPL 2.1
8
+ License: ZPL-2.1
9
9
  Keywords: zope3 message zope session
10
10
  Classifier: Environment :: Web Environment
11
11
  Classifier: Intended Audience :: Developers
12
12
  Classifier: License :: OSI Approved :: Zope Public License
13
13
  Classifier: Programming Language :: Python :: 3
14
- Classifier: Programming Language :: Python :: 3.7
15
- Classifier: Programming Language :: Python :: 3.8
16
14
  Classifier: Programming Language :: Python :: 3.9
17
15
  Classifier: Programming Language :: Python :: 3.10
18
16
  Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
19
  Classifier: Programming Language :: Python :: Implementation :: CPython
20
20
  Classifier: Programming Language :: Python :: Implementation :: PyPy
21
21
  Classifier: Natural Language :: English
22
22
  Classifier: Operating System :: OS Independent
23
23
  Classifier: Topic :: Internet :: WWW/HTTP
24
24
  Classifier: Framework :: Zope :: 3
25
- Requires-Python: >=3.7
26
- Provides-Extra: test
25
+ Requires-Python: >=3.9
27
26
  License-File: LICENSE.txt
27
+ Requires-Dist: setuptools
28
+ Requires-Dist: ZODB
29
+ Requires-Dist: zope.interface
30
+ Requires-Dist: zope.schema
31
+ Requires-Dist: zope.session
32
+ Provides-Extra: test
33
+ Requires-Dist: zope.publisher; extra == "test"
34
+ Requires-Dist: zope.component; extra == "test"
35
+ Requires-Dist: zope.security; extra == "test"
36
+ Requires-Dist: zope.testrunner>=6.4; extra == "test"
37
+ Requires-Dist: zope.app.wsgi[testlayer]>=4.0; extra == "test"
38
+ Requires-Dist: Webtest; extra == "test"
39
+ Dynamic: author
40
+ Dynamic: author-email
41
+ Dynamic: classifier
42
+ Dynamic: description
43
+ Dynamic: home-page
44
+ Dynamic: keywords
45
+ Dynamic: license
46
+ Dynamic: provides-extra
47
+ Dynamic: requires-dist
48
+ Dynamic: requires-python
49
+ Dynamic: summary
28
50
 
29
51
  .. contents::
30
52
 
@@ -167,6 +189,20 @@ clustering.
167
189
  CHANGES
168
190
  =======
169
191
 
192
+ 4.0 (2025-04-14)
193
+ ================
194
+
195
+ - Replace ``pkg_resources`` namespace with PEP 420 native namespace.
196
+
197
+
198
+ 3.1 (2025-04-03)
199
+ ================
200
+
201
+ - Add support for Python 3.12, 3.13.
202
+
203
+ - Drop support for Python 3.7, 3.8.
204
+
205
+
170
206
  3.0 (2023-02-08)
171
207
  ================
172
208
 
@@ -1,3 +1,4 @@
1
+ .pre-commit-config.yaml
1
2
  CHANGES.rst
2
3
  CONTRIBUTING.md
3
4
  COPYRIGHT.txt
@@ -5,14 +6,13 @@ LICENSE.txt
5
6
  MANIFEST.in
6
7
  README.rst
7
8
  buildout.cfg
9
+ pyproject.toml
8
10
  setup.cfg
9
11
  setup.py
10
12
  tox.ini
11
- src/z3c/__init__.py
12
13
  src/z3c.flashmessage.egg-info/PKG-INFO
13
14
  src/z3c.flashmessage.egg-info/SOURCES.txt
14
15
  src/z3c.flashmessage.egg-info/dependency_links.txt
15
- src/z3c.flashmessage.egg-info/namespace_packages.txt
16
16
  src/z3c.flashmessage.egg-info/not-zip-safe
17
17
  src/z3c.flashmessage.egg-info/requires.txt
18
18
  src/z3c.flashmessage.egg-info/top_level.txt
@@ -8,6 +8,6 @@ zope.session
8
8
  zope.publisher
9
9
  zope.component
10
10
  zope.security
11
- zope.testrunner
11
+ zope.testrunner>=6.4
12
12
  zope.app.wsgi[testlayer]>=4.0
13
13
  Webtest
@@ -0,0 +1,73 @@
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 == 75.8.2
22
+ setenv =
23
+ ZOPE_INTERFACE_STRICT_IRO=1
24
+ commands =
25
+ zope-testrunner --test-path=src {posargs:-vc}
26
+ extras =
27
+ test
28
+
29
+ [testenv:setuptools-latest]
30
+ basepython = python3
31
+ deps =
32
+ git+https://github.com/pypa/setuptools.git\#egg=setuptools
33
+
34
+ [testenv:release-check]
35
+ description = ensure that the distribution is ready to release
36
+ basepython = python3
37
+ skip_install = true
38
+ deps =
39
+ setuptools == 75.8.2
40
+ wheel
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
+ allowlist_externals =
66
+ mkdir
67
+ deps =
68
+ coverage[toml]
69
+ commands =
70
+ mkdir -p {toxinidir}/parts/htmlcov
71
+ coverage run -m zope.testrunner --test-path=src {posargs:-vc}
72
+ coverage html
73
+ coverage report
@@ -1 +0,0 @@
1
- __import__('pkg_resources').declare_namespace(__name__) # pragma: no cover
@@ -1,77 +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
- setenv =
19
- ZOPE_INTERFACE_STRICT_IRO=1
20
- commands =
21
- zope-testrunner --test-path=src {posargs:-vc}
22
- extras =
23
- test
24
-
25
- [testenv:lint]
26
- basepython = python3
27
- skip_install = true
28
- commands =
29
- isort --check-only --diff {toxinidir}/src {toxinidir}/setup.py
30
- flake8 src setup.py
31
- check-manifest
32
- check-python-versions
33
- deps =
34
- check-manifest
35
- check-python-versions >= 0.19.1
36
- wheel
37
- flake8
38
- isort
39
-
40
- [testenv:isort-apply]
41
- basepython = python3
42
- skip_install = true
43
- commands_pre =
44
- deps =
45
- isort
46
- commands =
47
- isort {toxinidir}/src {toxinidir}/setup.py []
48
-
49
- [testenv:coverage]
50
- basepython = python3
51
- allowlist_externals =
52
- mkdir
53
- deps =
54
- coverage
55
- commands =
56
- mkdir -p {toxinidir}/parts/htmlcov
57
- coverage run -m zope.testrunner --test-path=src {posargs:-vc}
58
- coverage html --ignore-errors
59
- coverage report --ignore-errors --show-missing --fail-under=100
60
-
61
- [coverage:run]
62
- branch = True
63
- source = z3c.flashmessage
64
-
65
- [coverage:report]
66
- precision = 2
67
- exclude_lines =
68
- pragma: no cover
69
- pragma: nocover
70
- except ImportError:
71
- raise NotImplementedError
72
- if __name__ == '__main__':
73
- self.fail
74
- raise AssertionError
75
-
76
- [coverage:html]
77
- directory = parts/htmlcov