From e586841e68c5ca3023a8d8b9ff9e74723cea562e Mon Sep 17 00:00:00 2001 From: Gil Forcada Codinachs Date: Sat, 27 Jun 2026 09:52:46 +0200 Subject: [PATCH] Configuring with plone.meta --- .editorconfig | 2 +- .flake8 | 2 +- .github/dependabot.yml | 2 +- .github/workflows/meta.yml | 10 ++-------- .github/workflows/test-matrix.yml | 29 +++++++++++------------------ .gitignore | 2 +- .meta.toml | 4 ++-- .pre-commit-config.yaml | 14 +++++++------- news/+meta.internal | 1 + pyproject.toml | 20 +++++++++++--------- tox.ini | 7 +++---- 11 files changed, 41 insertions(+), 52 deletions(-) create mode 100644 news/+meta.internal diff --git a/.editorconfig b/.editorconfig index d054af158b..55bfb6d032 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,5 +1,5 @@ # Generated from: -# https://github.com/plone/meta/tree/main/src/plone/meta/default +# https://github.com/plone/meta/tree/2.x/src/plone/meta/default # See the inline comments on how to expand/tweak this configuration file # # EditorConfig Configuration file, for more details see: diff --git a/.flake8 b/.flake8 index 5b4bcb6af4..e82de91a88 100644 --- a/.flake8 +++ b/.flake8 @@ -1,5 +1,5 @@ # Generated from: -# https://github.com/plone/meta/tree/main/src/plone/meta/default +# https://github.com/plone/meta/tree/2.x/src/plone/meta/default # See the inline comments on how to expand/tweak this configuration file [flake8] doctests = 1 diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e5e4522dfb..8da3888c65 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,5 +1,5 @@ # Generated from: -# https://github.com/plone/meta/tree/main/src/plone/meta/default +# https://github.com/plone/meta/tree/2.x/src/plone/meta/default # See the inline comments on how to expand/tweak this configuration file version: 2 updates: diff --git a/.github/workflows/meta.yml b/.github/workflows/meta.yml index 139f4b4845..334e29c03e 100644 --- a/.github/workflows/meta.yml +++ b/.github/workflows/meta.yml @@ -1,16 +1,10 @@ # Generated from: -# https://github.com/plone/meta/tree/main/src/plone/meta/default +# https://github.com/plone/meta/tree/2.x/src/plone/meta/default # See the inline comments on how to expand/tweak this configuration file name: Meta + on: push: - branches: - - master - - main - pull_request: - branches: - - master - - main workflow_dispatch: ## diff --git a/.github/workflows/test-matrix.yml b/.github/workflows/test-matrix.yml index f53271393a..016fc21da0 100644 --- a/.github/workflows/test-matrix.yml +++ b/.github/workflows/test-matrix.yml @@ -1,10 +1,11 @@ # Generated from: -# https://github.com/plone/meta/tree/main/src/plone/meta/default +# https://github.com/plone/meta/tree/2.x/src/plone/meta/default # See the inline comments on how to expand/tweak this configuration file name: Tests on: push: + workflow_dispatch: jobs: build: @@ -29,11 +30,15 @@ jobs: - uses: actions/checkout@v7 with: persist-credentials: false - - name: Set up Python - uses: actions/setup-python@v6 + - name: Install uv + caching + uses: astral-sh/setup-uv@v8.1.0 with: + enable-cache: true + cache-dependency-glob: | + setup.* + tox.ini + pyproject.toml python-version: ${{ matrix.config[0] }} - allow-prereleases: true - name: locale # needed for CMFPlone testUnicodeSplitter test run: | @@ -47,25 +52,13 @@ jobs: # _your own configuration lines_ # """ ## - - name: Pip cache - uses: actions/cache@v6 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }} - restore-keys: | - ${{ runner.os }}-pip-${{ matrix.config[0] }}- - ${{ runner.os }}-pip- - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install tox - name: Initialize tox # the bash one-liner below does not work on Windows if: contains(matrix.os, 'ubuntu') run: | - if [ `tox list --no-desc -f init|wc -l` = 1 ]; then tox -e init;else true; fi + if [ `uvx tox list --no-desc -f init|wc -l` = 1 ]; then uvx --with tox-uv tox -e init;else true; fi - name: Test - run: tox -e ${{ matrix.config[2] }} + run: uvx --with tox-uv tox -e ${{ matrix.config[2] }} ## diff --git a/.gitignore b/.gitignore index a602abead8..70377bd611 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ # Generated from: -# https://github.com/plone/meta/tree/main/src/plone/meta/default +# https://github.com/plone/meta/tree/2.x/src/plone/meta/default # See the inline comments on how to expand/tweak this configuration file # python related *.egg-info diff --git a/.meta.toml b/.meta.toml index 189fa3ca86..e7075c583a 100644 --- a/.meta.toml +++ b/.meta.toml @@ -1,9 +1,9 @@ # Generated from: -# https://github.com/plone/meta/tree/main/src/plone/meta/default +# https://github.com/plone/meta/tree/2.x/src/plone/meta/default # See the inline comments on how to expand/tweak this configuration file [meta] template = "default" -commit-id = "2.3.3.dev0" +commit-id = "2.9.0" [flake8] extra_lines = """ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3557af5c4d..736ccf12f0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,5 @@ # Generated from: -# https://github.com/plone/meta/tree/main/src/plone/meta/default +# https://github.com/plone/meta/tree/2.x/src/plone/meta/default # See the inline comments on how to expand/tweak this configuration file ci: autofix_prs: false @@ -10,17 +10,17 @@ repos: rev: v3.21.2 hooks: - id: pyupgrade - args: [--py38-plus] + args: [--py310-plus] - repo: https://github.com/pycqa/isort - rev: 8.0.1 + rev: 9.0.0a3 hooks: - id: isort - repo: https://github.com/psf/black-pre-commit-mirror - rev: 26.3.0 + rev: 26.3.1 hooks: - id: black - repo: https://github.com/collective/zpretty - rev: 3.1.1 + rev: 4.0.0 hooks: - id: zpretty exclude: .pt @@ -67,10 +67,10 @@ repos: hooks: - id: pyroma - repo: https://github.com/mgedmin/check-python-versions - rev: "0.24.0" + rev: "0.24.2" hooks: - id: check-python-versions - args: ['--only', 'setup.py,pyproject.toml'] + args: ['--only', 'setup.py,tox.ini'] - repo: https://github.com/collective/i18ndude rev: "6.3.0" hooks: diff --git a/news/+meta.internal b/news/+meta.internal new file mode 100644 index 0000000000..1336cd396f --- /dev/null +++ b/news/+meta.internal @@ -0,0 +1 @@ +Update configuration files @plone diff --git a/pyproject.toml b/pyproject.toml index 9cbc7469c2..65198b97c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,10 @@ # Generated from: -# https://github.com/plone/meta/tree/main/src/plone/meta/default +# https://github.com/plone/meta/tree/2.x/src/plone/meta/default # See the inline comments on how to expand/tweak this configuration file [build-system] -requires = ["setuptools>=68.2,<80", "wheel"] +requires = ["setuptools>=68.2,<83", "wheel"] + + [tool.towncrier] directory = "news/" @@ -14,32 +16,32 @@ underlines = ["", "", ""] [[tool.towncrier.type]] directory = "breaking" -name = "Breaking changes:" +name = "Breaking changes" showcontent = true [[tool.towncrier.type]] directory = "feature" -name = "New features:" +name = "New features" showcontent = true [[tool.towncrier.type]] directory = "bugfix" -name = "Bug fixes:" +name = "Bug fixes" showcontent = true [[tool.towncrier.type]] directory = "internal" -name = "Internal:" +name = "Internal" showcontent = true [[tool.towncrier.type]] directory = "documentation" -name = "Documentation:" +name = "Documentation" showcontent = true [[tool.towncrier.type]] directory = "tests" -name = "Tests:" +name = "Tests" showcontent = true ## @@ -62,7 +64,7 @@ profile = "plone" ## [tool.black] -target-version = ["py38"] +target-version = ["py310"] ## # Add extra configuration options in .meta.toml: diff --git a/tox.ini b/tox.ini index b22f7c3386..2e7a70dda0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ # Generated from: -# https://github.com/plone/meta/tree/main/src/plone/meta/default +# https://github.com/plone/meta/tree/2.x/src/plone/meta/default # See the inline comments on how to expand/tweak this configuration file [tox] # We need 4.4.0 for constrain_package_deps. @@ -64,10 +64,9 @@ description = check if the package defines all its dependencies skip_install = true deps = build - setuptools<82.0.0 - z3c.dependencychecker==2.14.3 + z3c.dependencychecker==3.0 commands = - python -m build --sdist + python -m build --wheel dependencychecker [testenv:dependencies-graph]