Bug 275931

Summary: textproc/py-wtforms: Update to 3.1.2
Product: Ports & Packages Reporter: Alastair Hogge <agh>
Component: Individual Port(s)Assignee: Ruslan Makhmatkhanov <rm>
Status: Closed FIXED    
Severity: Affects Only Me CC: agh
Priority: --- Flags: bugzilla: maintainer-feedback? (rm)
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/wtforms/wtforms/compare/2.1...3.1.2
Bug Depends on: 275791    
Bug Blocks:    
Attachments:
Description Flags
Update to 3.1.1
none
Update to 3.1.2 none

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(-)