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 <>
Date: Tue, Feb 9, 2021 at 3:26 PM
Subject: [Distutils] Re: Building Pre-releases with setup.cfg
To: <>

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
> it seems like this is possible via, 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 --
To unsubscribe send an email to
Message archived at