pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/security/py-argon2-cffi



Module Name:    pkgsrc
Committed By:   adam
Date:           Fri May  5 08:33:05 UTC 2023

Modified Files:
        pkgsrc/security/py-argon2-cffi: Makefile PLIST distinfo

Log Message:
py-argon2-cffi: updated to 21.3.0

21.3.0

Fixed

While the last release added type hints, the fact that it's been misssing a py.typed file made Mypy ignore them.

21.2.0

Removed

Python 3.5 is not supported anymore.

The CFFI bindings have been extracted into a separate project: argon2-cffi-bindings This makes argon2-cffi a Python-only project und should make it easier to contribute to and have more frequent 
releases with high-level features.

This change is breaking for users who want to use a system-wide installation of Argon2 instead of our vendored code, because the argument to the --no-binary argument changed. Please refer to the 
installation guide.

Added

Thanks to lots of work within argon2-cffi-bindings, there're pre-compiled wheels for many new platforms. Including:

Apple Silicon via universal2
Linux on amd64 and arm64
musl libc (Alpine Linux!) on i686, amd64, and arm64
PyPy 3.8
We hope to provide wheels for Windows on arm64 soon, but are waiting for GitHub Actions to support that.

argon2.Parameters.from_parameters() together with the argon2.profiles module that offers easy access to the RFC-recommended configuration parameters and then some.

The CLI interface now has a --profile option that takes any name from argon2.profiles.

Types! argon2-cffi is now fully typed.

Changed

argon2.PasswordHasher now uses the RFC 9106 low-memory profile by default. The old defaults are available as argon2.profiles.PRE_21_2.

21.1.0

Removed

Microsoft stopped providing the necessary SDKs to ship Python 2.7 wheels and currenly the downloads amount to 0.09%. Therefore we have decided that Python 2.7 is not supported anymore.
Changed

There are indeed no changes whatsoever to the code of argon2-cffi. The Argon2 project also hasn't tagged a new release since July 2019. There also don't seem to be any important pending fixes.

This release is mainly about improving the way binary wheels are built (abi3 on all platforms).


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/security/py-argon2-cffi/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/security/py-argon2-cffi/PLIST
cvs rdiff -u -r1.4 -r1.5 pkgsrc/security/py-argon2-cffi/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/py-argon2-cffi/Makefile
diff -u pkgsrc/security/py-argon2-cffi/Makefile:1.6 pkgsrc/security/py-argon2-cffi/Makefile:1.7
--- pkgsrc/security/py-argon2-cffi/Makefile:1.6 Wed Mar 29 09:34:12 2023
+++ pkgsrc/security/py-argon2-cffi/Makefile     Fri May  5 08:33:05 2023
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.6 2023/03/29 09:34:12 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2023/05/05 08:33:05 adam Exp $
 
-DISTNAME=      argon2-cffi-20.1.0
+DISTNAME=      argon2-cffi-21.3.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    security python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/argon2-cffi/}
 
@@ -11,24 +10,20 @@ HOMEPAGE=   https://argon2-cffi.readthedoc
 COMMENT=       Secure Argon2 password hashing algorithm
 LICENSE=       mit
 
-DEPENDS+=      ${PYPKGPREFIX}-cffi>=1.0.0:../../devel/py-cffi
-DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
+TOOL_DEPENDS+= ${PYPKGPREFIX}-flit_core>=3.4:../../devel/py-flit_core
+DEPENDS+=      ${PYPKGPREFIX}-argon2-cffi-bindings-[0-9]*:../../security/py-argon2-cffi-bindings
+TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 
-PYTHON_VERSIONED_DEPENDENCIES= test:test
-PYTHON_VERSIONED_DEPENDENCIES+=        hypothesis:test
+USE_LANGUAGES= # none
 
-.include "../../lang/python/pyversion.mk"
-
-.if ${PYTHON_VERSION} == 207
-DEPENDS+=      ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
-.endif
+PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 MAKE_ENV+=     ARGON2_CFFI_USE_SYSTEM=1
 
 do-test:
-       cd ${WRKSRC} && pytest-${PYVERSSUFFIX} tests
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
 
-.include "../../lang/python/egg.mk"
-.include "../../lang/python/versioned_dependencies.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../security/argon2/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/security/py-argon2-cffi/PLIST
diff -u pkgsrc/security/py-argon2-cffi/PLIST:1.1 pkgsrc/security/py-argon2-cffi/PLIST:1.2
--- pkgsrc/security/py-argon2-cffi/PLIST:1.1    Wed Nov 13 21:12:20 2019
+++ pkgsrc/security/py-argon2-cffi/PLIST        Fri May  5 08:33:05 2023
@@ -1,33 +1,27 @@
-@comment $NetBSD: PLIST,v 1.1 2019/11/13 21:12:20 adam Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.2 2023/05/05 08:33:05 adam Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
 ${PYSITELIB}/argon2/__init__.py
 ${PYSITELIB}/argon2/__init__.pyc
-${PYSITELIB}/argon2/__init__.pyo
 ${PYSITELIB}/argon2/__main__.py
 ${PYSITELIB}/argon2/__main__.pyc
-${PYSITELIB}/argon2/__main__.pyo
-${PLIST.py2x}${PYSITELIB}/argon2/_ffi.so
-${PLIST.py3x}${PYSITELIB}/argon2/_ffi.abi3.so
-${PYSITELIB}/argon2/_ffi_build.py
-${PYSITELIB}/argon2/_ffi_build.pyc
-${PYSITELIB}/argon2/_ffi_build.pyo
 ${PYSITELIB}/argon2/_legacy.py
 ${PYSITELIB}/argon2/_legacy.pyc
-${PYSITELIB}/argon2/_legacy.pyo
 ${PYSITELIB}/argon2/_password_hasher.py
 ${PYSITELIB}/argon2/_password_hasher.pyc
-${PYSITELIB}/argon2/_password_hasher.pyo
+${PYSITELIB}/argon2/_typing.py
+${PYSITELIB}/argon2/_typing.pyc
 ${PYSITELIB}/argon2/_utils.py
 ${PYSITELIB}/argon2/_utils.pyc
-${PYSITELIB}/argon2/_utils.pyo
 ${PYSITELIB}/argon2/exceptions.py
 ${PYSITELIB}/argon2/exceptions.pyc
-${PYSITELIB}/argon2/exceptions.pyo
 ${PYSITELIB}/argon2/low_level.py
 ${PYSITELIB}/argon2/low_level.pyc
-${PYSITELIB}/argon2/low_level.pyo
+${PYSITELIB}/argon2/profiles.py
+${PYSITELIB}/argon2/profiles.pyc
+${PYSITELIB}/argon2/py.typed

Index: pkgsrc/security/py-argon2-cffi/distinfo
diff -u pkgsrc/security/py-argon2-cffi/distinfo:1.4 pkgsrc/security/py-argon2-cffi/distinfo:1.5
--- pkgsrc/security/py-argon2-cffi/distinfo:1.4 Tue Oct 26 11:17:41 2021
+++ pkgsrc/security/py-argon2-cffi/distinfo     Fri May  5 08:33:05 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 11:17:41 nia Exp $
+$NetBSD: distinfo,v 1.5 2023/05/05 08:33:05 adam Exp $
 
-BLAKE2s (argon2-cffi-20.1.0.tar.gz) = e822044ef3798c829eca366ab882ac834574b5460b6363ce536178e5bf96e228
-SHA512 (argon2-cffi-20.1.0.tar.gz) = d1d798e3e51ed67c4f523a66081fea99479ee986b5cfc36b250954e757b9846625681445447f9347519d9988f8a2ace2e3c8ce5817c5c6b4767819cf56ee0af2
-Size (argon2-cffi-20.1.0.tar.gz) = 1814415 bytes
+BLAKE2s (argon2-cffi-21.3.0.tar.gz) = 9ae1325128fde5f58fabaef6b02ea8071c787e21961ab1fbe75ddace6794d4f9
+SHA512 (argon2-cffi-21.3.0.tar.gz) = 6cb2a075f3bb7040ee7f552d082bfa2f3df0854649d9c84fdfdb42bb4bee2133b8a35a20be2b3c887931efda12fbbb00815d8d88170b7e20b3ca19c86f97057e
+Size (argon2-cffi-21.3.0.tar.gz) = 38446 bytes



Home | Main Index | Thread Index | Old Index