Skip to content

Commit

Permalink
Test package build with Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
flozz committed Nov 15, 2024
1 parent e3b83f0 commit 0f721f6
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"

- name: "Install Python dependencies"
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

name: "Build and test Pyguetzli"
runs-on: ubuntu-latest
Expand Down
46 changes: 24 additions & 22 deletions .github/workflows/python-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
tags:
- "v[0-9]+\\.[0-9]+\\.[0-9]+"
- "v[0-9]+\\.[0-9]+\\.[0-9]+-[0-9]+"
branches:
- test-py313

jobs:

Expand All @@ -23,7 +25,7 @@ jobs:
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"

- name: "Install python dependencies"
run: |
Expand All @@ -49,9 +51,9 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu-22.04
- windows-2019
- macos-11
- ubuntu-24.04
- windows-2022
- macos-13

steps:

Expand All @@ -74,26 +76,26 @@ jobs:
path: ./wheelhouse/*.whl
retention-days: 1

publish_pypi:
# publish_pypi:

name: "Publish packages on PyPI"
runs-on: ubuntu-latest
needs:
- build_sdist
- build_wheels
# name: "Publish packages on PyPI"
# runs-on: ubuntu-latest
# needs:
# - build_sdist
# - build_wheels

steps:
# steps:

- name: "Download artifacts"
uses: actions/download-artifact@v4
# - name: "Download artifacts"
# uses: actions/download-artifact@v4

- name: "Move packages to the dist/ folder"
run: |
mkdir dist/
mv sdist/* dist/
mv wheels-*/*.whl dist/
# - name: "Move packages to the dist/ folder"
# run: |
# mkdir dist/
# mv sdist/* dist/
# mv wheels-*/*.whl dist/

- name: "Publish packages on PyPI"
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
# - name: "Publish packages on PyPI"
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def lint(session):
session.run("flake8", "pyguetzli", "test", "noxfile.py")


@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"], reuse_venv=True)
@nox.session(python=["3.9", "3.10", "3.11", "3.12", "3.13"], reuse_venv=True)
def test(session):
session.install("pytest")
session.install(".[PIL]")
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools<74"]
build-backend = "setuptools.build_meta"

0 comments on commit 0f721f6

Please sign in to comment.