Skip to content

Commit 39128c8

Browse files
Merge pull request #127 from plone/pep-420-native-namespace
PEP 420 native namespace
2 parents 7bf5eac + 5765629 commit 39128c8

File tree

6 files changed

+28
-30
lines changed

6 files changed

+28
-30
lines changed

.github/workflows/test-matrix.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +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"]
26-
- ["3.9", "6.0 on py3.9", "py39-plone60"]
27-
- ["3.13", "6.0 on py3.13", "py313-plone60"]
2824

2925
runs-on: ${{ matrix.os[1] }}
3026
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
@@ -38,6 +34,14 @@ jobs:
3834
with:
3935
python-version: ${{ matrix.config[0] }}
4036
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+
##
4145
- name: Pip cache
4246
uses: actions/cache@v4
4347
with:
@@ -57,3 +61,12 @@ jobs:
5761
if [ `tox list --no-desc -f init|wc -l` = 1 ]; then tox -e init;else true; fi
5862
- name: Test
5963
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
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.1"
7+
8+
[tox]
9+
test_matrix = {"6.2" = ["*"]}
710

811
[pyproject]
912
dependencies_mappings = [

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 = "4.2.2.dev0"
5+
version = "5.0.0.dev0"
76

87
long_description = (
98
f"{Path('README.rst').read_text()}\n{Path('CHANGES.rst').read_text()}"
@@ -31,14 +30,12 @@
3130
"Development Status :: 5 - Production/Stable",
3231
"Environment :: Web Environment",
3332
"Framework :: Plone",
34-
"Framework :: Plone :: 6.0",
33+
"Framework :: Plone :: 6.2",
3534
"Framework :: Plone :: Core",
3635
"Framework :: Zope :: 5",
3736
"License :: OSI Approved :: BSD License",
3837
"Operating System :: OS Independent",
3938
"Programming Language :: Python",
40-
"Programming Language :: Python :: 3.8",
41-
"Programming Language :: Python :: 3.9",
4239
"Programming Language :: Python :: 3.10",
4340
"Programming Language :: Python :: 3.11",
4441
],
@@ -47,16 +44,12 @@
4744
author_email="[email protected]",
4845
url="https://pypi.org/project/plone.scale",
4946
license="BSD",
50-
packages=find_packages("src"),
51-
namespace_packages=["plone"],
52-
package_dir={"": "src"},
5347
include_package_data=True,
5448
zip_safe=False,
55-
python_requires=">=3.8",
49+
python_requires=">=3.10",
5650
install_requires=[
5751
"Pillow",
5852
"lxml",
59-
"setuptools",
6053
"zope.annotation",
6154
"zope.interface",
6255
],

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
@@ -11,25 +11,17 @@ envlist =
1111
py312-plone62
1212
py311-plone62
1313
py310-plone62
14-
py313-plone61
15-
py312-plone61
16-
py311-plone61
17-
py310-plone61
18-
py313-plone60
19-
py312-plone60
20-
py311-plone60
21-
py310-plone60
22-
py39-plone60
2314
dependencies
2415

2516

2617
##
2718
# Add extra configuration options in .meta.toml:
2819
# - 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.
2921
# - to specify extra custom environments, use `envlist_lines`
3022
# - to specify extra `tox` top-level options, use `config_lines`
3123
# [tox]
32-
# 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" = ["*"]}
3325
# envlist_lines = """
3426
# my_other_environment
3527
# """
@@ -119,8 +111,6 @@ set_env =
119111
deps =
120112
{[test_runner]deps}
121113
plone62: -c https://dist.plone.org/release/6.2-dev/constraints.txt
122-
plone61: -c https://dist.plone.org/release/6.1-dev/constraints.txt
123-
plone60: -c https://dist.plone.org/release/6.0-dev/constraints.txt
124114

125115
##
126116
# Specify additional deps in .meta.toml:
@@ -200,7 +190,6 @@ deps =
200190
build
201191
towncrier
202192
-c https://dist.plone.org/release/6.2-dev/constraints.txt
203-
204193
commands =
205194
# fake version to not have to install the package
206195
# we build the change log as news entries might break
@@ -231,7 +220,6 @@ deps =
231220
pipdeptree
232221
pipforester
233222
-c https://dist.plone.org/release/6.2-dev/constraints.txt
234-
235223
commands =
236224
# Generate the full dependency tree
237225
sh -c 'pipdeptree -j > forest.json'

0 commit comments

Comments
 (0)