Bug 275938 - www/py-flask-wtf: Update to 1.2.1
Summary: www/py-flask-wtf: Update to 1.2.1
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Ruslan Makhmatkhanov
URL: https://github.com/wtforms/flask-wtf/...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-26 04:07 UTC by Alastair Hogge
Modified: 2024-04-07 03:25 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (rm)


Attachments
Update to 1.2.1 (4.65 KB, patch)
2023-12-26 04:07 UTC, Alastair Hogge
no flags Details | Diff
Update to 1.2.1 (5.15 KB, patch)
2024-01-23 02:15 UTC, Alastair Hogge
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.