Wednesday, 2025-08-20

opendevreviewElod Illes proposed openstack/releases master: nova: Release 2024.1 Caracal 29.3.0  https://review.opendev.org/c/openstack/releases/+/95800905:20
opendevreviewElod Illes proposed openstack/releases master: nova: Release 2025.1 Epoxy 31.1.0  https://review.opendev.org/c/openstack/releases/+/95795105:24
*** clarkb is now known as Guest2453511:02
opendevreviewDr. Jens Harbott proposed openstack/releases master: EOL for monacsa unmaintained branches  https://review.opendev.org/c/openstack/releases/+/95807612:55
fricklergouthamr: ^^ I had a moment and just ran "new-release antelope $i eol" for all monasca repos to generate that12:57
opendevreviewAndriy Kurilin proposed openstack/releases master: Release Rally 5.0.0  https://review.opendev.org/c/openstack/releases/+/95809715:25
opendevreviewTim Burke proposed openstack/releases master: Transition unmaintained Swift branches to eol  https://review.opendev.org/c/openstack/releases/+/95810116:20
*** Guest24535 is now known as clarkb16:25
opendevreviewTim Burke proposed openstack/releases master: Transition unmaintained Swift branches to eol  https://review.opendev.org/c/openstack/releases/+/95810116:34
opendevreviewDr. Jens Harbott proposed openstack/releases master: EOL for monacsa unmaintained branches  https://review.opendev.org/c/openstack/releases/+/95807616:55
andreykurilinHi folks! Do you have any plans/thoughts regarding support for "setup.py"-free projects? I mean repos that want to switch to pyproject.toml with setuptools-scm. Any objections?18:22
clarkbthis is probably most a question of "what does PBR provide that setuptools scm does not?"18:23
clarkbyou can already use pyproject.toml with pbr. You currently need a minimal setup.py file (but its very minimal) and the plan is to eventually make that not necessary18:24
clarkbso you can already do 95% of this with the existing tools. Then if you want to drop pbr that introduces the question of what is lost.18:24
clarkbPBR records the git sha of the commit that is checked out when producing the package (I don't know of any other tools recording that info). PBR also auto generates version numbers based on the git repo state. It accounts for the most recent tag and any subsequent version bump annotations in the commit message (I think you can get automatic tag based versioning from other18:26
clarkbtools but not the automatic version bumps from previous tags)18:26
clarkbI want to say the openstack release team does currently rely on that functionality at least in some cases18:26
clarkbthen there are some more tertiary functions like automated authors file generation, minimal cli script installations (that don't use entrypoints which are slow), the wsgi script support (whcih may need to go away due to changes in setuptools I don't think we've decided if that is the case yet)18:27
clarkbfungi and stephenfin probably have more thoughts18:27
clarkbas a side note: setuptools-scm still uses a setup.py with setuptools and pyproject.yaml aiui. Its just that it may be autogenerated for you. The autogenerated setup.py doesn't work with pbr which is why we need to continue to supply a minimal version18:29
andreykurilinsetuptools-scm also relies on the tags, similar to pbr. But not sure that it can get any extra instructions from commit message. Auto generation of authors is also not supported.18:30
fungiandreykurilin: that's basically it. setuptools-scm does a lot of what pbr does, though not everything. but also the longer-term plan is to make it possible to use pbr with just a pyproject.toml file and no setup.py or setup.cfg at all18:30
fungipbr also tests with much older python and setuptools versions so that its latest versions can be used across older stable branches of projects18:30
andreykurilinJust for the context - my initial question came from desire to get rid of setup.py file completely. I managed to do it with setuptools-scm, but releases tooling disliked this :)18:31
fungibut a lot of newer packaging features will need python 3.9 or newer since the required support in setuptools didn't appear until versions that don't work with older python versions than that18:31
clarkbI guess my question would be "why?" it doesn't hurt anything to ahve it with or without setuptools-scm or pbr18:31
clarkbyou're right that it isn't always strictly necessary in all cases. But having a minimal setup.py that tells setuptools to use pbr shouldn't be a problem18:32
andreykurilinLess files - cleaner look of the repo :) not a strong argument, agree18:32
fungiandreykurilin: the pbr docs include examples of very minimal setup.py and setup.cfg files needed in conjunction with pyproject.toml for now, you can put basically everything in pyproject.toml already18:32
fungibut yes, it's acknowledged that it would be nice to be able to get rid of those completely and that's the plan, it's just that hooking into setuptools without them is complicated, especially while continuing to maintain support for very old python and setuptools at the same time18:33
fungihttps://docs.openstack.org/pbr/latest/user/using.html#pyproject-toml18:35
andreykurilinok, thank you for quick answers and your awesome job! I think I have everything to make it work for “my” repos.18:36
andreykurilinDummy setup.[cfg/py] files look simple enough, so see no problems with that18:37
clarkbright you can drive basically all of the configuration via pyproject.toml. The other bits are just there to plumb things together until there is a better way18:39

Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!