rpm-software-management / tito

A tool for managing rpm based git projects.
GNU General Public License v2.0
377 stars 128 forks source link

Add pyproject.toml to version tagger #429

Open bcl opened 1 year ago

bcl commented 1 year ago

Currently tito only supports updating the version in setup.py, which means that it is difficult to move a project using tito to use pyproject.toml from https://peps.python.org/pep-0621/

FrostyX commented 1 year ago

Hello @bcl, please take a look at man tito.props, the VERSION_TEMPLATE section. I think it should work for your use-case.

You can see it configured in the Tito project itself https://github.com/rpm-software-management/tito/blob/master/.tito/tito.props#L12

praiskup commented 9 months ago

Note that pyproject.toml file is a standard file, something like setup.py and templating it is quite complicated task (you most probably need to copy-paste the content and maintain both the template and the file itself).

It would be nice if tito supported this natively, similarly to the support for setup.py version bumping.

praiskup commented 9 months ago

Example: https://github.com/fedora-copr/resalloc-ibm-cloud/blob/main/pyproject.toml