diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c458fa5..7b6d25b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -63,3 +63,32 @@ jobs: uvx coveralls --service=github env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Build package artifacts + if: > + matrix.os[0] == 'ubuntu' + && matrix.config[1] == 'py314' + run: | + rm -f dist/* + pip install -U packaging "setuptools >= 78.1.1,< 82" wheel twine + python setup.py sdist + python setup.py bdist_wheel + + - name: Upload package wheel + if: > + matrix.os[0] == 'ubuntu' + && matrix.config[1] == 'py314' + uses: actions/upload-artifact@v7 + with: + name: RestrictedPython.whl + path: dist/*whl + + - name: Upload package source distribution + if: > + matrix.os[0] == 'ubuntu' + && matrix.config[1] == 'py314' + uses: actions/upload-artifact@v7 + with: + name: RestrictedPython.tar.gz + path: dist/*gz + diff --git a/.meta.toml b/.meta.toml index 32f5cc5..ff69dca 100644 --- a/.meta.toml +++ b/.meta.toml @@ -2,7 +2,7 @@ # https://github.com/zopefoundation/meta/tree/master/src/zope/meta/pure-python [meta] template = "pure-python" -commit-id = "ba10c93f" +commit-id = "fee4a500" [python] with-pypy = false diff --git a/pyproject.toml b/pyproject.toml index c66658e..53f22fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,12 +2,11 @@ # https://github.com/zopefoundation/meta/tree/master/src/zope/meta/pure-python [build-system] requires = [ - "setuptools >= 78.1.1,< 81", + "setuptools >= 78.1.1,< 82", "wheel", ] build-backend = "setuptools.build_meta" - [project] name = "RestrictedPython" version = "8.2.dev0" diff --git a/setup.cfg b/setup.cfg index 3b11c8e..f3bdfd7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,5 @@ # Generated with zope.meta (https://zopemeta.readthedocs.io/) from: # https://github.com/zopefoundation/meta/tree/master/src/zope/meta/pure-python - [flake8] doctests = 1 diff --git a/tox.ini b/tox.ini index 3439cf4..7144431 100644 --- a/tox.ini +++ b/tox.ini @@ -20,7 +20,7 @@ usedevelop = true package = wheel wheel_build_env = .pkg deps = - setuptools >= 78.1.1,< 81 + setuptools >= 78.1.1,< 82 datetime: DateTime -cconstraints.txt pytest-cov @@ -64,7 +64,7 @@ description = ensure that the distribution is ready to release basepython = python3 skip_install = true deps = - setuptools >= 78.1.1,< 81 + setuptools >= 78.1.1,< 82 wheel twine build