Commit c912ebdb authored by Jens Vagelpohl's avatar Jens Vagelpohl

- update to the latest meta/config template

parent 8160568b
...@@ -21,6 +21,7 @@ jobs: ...@@ -21,6 +21,7 @@ jobs:
- ["windows", "windows-latest"] - ["windows", "windows-latest"]
config: config:
# [Python version, tox env] # [Python version, tox env]
- ["3.9", "release-check"]
- ["3.9", "lint"] - ["3.9", "lint"]
- ["3.7", "py37"] - ["3.7", "py37"]
- ["3.8", "py38"] - ["3.8", "py38"]
...@@ -28,11 +29,12 @@ jobs: ...@@ -28,11 +29,12 @@ jobs:
- ["3.10", "py310"] - ["3.10", "py310"]
- ["3.11", "py311"] - ["3.11", "py311"]
- ["3.12", "py312"] - ["3.12", "py312"]
- ["pypy-3.9", "pypy3"] - ["pypy-3.10", "pypy3"]
- ["3.9", "docs"] - ["3.9", "docs"]
- ["3.9", "coverage"] - ["3.9", "coverage"]
- ["3.10", "py310-pure"] - ["3.10", "py310-pure"]
exclude: exclude:
- { os: ["windows", "windows-latest"], config: ["3.9", "release-check"] }
- { os: ["windows", "windows-latest"], config: ["3.9", "lint"] } - { os: ["windows", "windows-latest"], config: ["3.9", "lint"] }
- { os: ["windows", "windows-latest"], config: ["3.9", "docs"] } - { os: ["windows", "windows-latest"], config: ["3.9", "docs"] }
- { os: ["windows", "windows-latest"], config: ["3.9", "coverage"] } - { os: ["windows", "windows-latest"], config: ["3.9", "coverage"] }
...@@ -41,13 +43,13 @@ jobs: ...@@ -41,13 +43,13 @@ jobs:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
name: ${{ matrix.os[0] }}-${{ matrix.config[1] }} name: ${{ matrix.os[0] }}-${{ matrix.config[1] }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.config[0] }} python-version: ${{ matrix.config[0] }}
- name: Pip cache - name: Pip cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: ~/.cache/pip path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }} key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }}
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
# https://github.com/zopefoundation/meta/tree/master/config/pure-python # https://github.com/zopefoundation/meta/tree/master/config/pure-python
[meta] [meta]
template = "pure-python" template = "pure-python"
commit-id = "babc889c" commit-id = "1404d28b"
[python] [python]
with-windows = true with-windows = true
with-pypy = true with-pypy = true
with-future-python = true with-future-python = false
with-docs = true with-docs = true
with-sphinx-doctests = false with-sphinx-doctests = false
with-macos = false with-macos = false
......
# Generated from: # Generated from:
# https://github.com/zopefoundation/meta/tree/master/config/pure-python # https://github.com/zopefoundation/meta/tree/master/config/pure-python
[bdist_wheel]
universal = 0
[flake8] [flake8]
doctests = 1 doctests = 1
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
[tox] [tox]
minversion = 3.18 minversion = 3.18
envlist = envlist =
release-check
lint lint
py37 py37
py38 py38
...@@ -33,21 +34,32 @@ extras = ...@@ -33,21 +34,32 @@ extras =
basepython = python3.10 basepython = python3.10
setenv = setenv =
PURE_PYTHON = 1 PURE_PYTHON = 1
[testenv:release-check]
description = ensure that the distribution is ready to release
basepython = python3
skip_install = true
deps =
twine
build
check-manifest
check-python-versions >= 0.20.0
wheel
commands_pre =
commands =
check-manifest
check-python-versions --only setup.py,tox.ini,.github/workflows/tests.yml
python -m build --sdist --no-isolation
twine check dist/*
[testenv:lint] [testenv:lint]
basepython = python3 basepython = python3
skip_install = true skip_install = true
deps =
isort
flake8
commands = commands =
isort --check-only --diff {toxinidir}/src {toxinidir}/setup.py isort --check-only --diff {toxinidir}/src {toxinidir}/setup.py
flake8 src setup.py flake8 src setup.py
check-manifest
check-python-versions
deps =
check-manifest
check-python-versions >= 0.19.1
wheel
flake8
isort
[testenv:isort-apply] [testenv:isort-apply]
basepython = python3 basepython = python3
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment