Skip to content

Commit cec65b3

Browse files
Merge pull request #63 from plone/pep-420-native-namespace
PEP 420 native namespace
2 parents c0f305e + 656579b commit cec65b3

File tree

6 files changed

+26
-31
lines changed

6 files changed

+26
-31
lines changed

.github/workflows/test-matrix.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ jobs:
2222
- ["pypy3.11", "6.2 on pypy3.11", "pypy311-plone62"]
2323
- ["3.13", "6.2 on py3.13", "py313-plone62"]
2424
- ["3.10", "6.2 on py3.10", "py310-plone62"]
25-
- ["3.13", "6.1 on py3.13", "py313-plone61"]
26-
- ["3.10", "6.1 on py3.10", "py310-plone61"]
27-
- ["3.9", "6.0 on py3.9", "py39-plone60"]
28-
- ["3.13", "6.0 on py3.13", "py313-plone60"]
2925

3026
runs-on: ${{ matrix.os[1] }}
3127
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
@@ -39,6 +35,14 @@ jobs:
3935
with:
4036
python-version: ${{ matrix.config[0] }}
4137
allow-prereleases: true
38+
39+
##
40+
# Add extra configuration options in .meta.toml:
41+
# [github]
42+
# extra_lines_after_os_dependencies = """
43+
# _your own configuration lines_
44+
# """
45+
##
4246
- name: Pip cache
4347
uses: actions/cache@v4
4448
with:
@@ -58,3 +62,12 @@ jobs:
5862
if [ `tox list --no-desc -f init|wc -l` = 1 ]; then tox -e init;else true; fi
5963
- name: Test
6064
run: tox -e ${{ matrix.config[2] }}
65+
66+
67+
##
68+
# Add extra configuration options in .meta.toml:
69+
# [github]
70+
# extra_lines = """
71+
# _your own configuration lines_
72+
# """
73+
##

.meta.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
# See the inline comments on how to expand/tweak this configuration file
44
[meta]
55
template = "default"
6-
commit-id = "2.0.1.dev0"
6+
commit-id = "2.2.0"
77

88
[pyproject]
99
dependencies_ignores = "['zope.testing']"
1010
codespell_ignores = "whit"
1111

1212
[tox]
13-
test_matrix = {"6.2" = ["3.13", "3.12", "3.11", "3.10", "pypy3.11"], "6.1" = ["3.13", "3.12", "3.11", "3.10"], "6.0" = ["3.13", "3.12", "3.11", "3.10", "3.9"]}
13+
test_matrix = {"6.2" = ["3.13", "3.12", "3.11", "3.10", "pypy3.11"]}

news/3928.breaking

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Replace ``pkg_resources`` namespace with PEP 420 native namespace.
2+
Support only Plone 6.2 and Python 3.10+.

setup.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
from pathlib import Path
2-
from setuptools import find_packages
32
from setuptools import setup
43

54

6-
version = "3.0.5.dev0"
5+
version = "4.0.0.dev0"
76

87
long_description = (
98
f"{Path('README.rst').read_text()}\n"
@@ -23,14 +22,12 @@
2322
"Development Status :: 5 - Production/Stable",
2423
"Environment :: Web Environment",
2524
"Framework :: Plone",
26-
"Framework :: Plone :: 6.0",
25+
"Framework :: Plone :: 6.2",
2726
"Framework :: Plone :: Core",
2827
"Framework :: Zope :: 5",
2928
"License :: OSI Approved :: BSD License",
3029
"Operating System :: OS Independent",
3130
"Programming Language :: Python",
32-
"Programming Language :: Python :: 3.8",
33-
"Programming Language :: Python :: 3.9",
3431
"Programming Language :: Python :: 3.10",
3532
"Programming Language :: Python :: 3.11",
3633
"Programming Language :: Python :: Implementation :: CPython",
@@ -41,12 +38,9 @@
4138
author_email="plone-developers@lists.sourceforge.net",
4239
url="https://pypi.org/project/plone.memoize",
4340
license="BSD",
44-
packages=find_packages("src"),
45-
namespace_packages=["plone"],
46-
package_dir={"": "src"},
4741
include_package_data=True,
4842
zip_safe=False,
49-
python_requires=">=3.8",
43+
python_requires=">=3.10",
5044
extras_require=dict(
5145
test=[
5246
"zope.configuration",
@@ -55,7 +49,6 @@
5549
],
5650
),
5751
install_requires=[
58-
"setuptools",
5952
"zope.annotation",
6053
"zope.component",
6154
"zope.globalrequest",

src/plone/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

tox.ini

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,17 @@ envlist =
1212
py311-plone62
1313
py310-plone62
1414
pypy311-plone62
15-
py313-plone61
16-
py312-plone61
17-
py311-plone61
18-
py310-plone61
19-
py313-plone60
20-
py312-plone60
21-
py311-plone60
22-
py310-plone60
23-
py39-plone60
2415
dependencies
2516

2617

2718
##
2819
# Add extra configuration options in .meta.toml:
2920
# - to specify a custom testing combination of Plone and python versions, use `test_matrix`
21+
# Use ["*"] to use all supported Python versions for this Plone version.
3022
# - to specify extra custom environments, use `envlist_lines`
3123
# - to specify extra `tox` top-level options, use `config_lines`
3224
# [tox]
33-
# test_matrix = {"6.2" = ["3.13", "3.12"], "6.1" = ["3.10", "3.9"]}
25+
# test_matrix = {"6.2" = ["3.13", "3.12"], "6.1" = ["*"]}
3426
# envlist_lines = """
3527
# my_other_environment
3628
# """
@@ -120,8 +112,6 @@ set_env =
120112
deps =
121113
{[test_runner]deps}
122114
plone62: -c https://dist.plone.org/release/6.2-dev/constraints.txt
123-
plone61: -c https://dist.plone.org/release/6.1-dev/constraints.txt
124-
plone60: -c https://dist.plone.org/release/6.0-dev/constraints.txt
125115

126116
##
127117
# Specify additional deps in .meta.toml:
@@ -201,7 +191,6 @@ deps =
201191
build
202192
towncrier
203193
-c https://dist.plone.org/release/6.2-dev/constraints.txt
204-
205194
commands =
206195
# fake version to not have to install the package
207196
# we build the change log as news entries might break
@@ -232,7 +221,6 @@ deps =
232221
pipdeptree
233222
pipforester
234223
-c https://dist.plone.org/release/6.2-dev/constraints.txt
235-
236224
commands =
237225
# Generate the full dependency tree
238226
sh -c 'pipdeptree -j > forest.json'

0 commit comments

Comments
 (0)