On Mon, Feb 17, 2025 at 02:31:53PM +0000, Stuart Henderson wrote:
> This release moves the compiled extension to a separate module,
> additional tgz for this (py-argon2-cffi-bindings) attached.
>
> OK?
py-argon2-cffi wants a tdep on itself, otherwise ok for both the new dep
and the update.
Without having py-argon2-cffi installed, I get these failures:
=================================== FAILURES ===================================
_____________________ TestLegacyMetadataHack.test_version ______________________
cls = <class 'importlib.metadata.Distribution'>, name = 'argon2-cffi'
@classmethod
def from_name(cls, name: str):
"""Return the Distribution for the given package name.
:param name: The name of the distribution package to search for.
:return: The Distribution instance (or subclass thereof) for the named
package, if found.
:raises PackageNotFoundError: When the named package's distribution
metadata cannot be found.
:raises ValueError: When an invalid value is supplied for name.
"""
if not name:
raise ValueError("A distribution name is required.")
try:
> return next(cls.discover(name=name))
E StopIteration
/usr/local/lib/python3.12/importlib/metadata/__init__.py:397: StopIteration
During handling of the above exception, another exception occurred:
self = <tests.test_packaging.TestLegacyMetadataHack object at 0x6692737af60>
def test_version(self):
"""
argon2.__version__ returns the correct version.
"""
with pytest.deprecated_call():
> assert metadata.version("argon2-cffi") == argon2.__version__
tests/test_packaging.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/local/lib/python3.12/importlib/metadata/__init__.py:889: in version
return distribution(distribution_name).version
/usr/local/lib/python3.12/importlib/metadata/__init__.py:862: in distribution
return Distribution.from_name(distribution_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'importlib.metadata.Distribution'>, name = 'argon2-cffi'
@classmethod
def from_name(cls, name: str):
"""Return the Distribution for the given package name.
:param name: The name of the distribution package to search for.
:return: The Distribution instance (or subclass thereof) for the named
package, if found.
:raises PackageNotFoundError: When the named package's distribution
metadata cannot be found.
:raises ValueError: When an invalid value is supplied for name.
"""
if not name:
raise ValueError("A distribution name is required.")
try:
return next(cls.discover(name=name))
except StopIteration:
> raise PackageNotFoundError(name)
E importlib.metadata.PackageNotFoundError: No package metadata was
found for argon2-cffi
/usr/local/lib/python3.12/importlib/metadata/__init__.py:399:
PackageNotFoundError
During handling of the above exception, another exception occurred:
self = <tests.test_packaging.TestLegacyMetadataHack object at 0x6692737af60>
def test_version(self):
"""
argon2.__version__ returns the correct version.
"""
> with pytest.deprecated_call():
E Failed: DID NOT WARN. No warnings of type (<class
'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class
'FutureWarning'>) were emitted.
E Emitted warnings: [].
tests/test_packaging.py:21: Failed
___________________ TestLegacyMetadataHack.test_description ____________________
cls = <class 'importlib.metadata.Distribution'>, name = 'argon2-cffi'
@classmethod
def from_name(cls, name: str):
"""Return the Distribution for the given package name.
:param name: The name of the distribution package to search for.
:return: The Distribution instance (or subclass thereof) for the named
package, if found.
:raises PackageNotFoundError: When the named package's distribution
metadata cannot be found.
:raises ValueError: When an invalid value is supplied for name.
"""
if not name:
raise ValueError("A distribution name is required.")
try:
> return next(cls.discover(name=name))
E StopIteration
/usr/local/lib/python3.12/importlib/metadata/__init__.py:397: StopIteration
During handling of the above exception, another exception occurred:
self = <tests.test_packaging.TestLegacyMetadataHack object at 0x66927379970>
def test_description(self):
"""
argon2.__description__ returns the correct description.
"""
with pytest.deprecated_call():
> assert "Argon2 for Python" == argon2.__description__
tests/test_packaging.py:29:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/argon2/__init__.py:75: in __getattr__
meta = metadata("argon2-cffi")
/usr/local/lib/python3.12/importlib/metadata/__init__.py:879: in metadata
return Distribution.from_name(distribution_name).metadata
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'importlib.metadata.Distribution'>, name = 'argon2-cffi'
@classmethod
def from_name(cls, name: str):
"""Return the Distribution for the given package name.
:param name: The name of the distribution package to search for.
:return: The Distribution instance (or subclass thereof) for the named
package, if found.
:raises PackageNotFoundError: When the named package's distribution
metadata cannot be found.
:raises ValueError: When an invalid value is supplied for name.
"""
if not name:
raise ValueError("A distribution name is required.")
try:
return next(cls.discover(name=name))
except StopIteration:
> raise PackageNotFoundError(name)
E importlib.metadata.PackageNotFoundError: No package metadata was
found for argon2-cffi
/usr/local/lib/python3.12/importlib/metadata/__init__.py:399:
PackageNotFoundError
_______________________ TestLegacyMetadataHack.test_uri ________________________
cls = <class 'importlib.metadata.Distribution'>, name = 'argon2-cffi'
@classmethod
def from_name(cls, name: str):
"""Return the Distribution for the given package name.
:param name: The name of the distribution package to search for.
:return: The Distribution instance (or subclass thereof) for the named
package, if found.
:raises PackageNotFoundError: When the named package's distribution
metadata cannot be found.
:raises ValueError: When an invalid value is supplied for name.
"""
if not name:
raise ValueError("A distribution name is required.")
try:
> return next(cls.discover(name=name))
E StopIteration
/usr/local/lib/python3.12/importlib/metadata/__init__.py:397: StopIteration
During handling of the above exception, another exception occurred:
self = <tests.test_packaging.TestLegacyMetadataHack object at 0x6692737af90>
def test_uri(self):
"""
argon2.__uri__ returns the correct project URL.
"""
with pytest.deprecated_call():
> assert "https://argon2-cffi.readthedocs.io/" == argon2.__uri__
tests/test_packaging.py:36:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/argon2/__init__.py:75: in __getattr__
meta = metadata("argon2-cffi")
/usr/local/lib/python3.12/importlib/metadata/__init__.py:879: in metadata
return Distribution.from_name(distribution_name).metadata
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'importlib.metadata.Distribution'>, name = 'argon2-cffi'
@classmethod
def from_name(cls, name: str):
"""Return the Distribution for the given package name.
:param name: The name of the distribution package to search for.
:return: The Distribution instance (or subclass thereof) for the named
package, if found.
:raises PackageNotFoundError: When the named package's distribution
metadata cannot be found.
:raises ValueError: When an invalid value is supplied for name.
"""
if not name:
raise ValueError("A distribution name is required.")
try:
return next(cls.discover(name=name))
except StopIteration:
> raise PackageNotFoundError(name)
E importlib.metadata.PackageNotFoundError: No package metadata was
found for argon2-cffi
/usr/local/lib/python3.12/importlib/metadata/__init__.py:399:
PackageNotFoundError
______________________ TestLegacyMetadataHack.test_email _______________________
cls = <class 'importlib.metadata.Distribution'>, name = 'argon2-cffi'
@classmethod
def from_name(cls, name: str):
"""Return the Distribution for the given package name.
:param name: The name of the distribution package to search for.
:return: The Distribution instance (or subclass thereof) for the named
package, if found.
:raises PackageNotFoundError: When the named package's distribution
metadata cannot be found.
:raises ValueError: When an invalid value is supplied for name.
"""
if not name:
raise ValueError("A distribution name is required.")
try:
> return next(cls.discover(name=name))
E StopIteration
/usr/local/lib/python3.12/importlib/metadata/__init__.py:397: StopIteration
During handling of the above exception, another exception occurred:
self = <tests.test_packaging.TestLegacyMetadataHack object at 0x6692737a1b0>
def test_email(self):
"""
argon2.__email__ returns Hynek's email address.
"""
with pytest.deprecated_call():
> assert "[email protected]" == argon2.__email__
tests/test_packaging.py:46:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/argon2/__init__.py:75: in __getattr__
meta = metadata("argon2-cffi")
/usr/local/lib/python3.12/importlib/metadata/__init__.py:879: in metadata
return Distribution.from_name(distribution_name).metadata
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'importlib.metadata.Distribution'>, name = 'argon2-cffi'
@classmethod
def from_name(cls, name: str):
"""Return the Distribution for the given package name.
:param name: The name of the distribution package to search for.
:return: The Distribution instance (or subclass thereof) for the named
package, if found.
:raises PackageNotFoundError: When the named package's distribution
metadata cannot be found.
:raises ValueError: When an invalid value is supplied for name.
"""
if not name:
raise ValueError("A distribution name is required.")
try:
return next(cls.discover(name=name))
except StopIteration:
> raise PackageNotFoundError(name)
E importlib.metadata.PackageNotFoundError: No package metadata was
found for argon2-cffi
/usr/local/lib/python3.12/importlib/metadata/__init__.py:399:
PackageNotFoundError
=========================== short test summary info ============================
FAILED tests/test_packaging.py::TestLegacyMetadataHack::test_version - Failed...
FAILED tests/test_packaging.py::TestLegacyMetadataHack::test_description - im...
FAILED tests/test_packaging.py::TestLegacyMetadataHack::test_uri - importlib....
FAILED tests/test_packaging.py::TestLegacyMetadataHack::test_email - importli...