Thanks Jeremy, I will check those out. I thought that maybe there was a
simple flag I could pass in to python -m build that would allow me to
override a value in setup.cfg, but I should probably read through
PEP517/PEP518 in full to get a better overview of this process.

>
>
> From: Jeremy Stanley <fu...@yuggoth.org>
> Date: Tue, Feb 9, 2021 at 3:26 PM
> Subject: [Distutils] Re: Building Pre-releases with setup.cfg
> To: <distutils-sig@python.org>
>
>
> On 2021-02-09 09:48:31 -0500 (-0500), Matthew Gilbert wrote:
> > I'm wondering if it is possibly to build pre-release tags using only a
> > setup.cfg file? From
> >
> https://setuptools.readthedocs.io/en/latest/userguide/distribution.html#tagging-and-daily-build-or-snapshot-releases
> > it seems like this is possible via setup.py, but I was unable to find
> > anything related to setup.cfg.
> [...]
> > Possibly this can be configured using the --config-setting flag but I
> have
> > been unable to get this to work or find any documentation on it. Ideally
> I
> > would be able to pass a string so I can build a dev version for testing
> > uploads to Test PyPI, e.g. "0.0.1devHASH"
> [...]
>
> I'm probably misunderstanding your question, but typically I've seen
> something like PBR or Setuptools-SCM used to automatically calculate
> the version at dist build time (including inferring something based
> on the number of commits on the branch since the last tag, embedding
> abbreviated Git commit IDs, or whatever).
> --
> Jeremy Stanley
> --
> Distutils-SIG mailing list -- distutils-sig@python.org
> To unsubscribe send an email to distutils-sig-le...@python.org
> https://mail.python.org/mailman3/lists/distutils-sig.python.org/
> Message archived at
> https://mail.python.org/archives/list/distutils-sig@python.org/message/PUASLWVRUZOC37VOKKP2AZFYGHFNQDY2/
>
--
Distutils-SIG mailing list -- distutils-sig@python.org
To unsubscribe send an email to distutils-sig-le...@python.org
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at 
https://mail.python.org/archives/list/distutils-sig@python.org/message/UJ4CCIOJ4SKTN3Z45DDCRBCMKAJBVLDR/

Reply via email to