Re: setuptools_scm build requirement

2022-10-03 Thread Miro Hrončok
On 03. 10. 22 22:50, Sandro wrote: I'm still using setuptools_scm[toml] as a build requirement: https://github.com/penguinpee/PyMunin3/commit/8f22eec3409711d4b7a5a5a0787859c4fd9e5120 Good. In you second link it looks like they removed it. But I think it's the other way around... They act

Re: setuptools_scm build requirement

2022-10-03 Thread Sandro
On 03-10-2022 13:29, Miro Hrončok wrote: On 03. 10. 22 12:55, Sandro wrote: Regarding availability for el9, I didn't know (where to look). I looked on src.fp.o: https://src.fedoraproject.org/rpms/python-setuptools_scm There's an ancient version for el7, but nothing for el8 or el9. That will

Re: setuptools_scm build requirement

2022-10-03 Thread Sandro
On 03-10-2022 19:41, Miro Hrončok wrote: On 03. 10. 22 13:30, Sandro wrote: I was following the instructions in the project's README: https://github.com/pypa/setuptools_scm#pyprojecttoml-usage It's all lies and snake oil. Upstream lists the requirement of the recent enough version in their

pyproject-rpm-macros 1.4.0: support for hatchling %license files and less confusing %pyproject_check_import

2022-10-03 Thread Miro Hrončok
Hello Pythonistas. We have released a new version of pyproject-rpm-macros 1.4.0. The version is available in Rawhide and ELN, and updates are ready for all older Fedora releases. https://bodhi.fedoraproject.org/updates/?packages=pyproject-rpm-macros CentOS 9 Stream update is planned as well.

Re: setuptools_scm build requirement

2022-10-03 Thread Miro Hrončok
On 03. 10. 22 13:30, Sandro wrote: I was following the instructions in the project's README: https://github.com/pypa/setuptools_scm#pyprojecttoml-usage It's all lies and snake oil. Upstream lists the requirement of the recent enough version in their documentation, because the users are read

Re: setuptools_scm build requirement

2022-10-03 Thread Sandro
On 03-10-2022 12:55, Sandro wrote: On 03-10-2022 12:14, Miro Hrončok wrote: On 02. 10. 22 12:10, Sandro wrote: [setuptools_scm] is currently not available for el9... But it is. It' part of the RHEL 9 CRB repository. However, also version 6.0.1. Why do you require >= 6.2 exactly? I was follo

Re: setuptools_scm build requirement

2022-10-03 Thread Miro Hrončok
On 03. 10. 22 12:55, Sandro wrote: Regarding availability for el9, I didn't know (where to look). I looked on src.fp.o: https://src.fedoraproject.org/rpms/python-setuptools_scm There's an ancient version for el7, but nothing for el8 or el9. That will only help with EPEL packages. To see al

Re: setuptools_scm build requirement

2022-10-03 Thread Sandro
On 03-10-2022 12:14, Miro Hrončok wrote: On 02. 10. 22 12:10, Sandro wrote: [setuptools_scm] is currently not available for el9... But it is. It' part of the RHEL 9 CRB repository. However, also version 6.0.1. Why do you require >= 6.2 exactly? I was following the instructions in the project

Re: setuptools_scm build requirement

2022-10-03 Thread Miro Hrončok
On 02. 10. 22 12:10, Sandro wrote: [setuptools_scm] is currently not available for el9... But it is. It' part of the RHEL 9 CRB repository. However, also version 6.0.1. Why do you require >= 6.2 exactly? Yet, thinking about the whole thing, all setuptools_scm does is calculate the version o

Re: setuptools_scm build requirement

2022-10-03 Thread Lumír Balhar
Hi Sandro. You are right that without information from git repository (git tags), we cannot really use the full potential of setuptools_scm during the RPM build process. AFAIK the most popular way how to bypass the setuptools_scm mechanism is to use SETUPTOOLS_SCM_PRETEND_VERSION env variable