Bug 263834 - www/py-flask-jwt-extended: Update to 4.4.1
Summary: www/py-flask-jwt-extended: Update to 4.4.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Rainer Hurling
URL: https://github.com/vimalloc/flask-jwt...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-07 09:33 UTC by Goran Mekić
Modified: 2022-06-07 19:18 UTC (History)
2 users (show)

See Also:


Attachments
flask-jwt-extended.diff (1.25 KB, patch)
2022-05-07 09:33 UTC, Goran Mekić
meka: maintainer-approval+
Details | Diff
Update to 4.4.0, using standardized pytest entry point (1.48 KB, patch)
2022-05-08 12:01 UTC, Rainer Hurling
no flags Details | Diff
flask-jwt-extended 4.4.1 (2.55 KB, patch)
2022-06-06 22:28 UTC, Goran Mekić
meka: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Goran Mekić 2022-05-07 09:33:19 UTC
Created attachment 233784 [details]
flask-jwt-extended.diff

QA:

  * portlint: OK (looks fine.)
  * testport: OK (poudriere: 13.0, amd64 tested)
  * maketest: OK (164 passed)
Comment 1 Rainer Hurling freebsd_committer freebsd_triage 2022-05-08 12:01:10 UTC
Created attachment 233808 [details]
Update to 4.4.0, using standardized pytest entry point

Hi Goran,
Thanks for the patch. It builds and installs fine.

Since review D34693 is committed in #b731fff69c0f, adding USES=pytest seems sufficient instead of your do-test target. I changed your patch to it ;)

As also included in your patch, www/py-flask-jwt-extended now uses www/py-flask v2.x, v1.x is no longer supported. However, this conflicts with sysutils/conan, where www/py-flask v1.x must still be used[1].

How do we want to handle this?


[1] https://github.com/conan-io/conan/blob/649f1412eeefe2fe549751cbfaced8dd5a2cd200/conans/requirements.txt
Comment 2 Rainer Hurling freebsd_committer freebsd_triage 2022-05-08 13:44:11 UTC
(In reply to Rainer Hurling from comment #1)
I have to answer myself to correct myself. Sorry.

In fact www/py-flask v2.1.2 is already in the ports. What I meant instead is that there is a conflict between the two versions www/py-pyjwt1 and www/py-pyjwt (aka 2.1.2)[1]. sysutils/conan still needs v1.x here, www/py-flask-jwt-extended needs v2.x.

Interestingly, there are no CONFLICTS_INSTALL entries in either port ...


[1] pkg-static: py38-pyjwt-2.3.0_1 conflicts with py38-pyjwt1-1.7.1 (installs files into the same place).  Problematic file: /usr/local/lib/python3.8/site-packages/jwt/__init__.py
Comment 3 Goran Mekić 2022-05-22 09:34:51 UTC
The fix is added to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264146. Thank you for keeping me on my toes!
Comment 4 Goran Mekić 2022-06-06 22:28:23 UTC
Created attachment 234506 [details]
flask-jwt-extended 4.4.1
Comment 5 Rainer Hurling freebsd_committer freebsd_triage 2022-06-07 05:41:55 UTC
Hi Goran,

Thanks for the updated patch. I will try to have a look this evening ;)
Comment 6 commit-hook freebsd_committer freebsd_triage 2022-06-07 19:17:06 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3192a093df47c443a137a169f43de6b753b0a6a6

commit 3192a093df47c443a137a169f43de6b753b0a6a6
Author:     Goran Mekić <meka@tilda.center>
AuthorDate: 2022-06-07 19:03:39 +0000
Commit:     Rainer Hurling <rhurlin@FreeBSD.org>
CommitDate: 2022-06-07 19:15:12 +0000

    www/py-flask-jwt-extended: Update to 4.4.1

    - Drop support for Flask 1
    - Add verify_type argument to view decorators
    - Documentation improvements
    - Relax dependency pinning for cryptography package
    - Fix PEP 561 compatibility

    The port uses standardized pytest entry point now.

    Changelog: https://github.com/vimalloc/flask-jwt-extended/releases/tag/4.4.0
               https://github.com/vimalloc/flask-jwt-extended/releases/tag/4.4.1

    PR:             263834

 www/py-flask-jwt-extended/Makefile | 17 ++++++-----------
 www/py-flask-jwt-extended/distinfo |  6 +++---
 2 files changed, 9 insertions(+), 14 deletions(-)
Comment 7 Rainer Hurling freebsd_committer freebsd_triage 2022-06-07 19:18:41 UTC
Hi Goran,
Thanks again for your patch and updates. Committed now, have fun :)