Skip to content

Commit

Permalink
Added Python 3.11 wheels and bump dev deps (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
jborean93 committed Oct 25, 2022
1 parent a610967 commit f36e82f
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 24 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/ci.yml
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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: ./
Expand All @@ -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'
Expand Down Expand Up @@ -107,22 +109,25 @@ jobs:
- 3.8
- 3.9
- '3.10'
- '3.11'
provider:
- mit
- heimdal

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
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .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

Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions 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)
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Expand Up @@ -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"
Expand All @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions 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
7 changes: 0 additions & 7 deletions setup.py
Expand Up @@ -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")

Expand Down

0 comments on commit f36e82f

Please sign in to comment.