Bug 275931 - textproc/py-wtforms: Update to 3.1.2
Summary: textproc/py-wtforms: Update to 3.1.2
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: Ruslan Makhmatkhanov
URL: https://github.com/wtforms/wtforms/co...
Keywords:
Depends on: 275791
Blocks:
  Show dependency treegraph
 
Reported: 2023-12-25 15:06 UTC by Alastair Hogge
Modified: 2024-01-13 13:16 UTC (History)
1 user (show)

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


Attachments
Update to 3.1.1 (5.10 KB, patch)
2023-12-25 15:06 UTC, Alastair Hogge
no flags Details | Diff
Update to 3.1.2 (5.17 KB, patch)
2024-01-11 13:25 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-25 15:06:18 UTC
Created attachment 247246 [details]
Update to 3.1.1

Update to 3.1.1:
https://github.com/wtforms/wtforms/compare/2.1...3.1.1

- Use ${DISTVERSION} over ${PORTVERSION}
- ${DISTNAME} is no longer needed
- Switch to Python PEP517 build
- Add EMAIL option for email validation in forms
- Build and install wtforms(1) man page (depends on Sphinx)
- Configure ${DOCS} build to use Sphinx for generating extensive
  project documentation
- Switch to py-tox for do-test
Comment 1 Alastair Hogge 2023-12-25 15:14:14 UTC
The Sphinx documentation requires WTForms be available for generating the man page, and HTML. I am not sure on the correct method to solve that, here I used pip to install the do-build generated .whl, and pass a configured ${PYTHONPATH} containing the location (${INSTALL_WRKSRC}) of the installed wheel. I was unable to pass this via gmake, so sphinx-build is called directly.

I only tested the patch with Python-3.9, all tests passed.

poudriere-testport:
12.4-{amd64,i386}-release: OK
13.2-{amd64,i386}-release: OK
14.0-{amd64,i386}-release: OK
main-{amd64,i386}        : OK

Thanks.
Comment 2 Alastair Hogge 2024-01-11 13:25:50 UTC
Created attachment 247593 [details]
Update to 3.1.2

Update to 3.1.2
Comment 3 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2024-01-13 13:15:01 UTC
It's a terrific patch! Thank you Alastair. Committed.
Comment 4 commit-hook freebsd_committer freebsd_triage 2024-01-13 13:15:15 UTC
A commit in branch main references this bug:

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

commit a1029fb59eaa74d12d371622883ee0c821db4be2
Author:     Ruslan Makhmatkhanov <rm@FreeBSD.org>
AuthorDate: 2024-01-13 13:12:24 +0000
Commit:     Ruslan Makhmatkhanov <rm@FreeBSD.org>
CommitDate: 2024-01-13 13:12:24 +0000

    textproc/py-wtforms: update to 3.1.2

    - Use ${DISTVERSION} over ${PORTVERSION}
    - ${DISTNAME} is no longer needed
    - Switch to Python PEP517 build
    - Add EMAIL option for email validation in forms
    - Build and install wtforms(1) man page (depends on Sphinx)
    - Configure ${DOCS} build to use Sphinx for generating extensive
      project documentation
    - Switch to py-tox for do-test

    Changes:
    https://github.com/wtforms/wtforms/blob/master/CHANGES.rst

    PR:             275931
    Submitted by:   Alastair Hogge <agh@riseup.net>

 textproc/py-wtforms/Makefile | 68 ++++++++++++++++++++++++++++++++++----------
 textproc/py-wtforms/distinfo |  5 ++--
 2 files changed, 56 insertions(+), 17 deletions(-)