Bug 277724 - devel/py-pnu-libpnu: new port
Summary: devel/py-pnu-libpnu: new port
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Nuno Teixeira
URL: https://github.com/HubTou/libpnu
Keywords:
Depends on:
Blocks: 277766
  Show dependency treegraph
 
Reported: 2024-03-15 19:25 UTC by Hubert Tournier
Modified: 2024-03-18 10:43 UTC (History)
1 user (show)

See Also:


Attachments
git format-patch for py-pnu-libpnu new port (6.38 KB, patch)
2024-03-15 19:25 UTC, Hubert Tournier
no flags Details | Diff
pep157 build (1.75 KB, patch)
2024-03-16 07:06 UTC, Nuno Teixeira
no flags Details | Diff
pep157 build, license file (1.79 KB, patch)
2024-03-16 07:09 UTC, Nuno Teixeira
no flags Details | Diff
Final (1.83 KB, patch)
2024-03-16 19:13 UTC, Nuno Teixeira
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hubert Tournier 2024-03-15 19:25:50 UTC
Created attachment 249198 [details]
git format-patch for py-pnu-libpnu new port

Hello,

This is a new port for my pnu-libpnu Python package, which is needed by my pnu-vuxml Python package, which in turn is needed by my pnu-portstreelint Python package (see the "Port tree linter" discussion on freebsd-ports ML).

I'll try to submit new ports for pnu-vuxml and pnu-portstreelint this week-end.

Best regards,

Hubert (coming back to port submission after 20 years!)
Comment 1 Nuno Teixeira freebsd_committer freebsd_triage 2024-03-16 07:06:24 UTC
Created attachment 249210 [details]
pep157 build

- Switch to pep517

NOTES:

- pypi tarball defaults man pages install into $PREFIX/man, patching setup.cfg
- pypi tarball doen not includes tests so I was unable to use pytest.
Comment 2 Nuno Teixeira freebsd_committer freebsd_triage 2024-03-16 07:09:16 UTC
Created attachment 249211 [details]
pep157 build, license file

- Define license file
Comment 3 Nuno Teixeira freebsd_committer freebsd_triage 2024-03-16 10:14:20 UTC
Hello,

Could you test pep517 patch?

Thanks
Comment 4 Hubert Tournier 2024-03-16 14:55:38 UTC
Hello Nuno,

It works for me because I made a python3 symlink to python3.9, but others would need to have the shebang fixed.

USES=		python shebangfix
USE_PYTHON=	autoplist flavors pep517
SHEBANG_FILES=	src/libpnu/*.py

Thank you, it's much simpler like this.

Didn't knew about this pep517 setting, it's not documented at all in the Porter's handbook. And the autoplist feature is said to imply distutils which didn't worked as it expects setup.py (deprecated according to setuptools documentation) instead of setup.cfg

Best regards,

Hubert
Comment 5 Nuno Teixeira freebsd_committer freebsd_triage 2024-03-16 19:13:32 UTC
Created attachment 249222 [details]
Final

- Add shebangfix
Comment 6 Nuno Teixeira freebsd_committer freebsd_triage 2024-03-16 19:14:44 UTC
Hello,

Please confirm if "Final" patch is correct so we can move on.

Cheers
Comment 7 Hubert Tournier 2024-03-17 14:16:08 UTC
Hello Nuno,

It works fine! Please commit it.

There are little differences between pip and pkg installations, but I don't think that it matters at all (no INSTALLER in the dist-info directory, missing lines for __pycache__ files in the RECORD file).

Thanks a lot for your help!

Best regards,

Hubert
Comment 8 commit-hook freebsd_committer freebsd_triage 2024-03-18 10:41:24 UTC
A commit in branch main references this bug:

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

commit 22f91cdde79a944c2381bb3020e78bd7bd1abd92
Author:     Hubert Tournier <hubert.tournier@gmail.com>
AuthorDate: 2024-03-18 10:35:25 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2024-03-18 10:35:25 +0000

    devel/py-pnu-libpnu: New port: Common utility functions for the PNU project

    - Submitter becomes maintainer

    pnu-libpnu is a Python library containing common functions for all the
    PNU project utilities. It has no known usage and usefulness beyond
    this project.

    (Dependency of upcomming Port Tree Linter port)

    PR:             277724

 devel/Makefile                                  |  1 +
 devel/py-pnu-libpnu/Makefile (new)              | 22 ++++++++++++++++++++++
 devel/py-pnu-libpnu/distinfo (new)              |  3 +++
 devel/py-pnu-libpnu/files/patch-setup.cfg (new) | 11 +++++++++++
 devel/py-pnu-libpnu/pkg-descr (new)             |  3 +++
 5 files changed, 40 insertions(+)
Comment 9 Nuno Teixeira freebsd_committer freebsd_triage 2024-03-18 10:43:14 UTC
Committed, thanks!