Skip to content

Commit 7af5e5b

Browse files
committed
Switch to PEP 420 native namespace
1 parent bc4e760 commit 7af5e5b

File tree

7 files changed

+30
-24
lines changed

7 files changed

+30
-24
lines changed

.github/workflows/test-matrix.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ jobs:
2121
# [Python version, visual name, tox env]
2222
- ["3.13", "6.2 on py3.13", "py313-plone62"]
2323
- ["3.10", "6.2 on py3.10", "py310-plone62"]
24-
- ["3.13", "6.1 on py3.13", "py313-plone61"]
25-
- ["3.10", "6.1 on py3.10", "py310-plone61"]
2624

2725
runs-on: ${{ matrix.os[1] }}
2826
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
@@ -36,6 +34,14 @@ jobs:
3634
with:
3735
python-version: ${{ matrix.config[0] }}
3836
allow-prereleases: true
37+
38+
##
39+
# Add extra configuration options in .meta.toml:
40+
# [github]
41+
# extra_lines_after_os_dependencies = """
42+
# _your own configuration lines_
43+
# """
44+
##
3945
- name: Pip cache
4046
uses: actions/cache@v4
4147
with:
@@ -55,3 +61,12 @@ jobs:
5561
if [ `tox list --no-desc -f init|wc -l` = 1 ]; then tox -e init;else true; fi
5662
- name: Test
5763
run: tox -e ${{ matrix.config[2] }}
64+
65+
66+
##
67+
# Add extra configuration options in .meta.toml:
68+
# [github]
69+
# extra_lines = """
70+
# _your own configuration lines_
71+
# """
72+
##

.meta.toml

Lines changed: 2 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
[gitignore]
99
extra_lines = """
@@ -24,4 +24,4 @@ test_runner = "pytest"
2424
test_path = "/tests"
2525
use_mxdev = true
2626
test_deps_additional = ""
27-
test_matrix = { "6.2" = ["3.13", "3.12", "3.11", "3.10"], "6.1" = ["3.13", "3.12", "3.11", "3.10"] }
27+
test_matrix = {"6.2" = ["*"]}

.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
@@ -58,15 +58,15 @@ repos:
5858
# """
5959
##
6060
- repo: https://github.com/mgedmin/check-manifest
61-
rev: "0.50"
61+
rev: "0.51"
6262
hooks:
6363
- id: check-manifest
6464
- repo: https://github.com/regebro/pyroma
6565
rev: "5.0"
6666
hooks:
6767
- id: pyroma
6868
- repo: https://github.com/mgedmin/check-python-versions
69-
rev: "0.22.1"
69+
rev: "0.23.0"
7070
hooks:
7171
- id: check-python-versions
7272
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,4 +1,3 @@
1-
from setuptools import find_packages
21
from setuptools import setup
32

43

@@ -21,7 +20,7 @@
2120
"Development Status :: 5 - Production/Stable",
2221
"Environment :: Web Environment",
2322
"Framework :: Plone",
24-
"Framework :: Plone :: 6.1",
23+
"Framework :: Plone :: 6.2",
2524
"Programming Language :: Python",
2625
"Programming Language :: Python :: 3.10",
2726
"Programming Language :: Python :: 3.11",
@@ -34,9 +33,6 @@
3433
author_email="[email protected]",
3534
url="https://github.com/plone/plone.volto",
3635
license="GPL version 2",
37-
packages=find_packages("src"),
38-
namespace_packages=["plone"],
39-
package_dir={"": "src"},
4036
include_package_data=True,
4137
zip_safe=False,
4238
python_requires=">=3.10",
@@ -48,7 +44,6 @@
4844
"plone.distribution",
4945
"plone.restapi>=8.41.0",
5046
"Products.CMFPlone",
51-
"setuptools",
5247
],
5348
extras_require={
5449
"test": [

src/plone/__init__.py

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

tox.ini

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,17 @@ envlist =
1111
py312-plone62
1212
py311-plone62
1313
py310-plone62
14-
py313-plone61
15-
py312-plone61
16-
py311-plone61
17-
py310-plone61
1814
dependencies
1915

2016

2117
##
2218
# Add extra configuration options in .meta.toml:
2319
# - to specify a custom testing combination of Plone and python versions, use `test_matrix`
20+
# Use ["*"] to use all supported Python versions for this Plone version.
2421
# - to specify extra custom environments, use `envlist_lines`
2522
# - to specify extra `tox` top-level options, use `config_lines`
2623
# [tox]
27-
# test_matrix = {"6.2" = ["3.13", "3.12"], "6.1" = ["3.10", "3.9"]}
24+
# test_matrix = {"6.2" = ["3.13", "3.12"], "6.1" = ["*"]}
2825
# envlist_lines = """
2926
# my_other_environment
3027
# """
@@ -200,7 +197,6 @@ deps =
200197
build
201198
towncrier
202199
-c constraints-mxdev.txt
203-
204200
commands =
205201
# fake version to not have to install the package
206202
# we build the change log as news entries might break
@@ -231,7 +227,6 @@ deps =
231227
pipdeptree
232228
pipforester
233229
-c constraints-mxdev.txt
234-
235230
commands =
236231
# Generate the full dependency tree
237232
sh -c 'pipdeptree -j > forest.json'

0 commit comments

Comments
 (0)