Skip to content

Commit cd872cd

Browse files
Merge pull request #732 from plone/pep-420-native-namespace
PEP 420 native namespace
2 parents 603e936 + cda556e commit cd872cd

File tree

8 files changed

+34
-25
lines changed

8 files changed

+34
-25
lines changed

.github/workflows/test-matrix.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ jobs:
2020
config:
2121
# [Python version, visual name, tox env]
2222
- ["3.13", "6.2 on py3.13", "py313-plone62"]
23-
- ["3.12", "6.2 on py3.12", "py312-plone62"]
24-
- ["3.13", "6.1 on py3.13", "py313-plone61"]
25-
- ["3.10", "6.1 on py3.10", "py310-plone61"]
23+
- ["3.10", "6.2 on py3.10", "py310-plone62"]
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,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
codespell_ignores = "oder,ist,crate"
1010
dependencies_ignores = "['ZServer', 'plone.app.event', 'Products.CMFPlone',]"
1111

1212
[tox]
13-
test_matrix = {"6.2" = ["3.13", "3.12"], "6.1" = ["3.13", "3.10"]}
13+
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: 2 additions & 6 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 = "4.0.9.dev0"
5+
version = "5.0.0.dev0"
76

87
long_description = f"""
98
{Path("README.rst").read_text()}\n
@@ -20,7 +19,7 @@
2019
"Development Status :: 5 - Production/Stable",
2120
"Environment :: Web Environment",
2221
"Framework :: Plone",
23-
"Framework :: Plone :: 6.1",
22+
"Framework :: Plone :: 6.2",
2423
"Framework :: Plone :: Core",
2524
"Framework :: Zope :: 5",
2625
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
@@ -35,9 +34,6 @@
3534
author_email="[email protected]",
3635
url="https://github.com/plone/plone.app.contenttypes",
3736
license="GPL",
38-
packages=find_packages("src"),
39-
package_dir={"": "src"},
40-
namespace_packages=["plone", "plone.app"],
4137
include_package_data=True,
4238
zip_safe=False,
4339
python_requires=">=3.10",

src/plone/__init__.py

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

src/plone/app/__init__.py

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

tox.ini

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,19 @@ envlist =
99
test
1010
py313-plone62
1111
py312-plone62
12-
py313-plone61
13-
py310-plone61
12+
py311-plone62
13+
py310-plone62
1414
dependencies
1515

1616

1717
##
1818
# Add extra configuration options in .meta.toml:
1919
# - 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.
2021
# - to specify extra custom environments, use `envlist_lines`
2122
# - to specify extra `tox` top-level options, use `config_lines`
2223
# [tox]
23-
# 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" = ["*"]}
2425
# envlist_lines = """
2526
# my_other_environment
2627
# """
@@ -112,7 +113,6 @@ set_env =
112113
deps =
113114
{[test_runner]deps}
114115
plone62: -c https://dist.plone.org/release/6.2-dev/constraints.txt
115-
plone61: -c https://dist.plone.org/release/6.1-dev/constraints.txt
116116

117117
##
118118
# Specify additional deps in .meta.toml:
@@ -192,7 +192,6 @@ deps =
192192
build
193193
towncrier
194194
-c https://dist.plone.org/release/6.2-dev/constraints.txt
195-
196195
commands =
197196
# fake version to not have to install the package
198197
# we build the change log as news entries might break
@@ -223,7 +222,6 @@ deps =
223222
pipdeptree
224223
pipforester
225224
-c https://dist.plone.org/release/6.2-dev/constraints.txt
226-
227225
commands =
228226
# Generate the full dependency tree
229227
sh -c 'pipdeptree -j > forest.json'

0 commit comments

Comments
 (0)