Re: Bypassing setuptools_scm

2023-05-28 Thread Ben Beasley
On Sun, May 28, 2023, at 8:03 PM, Orion Poplawski wrote:
> Is there a canonical way to bypass setuptools_scm?  Sometimes one would 
> like to build from a github tarball (e.g. for test data) but then 
> setuptool_scm fails to detect a version.

Setting the environment variable SETUPTOOLS_SCM_PRETEND_VERSION should do what 
you want. This also works for packages that use hatch-vcs.

https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_source_files_from_pypi
___
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


Bypassing setuptools_scm

2023-05-28 Thread Orion Poplawski
Is there a canonical way to bypass setuptools_scm?  Sometimes one would 
like to build from a github tarball (e.g. for test data) but then 
setuptool_scm fails to detect a version.



--
Orion Poplawski
he/him/his  - surely the least important thing about me
IT Systems Manager 720-772-5637
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane   or...@nwra.com
Boulder, CO 80301 https://www.nwra.com/


smime.p7s
Description: S/MIME Cryptographic Signature
___
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