Bug 275938

Summary: www/py-flask-wtf: Update to 1.2.1
Product: Ports & Packages Reporter: Alastair Hogge <agh>
Component: Individual Port(s)Assignee: Ruslan Makhmatkhanov <rm>
Status: In Progress ---    
Severity: Affects Only Me CC: agh, ports-bugs
Priority: --- Flags: bugzilla: maintainer-feedback? (rm)
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/wtforms/flask-wtf/releases/tag/v1.2.1
Attachments:
Description Flags
Update to 1.2.1
none
Update to 1.2.1 none

Description Alastair Hogge 2023-12-26 04:07:22 UTC
Created attachment 247254 [details]
Update to 1.2.1

Update to 1.2.1:
https://github.com/wtforms/flask-wtf/releases/tag/v1.2.1

- Port uses devel/py-hatchling, so remove use of ${PY_SETUPTOOL},
  and ${PYDISTUTILS_SETUP}
- Update ${TEST_DEPENDS} and use py-tox for testing
- Add option DOCS, and build Sphinx documentation
- Add option EMAIL for form validation of email addresses

The release on PyPI does not include the requirements directory, needed for testing, so I switched to Github. There is a Python namespace dance I am not familiar with, using either the PiPY or Github release results in naming problems with .whl that prevent the build from finding it. I added a post-build, do-install, and post-stage targets to the Makefile to locate, and rename the .whl, and then regenerate ${WRKDIR}/.PLIST.pymodtmp). Seems like too much work.
Comment 1 Alastair Hogge 2024-01-23 02:15:42 UTC
Created attachment 247864 [details]
Update to 1.2.1

Add man pages.
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-02-18 16:51:17 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=33b886908000eabd21edcdd855564279aab3bfcd

commit 33b886908000eabd21edcdd855564279aab3bfcd
Author:     Ruslan Makhmatkhanov <rm@FreeBSD.org>
AuthorDate: 2024-02-18 16:50:16 +0000
Commit:     Ruslan Makhmatkhanov <rm@FreeBSD.org>
CommitDate: 2024-02-18 16:50:16 +0000

    www/py-flask-wtf: update to 1.2.1

    - change portname to match upstream
    - add conditional dependency on email-validator (default on)

    PR:             275938
    Submitted by:   Alastair Hogge <agh@riseup.net> (based on)

 www/py-flask-wtf/Makefile | 21 ++++++++++-----------
 www/py-flask-wtf/distinfo |  6 +++---
 2 files changed, 13 insertions(+), 14 deletions(-)
Comment 3 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2024-02-18 17:03:27 UTC
Alastair, skipped DOCS changes for now, because it adds complexity that I can't handle at the moment. I'll think how to do that better in spare time. Right now there is urgent need to just update the port to make it work with current flask. 

I also skipped github transition change to keep things simple. `make test` works just fine now. 

Thank you for your patch and suggested changes! It is a great work!
Comment 4 Alastair Hogge 2024-02-18 22:17:44 UTC
Thanks, Ruslan.