Page MenuHomeFreeBSD

Port for PyJWT
ClosedPublic

Authored by wblock on Jul 26 2014, 3:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 4, 4:42 AM
Unknown Object (File)
Sun, Dec 1, 10:13 AM
Unknown Object (File)
Nov 4 2024, 3:23 AM
Unknown Object (File)
Nov 3 2024, 4:25 PM
Unknown Object (File)
Sep 30 2024, 9:12 PM
Unknown Object (File)
Sep 23 2024, 5:13 PM
Unknown Object (File)
Sep 22 2024, 1:59 PM
Unknown Object (File)
Sep 14 2024, 4:49 AM
Subscribers
None

Details

Reviewers
koobs

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

wblock retitled this revision from to Port for PyJWT.
wblock updated this object.
wblock edited the test plan for this revision. (Show Details)
wblock added a reviewer: koobs.
koobs requested changes to this revision.Jul 26 2014, 3:49 AM
koobs edited edge metadata.
koobs added inline comments.
www/py-jwt/Makefile
1 ↗(On Diff #842)

Upstream name is lowercase(PyJWT) [1], match in PORTNAME

(1) https://pypi.python.org/pypi/PyJWT

9 ↗(On Diff #842)

Missing LICENSE/LICENSE_FILE

13 ↗(On Diff #842)

This upstream is good, since they set test_suite= in setup.py [1], which means python setup.py test command works out of the box to run tests.

Add

regression-test: build
<tab>@cd ${WRKSRC} && {$PYTHON_CMD} ${PYSETUP} test

(1) https://github.com/progrium/pyjwt/blob/master/setup.py#L32

www/py-jwt/files/patch-jwt__jws.py
1 ↗(On Diff #842)

Send this upstream (github PR/issue)

www/py-jwt/files/patch-jwt__jwt.py
1 ↗(On Diff #842)

Send this upstream (github PR/issue)

www/py-jwt/pkg-descr
3 ↗(On Diff #842)

Homepage is normally set by authors in setup.py under the URL= entry [1]. Use it unless there's a better option.

(1) https://github.com/progrium/pyjwt/blob/master/setup.py#L18

3 ↗(On Diff #842)

Missing WWW: ?

This revision now requires changes to proceed.Jul 26 2014, 3:49 AM

"RSASSA-PKCS1-v1_5 algorithms depend on PyCrypto" [1]

(1) https://github.com/progrium/pyjwt#installing

see about optional pypycrypto dependency (per koobs on IRC)

wblock edited edge metadata.

Latest version. Notes:

No license set, I do not set them because I feel the license framework is a liability.

Although it claims to have tests, there are none, and trying to run them fails. Maybe this is not a problem.

Should the port directory be named www/py-pyjwt or www/py-PyJWT ?

wblock edited edge metadata.

Include an optional dependency on pycrypto for RSASSA algorithms.

koobs requested changes to this revision.Aug 13 2014, 7:03 AM
koobs edited edge metadata.
koobs added inline comments.
Makefile
2
  • PORTNAME=lowercase(upstream_name)
  • py-pyjwt for svn dirname

Note: You'll probably need to set DISTNAME to get distfiles/fetching done once PORTNAME is lowercased

10

LICENSE and LICENSE_FILE please :) If not for the License Framework, then for Python Ports and Team. (because we care, together, as a team)

Personally speaking, my own opinions and feelings about liability or effectiveness of a particular feature don't preclude me from participating or warrant standing-off on that basis alone.

12

RSASSA-PKCS1-v1_5 signature support

18

"=" is sufficient for option_*_DEPENDS

This revision now requires changes to proceed.Aug 13 2014, 7:03 AM
wblock edited edge metadata.

Latest updates. LICENSE not set yet, but everything else works.

koobs requested changes to this revision.Aug 30 2014, 1:23 AM
koobs edited edge metadata.
koobs added inline comments.
www/py-pyjwt/Makefile
11 ↗(On Diff #1282)

LICENSE=MIT
LICENSE_FILE=${WRKSRC}/LICENSE

(1) https://github.com/progrium/pyjwt/blob/master/setup.py#L24
(2) https://github.com/progrium/pyjwt/blob/master/LICENSE

FWIW, adding LICENSE information is metadata (if available), not an assertion.

I do agree they should only be added if explicitly specified and unambiguous upstream

13 ↗(On Diff #1282)

This override is not necessary anymore

15 ↗(On Diff #1282)

s/-v1_5/ v1.5/ ?

20 ↗(On Diff #1282)

I prefer *_DEPENDS to come before options (and iirc, portlint likes them earlier too), but this is a minor nit.

23 ↗(On Diff #1282)

${PYDISTUTILS_SETUP} is better than ${PYSETUP} in what will become the canonical test command invocation.

It wraps the 'setup.py' string in a setuptools import, which adds the setuptools 'test' command to distutils only ports.

This revision now requires changes to proceed.Aug 30 2014, 1:23 AM
www/py-pyjwt/Makefile
11 ↗(On Diff #1282)

The license file is not included in the archive, so this gives:

> Missing license file for MIT in /usr/ports/www/py-pyjwt/work/PyJWT-0.2.1/LICENSE

  • Error code 1
15 ↗(On Diff #1282)

-v1_5 seems to be the standard name for the scheme.

www/py-pyjwt/Makefile
11 ↗(On Diff #1282)

Feel free to go ahead without it

wblock edited edge metadata.
koobs edited edge metadata.

One minor change in RSASSA_DESC value, otherwise LGTM.

Dont forget:

  • pkg-descr (no trailing slash on WWW: URL)
  • Adding it to www/Makefile (under py-pyjwt)

Ship it!

Makefile
18

RSASSA-PKCS1 v1.5

This revision is now accepted and ready to land.Sep 11 2014, 11:21 AM