Building Pre-releases with setup.cfg

Matthew Gilbert <[email protected]> Tue, 9 Feb 2021 09:48:31 -0500
Newsgroups gmane.comp.python.distutils.devel
Message-ID <CAO4kqeXnD0CS8xvPG7htYwyih0rKBJPEO+1_erJ1m6Bf9zf6DQ@mail.gmail.com>
--===============7829022849917013432==
Content-Type: multipart/alternative; boundary="000000000000f52b0705bae861c5"

--000000000000f52b0705bae861c5
Content-Type: text/plain; charset="UTF-8"

Hi all,

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. An abridged version of my setup.cfg file
looks like

[metadata]
name = tester_project
version = attr: tester_project.__version__

[bdist_wheel]
universal=1

[build-system]
requires =
  setuptools >= 40.9.0
  wheel
build-backend = setuptools.build_meta

Which I was building using

$ python -m build --sdist --wheel --outdir dist

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"

Any info or references is much appreciated!

Thanks,
Matt

--000000000000f52b0705bae861c5
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi all,<div><br></div><div>I&#39;m wondering if it is poss=
ibly to build pre-release tags using only a setup.cfg file? From=C2=A0<a hr=
ef=3D"https://setuptools.readthedocs.io/en/latest/userguide/distribution.ht=
ml#tagging-and-daily-build-or-snapshot-releases">https://setuptools.readthe=
docs.io/en/latest/userguide/distribution.html#tagging-and-daily-build-or-sn=
apshot-releases</a> it seems like this is possible via setup.py, but I was =
unable to find anything related to setup.cfg. An abridged version of my set=
up.cfg file looks like<br><br></div><blockquote style=3D"margin:0 0 0 40px;=
border:none;padding:0px"><div>[metadata]</div><div>name =3D tester_project<=
/div><div>version =3D attr: tester_project.__version__</div><div><br></div>=
<div>[bdist_wheel]</div><div>universal=3D1</div><div><br></div><div>[build-=
system]</div><div>requires =3D</div><div>=C2=A0 setuptools &gt;=3D 40.9.0</=
div><div>=C2=A0 wheel</div><div>build-backend =3D setuptools.build_meta</di=
v><div><br></div></blockquote>Which I was building using<div><br></div><div=
><blockquote style=3D"margin:0 0 0 40px;border:none;padding:0px"><div>$=C2=
=A0python -m build --sdist --wheel --outdir dist</div><div><br></div></bloc=
kquote>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. Ide=
ally I would be able to pass a string so I can build a dev version for test=
ing uploads to Test PyPI, e.g. &quot;0.0.1devHASH&quot;</div><div><br></div=
><div>Any info or references is much appreciated!</div><div><br></div><div>=
Thanks,</div><div>Matt</div></div>

--000000000000f52b0705bae861c5--

--===============7829022849917013432==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--
Distutils-SIG mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at https://mail.python.org/archives/list/[email protected]/message/RAAERSK2KXOH42VRMC3IQKWVEC5OHOY3/

--===============7829022849917013432==--