Skip to content

Commit

Permalink
Use non-deprecated name in pyproject.toml (#812)
Browse files Browse the repository at this point in the history
* Use non-deprecated name in pyproject.toml

* Update secret.py
  • Loading branch information
alex authored Feb 23, 2024
1 parent 31dc2c1 commit 2911447
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
requires = [
"setuptools>=40.8.0",
"wheel",
"cffi>=1.4.1; python_implementation != 'PyPy'",
"cffi>=1.4.1; platform_python_implementation != 'PyPy'",
]
build-backend = "setuptools.build_meta"

Expand Down
6 changes: 3 additions & 3 deletions src/nacl/secret.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ class SecretBox(encoding.Encodable, StringFixer):
KEY_SIZE: ClassVar[int] = nacl.bindings.crypto_secretbox_KEYBYTES
NONCE_SIZE: ClassVar[int] = nacl.bindings.crypto_secretbox_NONCEBYTES
MACBYTES: ClassVar[int] = nacl.bindings.crypto_secretbox_MACBYTES
MESSAGEBYTES_MAX: ClassVar[
int
] = nacl.bindings.crypto_secretbox_MESSAGEBYTES_MAX
MESSAGEBYTES_MAX: ClassVar[int] = (
nacl.bindings.crypto_secretbox_MESSAGEBYTES_MAX
)

def __init__(
self, key: bytes, encoder: encoding.Encoder = encoding.RawEncoder
Expand Down

0 comments on commit 2911447

Please sign in to comment.