Re: Building Pre-releases with setup.cfg
Matthew Gilbert <[email protected]> Tue, 9 Feb 2021 19:31:48 -0500
| Newsgroups | gmane.comp.python.distutils.devel |
|---|---|
| Message-ID | <CAO4kqeXyyccm861h7fcCWW+gqPgcQE22t=GpoTJwdxgmWNCEXQ@mail.gmail.com> |
--===============1564802105786596623== Content-Type: multipart/alternative; boundary="00000000000003d30305baf0882c" --00000000000003d30305baf0882c Content-Type: text/plain; charset="UTF-8" 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 <[email protected]> > Date: Tue, Feb 9, 2021 at 3:26 PM > Subject: [Distutils] Re: Building Pre-releases with setup.cfg > To: <[email protected]> > > > 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 -- [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/PUASLWVRUZOC37VOKKP2AZFYGHFNQDY2/ > --00000000000003d30305baf0882c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Thanks Jeremy, I will check those out. I thought that mayb= e there was a simple flag I could pass in to python -m build that would all= ow 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.</div><div d= ir=3D"ltr"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" sty= le=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddi= ng-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_quote"><div dir=3D"ltr" c= lass=3D"gmail_attr"><br><br>From: <strong class=3D"gmail_sendername" dir=3D= "auto">Jeremy Stanley</strong> <span dir=3D"auto"><<a href=3D"mailto:fun= [email protected]" target=3D"_blank">[email protected]</a>></span><br>Date:= Tue, Feb 9, 2021 at 3:26 PM<br>Subject: [Distutils] Re: Building Pre-relea= ses with setup.cfg<br>To: <<a href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a>><br></div><br><br>On 2021= -02-09 09:48:31 -0500 (-0500), Matthew Gilbert wrote:<br> > I'm wondering if it is possibly to build pre-release tags using on= ly a<br> > setup.cfg file? From<br> > <a href=3D"https://setuptools.readthedocs.io/en/latest/userguide/distr= ibution.html#tagging-and-daily-build-or-snapshot-releases" rel=3D"noreferre= r" target=3D"_blank">https://setuptools.readthedocs.io/en/latest/userguide/= distribution.html#tagging-and-daily-build-or-snapshot-releases</a><br> > it seems like this is possible via setup.py, but I was unable to find<= br> > anything related to setup.cfg.<br> [...]<br> > Possibly this can be configured using the --config-setting flag but I = have<br> > been unable to get this to work or find any documentation on it. Ideal= ly I<br> > would be able to pass a string so I can build a dev version for testin= g<br> > uploads to Test PyPI, e.g. "0.0.1devHASH"<br> [...]<br> <br> I'm probably misunderstanding your question, but typically I've see= n<br> something like PBR or Setuptools-SCM used to automatically calculate<br> the version at dist build time (including inferring something based<br> on the number of commits on the branch since the last tag, embedding<br> abbreviated Git commit IDs, or whatever).<br> -- <br> Jeremy Stanley<br> --<br> Distutils-SIG mailing list -- <a href=3D"mailto:[email protected]" t= arget=3D"_blank">[email protected]</a><br> To unsubscribe send an email to <a href=3D"mailto:distutils-sig-leave@pytho= n.org" target=3D"_blank">[email protected]</a><br> <a href=3D"https://mail.python.org/mailman3/lists/distutils-sig.python.org/= " rel=3D"noreferrer" target=3D"_blank">https://mail.python.org/mailman3/lis= ts/distutils-sig.python.org/</a><br> Message archived at <a href=3D"https://mail.python.org/archives/list/distut= [email protected]/message/PUASLWVRUZOC37VOKKP2AZFYGHFNQDY2/" rel=3D"norefe= rrer" target=3D"_blank">https://mail.python.org/archives/list/distutils-sig= @python.org/message/PUASLWVRUZOC37VOKKP2AZFYGHFNQDY2/</a><br> </div></div> </blockquote></div></div> --00000000000003d30305baf0882c-- --===============1564802105786596623== 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/UJ4CCIOJ4SKTN3Z45DDCRBCMKAJBVLDR/ --===============1564802105786596623==--