Skip to content

Commit 2122f8b

Browse files
Merge pull request #4239 from plone/pep-420-native-namespace
PEP 420 native namespace
2 parents f8d57ff + 8d8c97c commit 2122f8b

File tree

7 files changed

+15
-24
lines changed

7 files changed

+15
-24
lines changed

.github/workflows/test-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- ["ubuntu", "ubuntu-latest"]
2020
config:
2121
# [Python version, visual name, tox env]
22-
- ["3.12", "6.2 on py3.12", "py312-plone62"]
22+
- ["3.13", "6.2 on py3.13", "py313-plone62"]
2323
- ["3.10", "6.2 on py3.10", "py310-plone62"]
2424

2525
runs-on: ${{ matrix.os[1] }}

.meta.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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.2"
77

88
[flake8]
99
extra_lines = """
@@ -33,7 +33,7 @@ dependencies_mappings = [
3333
]
3434

3535
[tox]
36-
test_matrix = {"6.2" = ["3.12", "3.10"]}
36+
test_matrix = {"6.2" = ["*"]}
3737

3838
[github]
3939
jobs = [
@@ -49,3 +49,4 @@ extra_lines_after_os_dependencies = """
4949
sudo locale-gen nl_NL@euro
5050
sudo update-locale
5151
"""
52+

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ ci:
77

88
repos:
99
- repo: https://github.com/asottile/pyupgrade
10-
rev: v3.20.0
10+
rev: v3.21.0
1111
hooks:
1212
- id: pyupgrade
1313
args: [--py38-plus]
1414
- repo: https://github.com/pycqa/isort
15-
rev: 6.0.1
15+
rev: 7.0.0
1616
hooks:
1717
- id: isort
18-
- repo: https://github.com/psf/black
19-
rev: 25.1.0
18+
- repo: https://github.com/psf/black-pre-commit-mirror
19+
rev: 25.9.0
2020
hooks:
2121
- id: black
2222
- repo: https://github.com/collective/zpretty
@@ -59,15 +59,15 @@ repos:
5959
# """
6060
##
6161
- repo: https://github.com/mgedmin/check-manifest
62-
rev: "0.50"
62+
rev: "0.51"
6363
hooks:
6464
- id: check-manifest
6565
- repo: https://github.com/regebro/pyroma
6666
rev: "5.0"
6767
hooks:
6868
- id: pyroma
6969
- repo: https://github.com/mgedmin/check-python-versions
70-
rev: "0.22.1"
70+
rev: "0.23.0"
7171
hooks:
7272
- id: check-python-versions
7373
args: ['--only', 'setup.py,pyproject.toml']

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: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from pathlib import Path
2-
from setuptools import find_packages
32
from setuptools import setup
43

54

@@ -19,7 +18,7 @@
1918
"Development Status :: 5 - Production/Stable",
2019
"Environment :: Web Environment",
2120
"Framework :: Plone",
22-
"Framework :: Plone :: 6.1",
21+
"Framework :: Plone :: 6.2",
2322
"Framework :: Plone :: Core",
2423
"Framework :: Zope :: 5",
2524
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
@@ -48,9 +47,6 @@
4847
"Videos": "https://youtube.com/@plonecms",
4948
"Sponsor": "https://github.com/sponsors/plone",
5049
},
51-
packages=find_packages("src"),
52-
namespace_packages=["Products"],
53-
package_dir={"": "src"},
5450
include_package_data=True,
5551
zip_safe=False,
5652
install_requires=[
@@ -122,7 +118,6 @@
122118
"Products.SiteErrorLog",
123119
"Products.statusmessages",
124120
"Products.ZCatalog",
125-
"setuptools>=36.2",
126121
"webresource>=1.2",
127122
"z3c.caching",
128123
"z3c.form",

src/Products/__init__.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ min_version = 4.4.0
77
envlist =
88
lint
99
test
10+
py313-plone62
1011
py312-plone62
12+
py311-plone62
1113
py310-plone62
1214
dependencies
1315

@@ -190,7 +192,6 @@ deps =
190192
build
191193
towncrier
192194
-c https://dist.plone.org/release/6.2-dev/constraints.txt
193-
194195
commands =
195196
# fake version to not have to install the package
196197
# we build the change log as news entries might break
@@ -221,7 +222,6 @@ deps =
221222
pipdeptree
222223
pipforester
223224
-c https://dist.plone.org/release/6.2-dev/constraints.txt
224-
225225
commands =
226226
# Generate the full dependency tree
227227
sh -c 'pipdeptree -j > forest.json'

0 commit comments

Comments
 (0)