googleapis / googleapis/release-please

How to update version in the __init__.py when releasing next to updating pyproject.toml?

Open
#1,741 8 comments 0 reactions 1 assignee Claimed by @chingor13 View on GitHub
priority: p3 type: question
Dominant language
TypeScript
Stars
7.5k
Forks
588
Avg merge
12h 16m
Merged PRs (30d)
7

Description

Currently i am releasing a python project with a pyproject.toml.

```
[tool.poetry]
version = "0.0.1"
```

Is it possible to also reflect that release number in the __init__.py so people can check what version they are using?

I tried to put a placeholder in the format:

```
file: __init__.py inside my package
__version__ = "0.0.0"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.