Hello Pythonistas,

The old %py3_build and %py3_install macros (201x-era) as documented in [1] use a deprecated feature of setuptools.

It is highly recommended to use the current %pyproject macros instead as documented in [2] and [3] sooner than it becomes necessary.

To help you convert your packages from the old Python macros to the new, I wrote a tool called pyprojectize [4].

The tool is not yet packaged in Fedora, as I release new alpha releases too often. It is however installable via pip/uv/pipx from PyPI [5].

To use the tool, run `pyprojectize python-foo.spec`. See the README or --help for further options.

The program only operates on the spec file itself, and hence has limited knowledge. The resulting spec file is not guaranteed to be buildable and manual verification and completion of the transition is strongly advised.

If you encounter problems, please report them to the issue tracker [6] or directly to me.

Happy packaging.

[1]: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_201x/
[2]: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/
[3]: https://src.fedoraproject.org/rpms/pyproject-rpm-macros/blob/rawhide/f/README.md
[4]: https://github.com/hroncok/pyprojectize
[5]: https://pypi.org/project/pyprojectize/
[6]: https://github.com/hroncok/pyprojectize/issues

--
Miro Hrončok
--
Phone: +420777974800
Fedora Matrix: mhroncok

--
_______________________________________________
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to