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!)
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.
Created attachment 249211 [details] pep157 build, license file - Define license file
Hello, Could you test pep517 patch? Thanks
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
Created attachment 249222 [details] Final - Add shebangfix
Hello, Please confirm if "Final" patch is correct so we can move on. Cheers
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
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(+)
Committed, thanks!