Skip to content

Commit

Permalink
Use a different version attribute name
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Nov 27, 2023
1 parent f787097 commit 55e8e2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/_bcrypt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ 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.1.1")?;
// This isn't named __version__ because passlib treats the existence of
// that attribute as proof that we're a different module
m.add("__version_ex__", "4.1.1")?;

let author = "The Python Cryptographic Authority developers";
m.add("__author__", author)?;
Expand Down
4 changes: 3 additions & 1 deletion src/bcrypt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@
__summary__,
__title__,
__uri__,
__version__,
checkpw,
gensalt,
hashpw,
kdf,
)
from ._bcrypt import (
__version_ex__ as __version__,
)

__all__ = [
"gensalt",
Expand Down

0 comments on commit 55e8e2f

Please sign in to comment.