From f3a70467193df8cccb54539b19ccf6dcce611f49 Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Mon, 14 Nov 2022 20:35:34 +0100 Subject: [PATCH] Add support for Python 3.11 --- .github/workflows/publish.yml | 2 +- .github/workflows/tests.yml | 12 ++++++++++-- README.rst | 2 +- docs/changelog.rst | 1 + setup.py | 1 + tox.ini | 2 +- 6 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 835cb85..490a495 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 with: - python-version: 3.10 + python-version: 3.7 - run: pip install build setuptools wheel - run: python -m build --sdist --wheel --no-isolation - uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index baa04d6..4420802 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,9 +7,17 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ ubuntu-20.04, macOS-10.15, windows-2019 ] - python: [ '3.7', '3.8', '3.9', '3.10' ] + os: [ ubuntu-20.04 ] + python: [ '3.7', '3.8', '3.9', '3.10', '3.11' ] variant: [ "py", "py-images" ] + include: + - os: macOS-10.15 + python: "3.10" + variant: py-images + - os: windows-2019 + python: "3.10" + variant: py-images + - os: windows-2019 name: python${{ matrix.python }} on ${{ matrix.os }} ${{ matrix.variant }} steps: - uses: actions/checkout@v2 diff --git a/README.rst b/README.rst index d2102ed..cbc846d 100644 --- a/README.rst +++ b/README.rst @@ -30,7 +30,7 @@ python-barcode There are no external dependencies when generating SVG files. Pillow is required for generating images (e.g.: PNGs). -Support Python 3.7 to 3.10. +Support Python 3.7 to 3.11. .. image:: example-ean13.png :target: https://github.com/WhyNotHugo/python-barcode diff --git a/docs/changelog.rst b/docs/changelog.rst index a0a9841..d57ef79 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -5,6 +5,7 @@ unreleased ~~~~~~~~~~ * **Breaking** Dropped support for Python 3.6. +* Added support for Python 3.11. v0.14.0 ~~~~~~~ diff --git a/setup.py b/setup.py index 03774d8..57a8bfa 100755 --- a/setup.py +++ b/setup.py @@ -27,6 +27,7 @@ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Topic :: Multimedia :: Graphics", "Topic :: Software Development :: Libraries :: Python Modules", ], diff --git a/tox.ini b/tox.ini index de84c1d..1cd7c44 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = {py37,py38,py39,py310}{,-images} +envlist = {py37,py38,py39,py310,py311}{,-images} skip_missing_interpreters = True [testenv]