Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Python 3.12 #11

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ on:
permissions:
contents: read

env:
FORCE_COLOR: 1

jobs:
tests:
name: "Python ${{ matrix.python-version }}"
# 20.04 because https://github.com/actions/python-versions
# does not have 2.7 and 3.6 binaries for 22.04.
runs-on: "ubuntu-20.04"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
Expand All @@ -38,18 +39,24 @@ jobs:
- "3.8"
- "3.9"
- "3.10"
- "3.11-dev"
- "3.11"
- "pypy-2.7"
- "pypy-3.7"
- "pypy-3.8"
- "pypy-3.9"
# 20.04 because https://github.com/actions/python-versions
# does not have 2.7 and 3.6 binaries for 22.04.
os: ["ubuntu-20.04"]
include:
- { python-version: "3.12", os: "ubuntu-latest" }
steps:
- uses: "actions/checkout@v3"
with:
ref: ${{ inputs.tag || github.ref }}
- uses: "actions/setup-python@v4"
with:
python-version: "${{ matrix.python-version }}"
allow-prereleases: true
cache: "pip"
- name: "Update pip"
run: python -m pip install --upgrade pip setuptools wheel
Expand All @@ -68,7 +75,7 @@ jobs:
ref: ${{ inputs.tag || github.ref }}
- uses: "actions/setup-python@v4"
with:
python-version: "3.10"
python-version: "3.x"
cache: "pip"
- name: "Update pip"
run: python -m pip install --upgrade pip setuptools wheel
Expand All @@ -77,14 +84,14 @@ jobs:
- name: "Run 'build'"
run: "python -m build"
- name: "Upload sdist artifact"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: sdist
path: |
dist/pyasn1*.tar.gz
if-no-files-found: error
- name: "Upload wheel artifact"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wheel
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.x"
- name: "Update pip"
run: python -m pip install --upgrade pip setuptools wheel
- name: "Install 'build' and 'twine'"
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ classifiers =
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Topic :: Communications
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
minversion = 3.5.0
envlist =
py27, py36, py37, py38, py39, py310, py311, pypy27, pypy37, pypy38, pypy39
py27, py36, py37, py38, py39, py310, py311, py312, pypy27, pypy37, pypy38, pypy39
cover, bandit, build
isolated_build = true
skip_missing_interpreters = true
Expand Down Expand Up @@ -46,6 +46,7 @@ python =
3.9: py39
3.10: py310, cover, build, bandit
3.11: py311
3.12: py312
pypy-2.7: pypy27
pypy-3.7: pypy37
pypy-3.8: pypy38
Expand Down
Loading