From f36e82ffa4ddd9f540a0bdf41c13a2d404df284d Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Tue, 25 Oct 2022 15:26:43 -0500 Subject: [PATCH] Added Python 3.11 wheels and bump dev deps (#18) --- .github/workflows/ci.yml | 27 ++++++++++++++++----------- .pre-commit-config.yaml | 4 ++-- CHANGELOG.md | 4 ++++ pyproject.toml | 5 +++-- requirements-dev.txt | 4 ++-- setup.py | 7 ------- 6 files changed, 27 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ed35ac..34eb652 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,9 +25,9 @@ jobs: name: build sdist runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 with: python-version: 3.9 @@ -38,7 +38,7 @@ jobs: env: KRB5_SKIP_EXTENSIONS: true - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 with: name: artifact path: ./dist/*.tar.gz @@ -62,9 +62,11 @@ jobs: - cp39-macosx_arm64 - cp310-macosx_x86_64 - cp310-macosx_arm64 + - cp311-macosx_x86_64 + - cp311-macosx_arm64 steps: - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 with: name: artifact path: ./ @@ -77,7 +79,7 @@ jobs: rm krb5-*.tar.gz - name: build wheel - uses: pypa/cibuildwheel@v2.1.1 + uses: pypa/cibuildwheel@v2.11.1 env: CIBW_ARCHS: all CIBW_TEST_SKIP: '*_arm64' @@ -107,6 +109,7 @@ jobs: - 3.8 - 3.9 - '3.10' + - '3.11' provider: - mit - heimdal @@ -114,15 +117,17 @@ jobs: exclude: - os: macOS-12 provider: mit + - os: macOS-12 + python-version: '3.11' # https://github.com/actions/setup-python/issues/531 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 with: name: artifact path: ./dist @@ -135,7 +140,7 @@ jobs: - name: Upload Test Results if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: Unit Test Results (${{ matrix.os }} ${{ matrix.provider }} ${{ matrix.python-version }}) path: ./junit/test-results.xml @@ -147,9 +152,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 with: name: artifact path: ./dist diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fd9c4c4..f9d2f11 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black - rev: 22.6.0 + rev: 22.10.0 hooks: - id: black @@ -10,7 +10,7 @@ repos: - id: isort - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.971 + rev: v0.982 hooks: - id: mypy exclude: setup.py diff --git a/CHANGELOG.md b/CHANGELOG.md index f051053..13bf9a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.4.1 - 2022-10-25 + +* Added Python 3.11 wheel + ## 0.4.0 - 2022-08-09 * Require Python 3.7 or newer (dropped 3.6) diff --git a/pyproject.toml b/pyproject.toml index c1c777b..9e6882f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta" [project] name = "krb5" -version = "0.4.0" +version = "0.4.1" description = "Kerberos API bindings for Python" readme = "README.md" requires-python = ">=3.7" @@ -23,7 +23,8 @@ classifiers = [ "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10" + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11" ] [project.urls] diff --git a/requirements-dev.txt b/requirements-dev.txt index 92eec22..8776986 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,7 +1,7 @@ -black==22.6.0 +black==22.10.0 isort==5.10.1 k5test>=0.10.0 -mypy==0.971 +mypy==0.982 pre-commit pytest tox \ No newline at end of file diff --git a/setup.py b/setup.py index 59d2573..1d27cf9 100755 --- a/setup.py +++ b/setup.py @@ -174,13 +174,6 @@ def get_krb5_lib_path( else: compile_args = shlex.split(run_command(f"{kc} --cflags krb5")) - compile_args.append("-Werror") - - # Python 3.8 on macOS errors on these deprecation warnings. We ignore them as things are fixed on 3.9 but the - # code still needs to compile on 3.8. - if sys.platform == "darwin" and sys.version_info[:2] == (3, 8): - compile_args.append("-Wno-deprecated") - if CYTHON_LINETRACE: compile_args.append("-DCYTHON_TRACE_NOGIL=1")