Skip to content

Commit 211fc82

Browse files
authored
Merge branch 'master' into gforcada-patch-1
2 parents d50d34f + b73db9d commit 211fc82

File tree

584 files changed

+420
-146
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

584 files changed

+420
-146
lines changed

.flake8

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ ignore =
1313
# black takes care of spaces after commas
1414
E231,
1515
per-file-ignores =
16-
Products/CMFPlone/patches/__init__.py: F401,E402
17-
Products/CMFPlone/skins/plone_scripts/*.py: E265,E266,F401,F821,F706
18-
Products/CMFPlone/earlypatches/security.py: E402
19-
Products/CMFPlone/UnicodeSplitter/__init__.py: F401,F403
20-
Products/CMFPlone/utils.py: F821
21-
Products/CMFPlone/patches/speed.py: E402
16+
src/Products/CMFPlone/patches/__init__.py: F401,E402
17+
src/Products/CMFPlone/skins/plone_scripts/*.py: E265,E266,F401,F821,F706
18+
src/Products/CMFPlone/earlypatches/security.py: E402
19+
src/Products/CMFPlone/UnicodeSplitter/__init__.py: F401,F403
20+
src/Products/CMFPlone/utils.py: F821
21+
src/Products/CMFPlone/patches/speed.py: E402
2222

2323
##
2424
# Add extra configuration options in .meta.toml:

.github/ISSUE_TEMPLATE/PLIP.md

Lines changed: 3 additions & 2 deletions

.github/workflows/test-matrix.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Generated from:
2+
# https://github.com/plone/meta/tree/main/src/plone/meta/default
3+
# See the inline comments on how to expand/tweak this configuration file
4+
name: Tests
5+
6+
on:
7+
push:
8+
9+
jobs:
10+
build:
11+
permissions:
12+
contents: read
13+
pull-requests: write
14+
strategy:
15+
# We want to see all failures:
16+
fail-fast: false
17+
matrix:
18+
os:
19+
- ["ubuntu", "ubuntu-latest"]
20+
config:
21+
# [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"]
24+
25+
runs-on: ${{ matrix.os[1] }}
26+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
27+
name: ${{ matrix.config[1] }}
28+
steps:
29+
- uses: actions/checkout@v6
30+
with:
31+
persist-credentials: false
32+
- name: Set up Python
33+
uses: actions/setup-python@v6
34+
with:
35+
python-version: ${{ matrix.config[0] }}
36+
allow-prereleases: true
37+
- name: locale
38+
# needed for CMFPlone testUnicodeSplitter test
39+
run: |
40+
sudo locale-gen nl_NL@euro
41+
sudo update-locale
42+
43+
##
44+
# Add extra configuration options in .meta.toml:
45+
# [github]
46+
# extra_lines_after_os_dependencies = """
47+
# _your own configuration lines_
48+
# """
49+
##
50+
- name: Pip cache
51+
uses: actions/cache@v4
52+
with:
53+
path: ~/.cache/pip
54+
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }}
55+
restore-keys: |
56+
${{ runner.os }}-pip-${{ matrix.config[0] }}-
57+
${{ runner.os }}-pip-
58+
- name: Install dependencies
59+
run: |
60+
python -m pip install --upgrade pip
61+
pip install tox
62+
- name: Initialize tox
63+
# the bash one-liner below does not work on Windows
64+
if: contains(matrix.os, 'ubuntu')
65+
run: |
66+
if [ `tox list --no-desc -f init|wc -l` = 1 ]; then tox -e init;else true; fi
67+
- name: Test
68+
run: tox -e ${{ matrix.config[2] }}
69+
70+
71+
##
72+
# Add extra configuration options in .meta.toml:
73+
# [github]
74+
# extra_lines = """
75+
# _your own configuration lines_
76+
# """
77+
##

.meta.toml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
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 = """
1010
per-file-ignores =
11-
Products/CMFPlone/patches/__init__.py: F401,E402
12-
Products/CMFPlone/skins/plone_scripts/*.py: E265,E266,F401,F821,F706
13-
Products/CMFPlone/earlypatches/security.py: E402
14-
Products/CMFPlone/UnicodeSplitter/__init__.py: F401,F403
15-
Products/CMFPlone/utils.py: F821
16-
Products/CMFPlone/patches/speed.py: E402
11+
src/Products/CMFPlone/patches/__init__.py: F401,E402
12+
src/Products/CMFPlone/skins/plone_scripts/*.py: E265,E266,F401,F821,F706
13+
src/Products/CMFPlone/earlypatches/security.py: E402
14+
src/Products/CMFPlone/UnicodeSplitter/__init__.py: F401,F403
15+
src/Products/CMFPlone/utils.py: F821
16+
src/Products/CMFPlone/patches/speed.py: E402
1717
"""
1818

1919
[pre_commit]
@@ -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 = [
@@ -42,3 +42,11 @@ jobs = [
4242
"release_ready",
4343
"circular",
4444
]
45+
extra_lines_after_os_dependencies = """
46+
- name: locale
47+
# needed for CMFPlone testUnicodeSplitter test
48+
run: |
49+
sudo locale-gen nl_NL@euro
50+
sudo update-locale
51+
"""
52+

.pre-commit-config.yaml

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

88
repos:
99
- repo: https://github.com/asottile/pyupgrade
10-
rev: v3.19.1
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.0
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
23-
rev: 3.1.0
23+
rev: 3.1.1
2424
hooks:
2525
- id: zpretty
2626
exclude: .pt
@@ -33,7 +33,7 @@ repos:
3333
# """
3434
##
3535
- repo: https://github.com/PyCQA/flake8
36-
rev: 7.1.1
36+
rev: 7.3.0
3737
hooks:
3838
- id: flake8
3939

@@ -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
66-
rev: "4.2"
66+
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']

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
recursive-include Products *
1+
recursive-include src *
22
recursive-include docs *
33
include *
44
global-exclude *.pyc

Products/CMFPlone/browser/main_template.py

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

Products/__init__.py

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

0 commit comments

Comments
 (0)