diff options
author | Kubilay Kocak <koobs@FreeBSD.org> | 2016-02-26 10:44:33 +0000 |
---|---|---|
committer | Kubilay Kocak <koobs@FreeBSD.org> | 2016-02-26 10:44:33 +0000 |
commit | 4c8eccf2bd0cb767d17c1e61c2dc2a512a8d5b02 (patch) | |
tree | f66cfc5391efc9f1c6c00d99788d3f56da778a74 | |
parent | security/py-libnacl: Update to 1.4.4 (diff) |
www/py-pyjwt: Update to 1.4.0, Modernize
- Update PORTVERSION and distinfo checksum (1.4.0)
- Update run and test dependencies (pycrypto -> cryptography)
- Enable "concurrent" Python installation
- Enable NO_ARCH (architecture independent)
- Update test target
- Patch setup.py not to install non-compulsory tests_requires
- Group OPTIONS_* entries
- Pet portling (DISTNAME order)
- Uncomment LICENSE_FILE
PR: 205443
Reviewed by: maintainer <terje elde net>
Approved by: maintainer <terje elde net>
Notes
Notes:
svn path=/head/; revision=409595
-rw-r--r-- | www/py-pyjwt/Makefile | 26 | ||||
-rw-r--r-- | www/py-pyjwt/distinfo | 4 | ||||
-rw-r--r-- | www/py-pyjwt/files/patch-setup.py | 19 |
3 files changed, 38 insertions, 11 deletions
diff --git a/www/py-pyjwt/Makefile b/www/py-pyjwt/Makefile index d360f0b63e17..119d9e72bc0f 100644 --- a/www/py-pyjwt/Makefile +++ b/www/py-pyjwt/Makefile @@ -1,27 +1,35 @@ # $FreeBSD$ PORTNAME= pyjwt -PORTVERSION= 0.2.1 +PORTVERSION= 1.4.0 CATEGORIES= www python MASTER_SITES= CHEESESHOP -DISTNAME= PyJWT-${PORTVERSION} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= PyJWT-${PORTVERSION} MAINTAINER= terje@elde.net COMMENT= JSON Web Token implementation in Python LICENSE= MIT -# LICENSE_FILE= ${WRKSRC}/LICENSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +# Some tests are skipped without pycrypto, but its not +# referenced as a requirement anymore. +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest \ + ${PYTHON_PKGNAMEPREFIX}cryptography>0:${PORTSDIR}/security/py-cryptography \ + ${PYTHON_PKGNAMEPREFIX}pycrypto>=0:${PORTSDIR}/security/py-pycrypto -RSASSA_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycrypto>=0:${PORTSDIR}/security/py-pycrypto +USES= python +USE_PYTHON= distutils concurrent autoplist OPTIONS_DEFINE= RSASSA -RSASSA_DESC= RSASSA-PKCS1 v1.5 signature support -USES= python -USE_PYTHON= distutils autoplist +RSASSA_DESC= RSASSA-PKCS1 v1.5 signature support +RSASSA_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography>0:${PORTSDIR}/security/py-cryptography + +NO_ARCH= yes -regression-test: build - @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -c /dev/null -v -rs .include <bsd.port.mk> diff --git a/www/py-pyjwt/distinfo b/www/py-pyjwt/distinfo index 7cb84e8aa356..76c36ca87302 100644 --- a/www/py-pyjwt/distinfo +++ b/www/py-pyjwt/distinfo @@ -1,2 +1,2 @@ -SHA256 (PyJWT-0.2.1.tar.gz) = cfd0fad01a9a57fb4b24e59a82ffd50ddc9c2c4344694ec6ef436ae11d5d18aa -SIZE (PyJWT-0.2.1.tar.gz) = 6320 +SHA256 (PyJWT-1.4.0.tar.gz) = e1b2386cfad541445b1d43e480b02ca37ec57259fd1a23e79415b57ba5d8a694 +SIZE (PyJWT-1.4.0.tar.gz) = 34613 diff --git a/www/py-pyjwt/files/patch-setup.py b/www/py-pyjwt/files/patch-setup.py new file mode 100644 index 000000000000..3cd7bfd035d6 --- /dev/null +++ b/www/py-pyjwt/files/patch-setup.py @@ -0,0 +1,19 @@ +--- setup.py.orig 2016-02-26 09:43:54 UTC ++++ setup.py +@@ -31,8 +31,6 @@ if sys.argv[-1] == 'publish': + + tests_require = [ + 'pytest', +- 'pytest-cov', +- 'pytest-runner', + ] + + setup( +@@ -61,7 +59,6 @@ setup( + 'Topic :: Utilities', + ], + test_suite='tests', +- setup_requires=['pytest-runner'], + tests_require=tests_require, + extras_require=dict( + test=tests_require, |