Prep for 4.1.0 release (#667)
This commit is contained in:
parent
96b80a494f
commit
8ca5d515b1
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -93,7 +93,8 @@ jobs:
|
||||
- {VERSION: "pypy-3.10", TOXENV: "pypy3"}
|
||||
|
||||
# MSRV
|
||||
- {VERSION: "3.12", TOXENV: "py312", RUST_VERSION: "1.60.0"}
|
||||
- {VERSION: "3.12", TOXENV: "py312", RUST_VERSION: "1.63.0"}
|
||||
- {VERSION: "3.12", TOXENV: "py312", RUST_VERSION: "1.64.0"}
|
||||
- {VERSION: "3.12", TOXENV: "py312", RUST_VERSION: "beta"}
|
||||
- {VERSION: "3.12", TOXENV: "py312", RUST_VERSION: "nightly"}
|
||||
name: "${{ matrix.PYTHON.TOXENV }} on linux, Rust ${{ matrix.PYTHON.RUST_VERSION || 'stable' }}"
|
||||
@ -120,6 +121,8 @@ jobs:
|
||||
toolchain: ${{ matrix.PYTHON.RUST_VERSION || 'stable' }}
|
||||
|
||||
- run: pip install tox
|
||||
- if: matrix.PYTHON.RUST_VERSION == '1.63.0'
|
||||
run: echo 'BCRYPT_ALLOW_RUST_163=1' >> $GITHUB_ENV
|
||||
- run: tox
|
||||
env:
|
||||
TOXENV: ${{ matrix.PYTHON.TOXENV }}
|
||||
|
||||
@ -51,11 +51,11 @@ While bcrypt remains an acceptable choice for password storage, depending on you
|
||||
Changelog
|
||||
=========
|
||||
|
||||
5.0.0 (UNRELEASED)
|
||||
------------------
|
||||
4.1.0
|
||||
-----
|
||||
|
||||
* Dropped support for Python 3.6.
|
||||
* Bumped MSRV to 1.60.
|
||||
* Bumped MSRV to 1.64. (Note: Rust 1.63 can be used by setting the ``BCRYPT_ALLOW_RUST_163`` environment variable)
|
||||
|
||||
4.0.1
|
||||
-----
|
||||
|
||||
@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"
|
||||
[project]
|
||||
name = "bcrypt"
|
||||
# When updating this, also update lib.rs
|
||||
version = "4.0.1"
|
||||
version = "4.1.0"
|
||||
authors = [
|
||||
{name = "The Python Cryptographic Authority developers", email = "cryptography-dev@python.org"}
|
||||
]
|
||||
|
||||
10
setup.py
10
setup.py
@ -1,3 +1,4 @@
|
||||
import os
|
||||
import platform
|
||||
import re
|
||||
import shutil
|
||||
@ -43,7 +44,11 @@ try:
|
||||
if platform.python_implementation() == "PyPy"
|
||||
else ["pyo3/abi3-py37"]
|
||||
),
|
||||
rust_version=">=1.56.0",
|
||||
rust_version=(
|
||||
">=1.64.0"
|
||||
if os.environ.get("BCRYPT_ALLOW_RUST_163", "0") != "0"
|
||||
else ">=1.63.0"
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
@ -66,7 +71,8 @@ except:
|
||||
1) Upgrade to the latest pip and try again. This will fix errors for most
|
||||
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
|
||||
2) Ensure you have a recent Rust toolchain installed. bcrypt requires
|
||||
rustc >= 1.56.0.
|
||||
rustc >= 1.64.0. (1.63 may be used by setting the BCRYPT_ALLOW_RUST_163
|
||||
environment variable)
|
||||
"""
|
||||
)
|
||||
print(f" Python: {'.'.join(str(v) for v in sys.version_info[:3])}")
|
||||
|
||||
@ -183,7 +183,7 @@ fn _bcrypt(_py: pyo3::Python<'_>, m: &pyo3::types::PyModule) -> pyo3::PyResult<(
|
||||
m.add("__uri__", "https://github.com/pyca/bcrypt/")?;
|
||||
|
||||
// When updating this, also update pyproject.toml
|
||||
m.add("__version__", "4.0.1")?;
|
||||
m.add("__version__", "4.1.0")?;
|
||||
|
||||
let author = "The Python Cryptographic Authority developers";
|
||||
m.add("__author__", author)?;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user