Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pyproject.toml to version tagger #429

Open
bcl opened this issue Nov 1, 2022 · 3 comments
Open

Add pyproject.toml to version tagger #429

bcl opened this issue Nov 1, 2022 · 3 comments
Labels
effort/medium Can be done in 1-2 days gain/medium Affects multiple users RFE This issue is a Request For Enhancement (Feature)

Comments

@bcl
Copy link
Contributor

bcl commented Nov 1, 2022

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
Copy link
Member

FrostyX commented Nov 2, 2022

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
Copy link
Member

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
Copy link
Member

@FrostyX FrostyX added the RFE This issue is a Request For Enhancement (Feature) label Sep 27, 2023
@FrostyX FrostyX added effort/medium Can be done in 1-2 days gain/medium Affects multiple users labels Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/medium Can be done in 1-2 days gain/medium Affects multiple users RFE This issue is a Request For Enhancement (Feature)
Projects
None yet
Development

No branches or pull requests

3 participants