Skip to content

Commit

Permalink
Add Python 3.12 (#145)
Browse files Browse the repository at this point in the history
* Add Python 3.12

* Simplify env computation

* Add missing env

* Clarify
  • Loading branch information
hynek committed Jun 2, 2023
1 parent c56ccc2 commit 3189e0e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "pypy-3.7"
- "pypy-3.8"

Expand All @@ -40,16 +41,12 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- run: python -Im pip install --upgrade wheel tox

- name: Determine Python version for tox
run: |
V=${{ matrix.python-version }}
if [[ "$V" = ~* ]]; then
# Extract version from a '~3.XX.0-0' specifier.
V=${V:1:4}
fi
if [[ "$V" = pypy-* ]]; then
V=pypy3
else
Expand Down Expand Up @@ -125,12 +122,14 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- run: python -Im pip install --upgrade wheel tox
- run: python -Im tox run -e mypy
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ What explicitly *may* change over time are the default hashing parameters and th

### Added

- Official support for Python 3.11.
- Official support for Python 3.11 and 3.12.
No code changes were necessary.


## [21.3.0](https://github.com/hynek/argon2-cffi/compare/21.2.0...21.3.0) - 2021-12-11
Expand Down
8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,24 @@ description = "Argon2 for Python"
authors = [{ name = "Hynek Schlawack", email = "hs@ox.cx" }]
dynamic = ["version", "readme"]
requires-python = ">=3.7"
license = { file = "LICENSE" }
license = "MIT"
keywords = ["password", "hash", "hashing", "security"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"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",
"Programming Language :: Python",
"Topic :: Security :: Cryptography",
"Topic :: Security",
"Topic :: Software Development :: Libraries :: Python Modules",
Expand All @@ -60,7 +58,7 @@ Ko-fi = "https://ko-fi.com/the_hynek"

[tool.hatch.version]
source = "vcs"
raw-options = { version_scheme = "no-guess-dev" }
raw-options = { local_scheme = "no-local-version" }


[tool.hatch.metadata.hooks.fancy-pypi-readme]
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env_list =
py39,
py310,
py311{,-bindings-main},
py312,
pypy3,
system-argon2,
docs,
Expand Down

0 comments on commit 3189e0e

Please sign in to comment.