Skip to content

Commit 7f1cb29

Browse files
committed
Configuring with plone.meta
1 parent 7611956 commit 7f1cb29

5 files changed

Lines changed: 36 additions & 27 deletions

File tree

.github/workflows/test-matrix.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919
- ["ubuntu", "ubuntu-latest"]
2020
config:
2121
# [Python version, visual name, tox env]
22-
- ["3.13", "6.2 on py3.13", "py313-plone62"]
23-
- ["3.10", "6.2 on py3.10", "py310-plone62"]
2422
- ["3.13", "6.1 on py3.13", "py313-plone61"]
2523
- ["3.10", "6.1 on py3.10", "py310-plone61"]
2624
- ["3.9", "6.0 on py3.9", "py39-plone60"]
@@ -30,16 +28,24 @@ jobs:
3028
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
3129
name: ${{ matrix.config[1] }}
3230
steps:
33-
- uses: actions/checkout@v5
31+
- uses: actions/checkout@v6
3432
with:
3533
persist-credentials: false
3634
- name: Set up Python
3735
uses: actions/setup-python@v6
3836
with:
3937
python-version: ${{ matrix.config[0] }}
4038
allow-prereleases: true
39+
40+
##
41+
# Add extra configuration options in .meta.toml:
42+
# [github]
43+
# extra_lines_after_os_dependencies = """
44+
# _your own configuration lines_
45+
# """
46+
##
4147
- name: Pip cache
42-
uses: actions/cache@v4
48+
uses: actions/cache@v5
4349
with:
4450
path: ~/.cache/pip
4551
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }}
@@ -57,3 +63,12 @@ jobs:
5763
if [ `tox list --no-desc -f init|wc -l` = 1 ]; then tox -e init;else true; fi
5864
- name: Test
5965
run: tox -e ${{ matrix.config[2] }}
66+
67+
68+
##
69+
# Add extra configuration options in .meta.toml:
70+
# [github]
71+
# extra_lines = """
72+
# _your own configuration lines_
73+
# """
74+
##

.meta.toml

Lines changed: 1 addition & 1 deletion
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.3.3.dev0"
77

88
[pyproject]
99
dependencies_mappings = ["'Products.ZCatalog' = ['Products.ZCTextIndex']"]

.pre-commit-config.yaml

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

88
repos:
99
- repo: https://github.com/asottile/pyupgrade
10-
rev: v3.21.0
10+
rev: v3.21.2
1111
hooks:
1212
- id: pyupgrade
1313
args: [--py38-plus]
@@ -16,7 +16,7 @@ repos:
1616
hooks:
1717
- id: isort
1818
- repo: https://github.com/psf/black-pre-commit-mirror
19-
rev: 25.9.0
19+
rev: 25.12.0
2020
hooks:
2121
- id: black
2222
- repo: https://github.com/collective/zpretty
@@ -62,16 +62,16 @@ repos:
6262
hooks:
6363
- id: check-manifest
6464
- repo: https://github.com/regebro/pyroma
65-
rev: "5.0"
65+
rev: "5.0.1"
6666
hooks:
6767
- id: pyroma
6868
- repo: https://github.com/mgedmin/check-python-versions
69-
rev: "0.23.0"
69+
rev: "0.24.0"
7070
hooks:
7171
- id: check-python-versions
7272
args: ['--only', 'setup.py,pyproject.toml']
7373
- repo: https://github.com/collective/i18ndude
74-
rev: "6.2.1"
74+
rev: "6.3.0"
7575
hooks:
7676
- id: i18ndude
7777

news/+meta.internal

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Update configuration files.
2+
[plone devs]

tox.ini

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,22 @@ min_version = 4.4.0
77
envlist =
88
lint
99
test
10-
py313-plone62
11-
py312-plone62
12-
py311-plone62
13-
py310-plone62
1410
py313-plone61
15-
py312-plone61
16-
py311-plone61
1711
py310-plone61
1812
py313-plone60
19-
py312-plone60
20-
py311-plone60
21-
py310-plone60
2213
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.
21+
# - to disable the test matrix entirely, set `use_test_matrix = false`
2922
# - to specify extra custom environments, use `envlist_lines`
3023
# - to specify extra `tox` top-level options, use `config_lines`
3124
# [tox]
32-
# 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" = ["*"]}
3326
# envlist_lines = """
3427
# my_other_environment
3528
# """
@@ -70,6 +63,7 @@ description = check if the package defines all its dependencies
7063
skip_install = true
7164
deps =
7265
build
66+
setuptools<82.0.0
7367
z3c.dependencychecker==2.14.3
7468
commands =
7569
python -m build --sdist
@@ -118,7 +112,6 @@ set_env =
118112
##
119113
deps =
120114
{[test_runner]deps}
121-
plone62: -c https://dist.plone.org/release/6.2-dev/constraints.txt
122115
plone61: -c https://dist.plone.org/release/6.1-dev/constraints.txt
123116
plone60: -c https://dist.plone.org/release/6.0-dev/constraints.txt
124117

@@ -140,6 +133,7 @@ extras =
140133
##
141134
# Add extra configuration options in .meta.toml:
142135
# [tox]
136+
# skip_test_extra = true
143137
# test_extras = """
144138
# tests
145139
# widgets
@@ -160,7 +154,7 @@ constrain_package_deps = {[base]constrain_package_deps}
160154
set_env = {[base]set_env}
161155
deps =
162156
{[test_runner]deps}
163-
-c https://dist.plone.org/release/6.2-dev/constraints.txt
157+
-c https://dist.plone.org/release/6.1-dev/constraints.txt
164158

165159
commands = {[test_runner]test}
166160
extras = {[base]extras}
@@ -186,7 +180,7 @@ set_env = {[base]set_env}
186180
deps =
187181
{[test_runner]deps}
188182
coverage
189-
-c https://dist.plone.org/release/6.2-dev/constraints.txt
183+
-c https://dist.plone.org/release/6.1-dev/constraints.txt
190184

191185
commands = {[test_runner]coverage}
192186
extras = {[base]extras}
@@ -199,8 +193,7 @@ deps =
199193
twine
200194
build
201195
towncrier
202-
-c https://dist.plone.org/release/6.2-dev/constraints.txt
203-
196+
-c https://dist.plone.org/release/6.1-dev/constraints.txt
204197
commands =
205198
# fake version to not have to install the package
206199
# we build the change log as news entries might break
@@ -230,8 +223,7 @@ allowlist_externals =
230223
deps =
231224
pipdeptree
232225
pipforester
233-
-c https://dist.plone.org/release/6.2-dev/constraints.txt
234-
226+
-c https://dist.plone.org/release/6.1-dev/constraints.txt
235227
commands =
236228
# Generate the full dependency tree
237229
sh -c 'pipdeptree -j > forest.json'

0 commit comments

Comments
 (0)