-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
area/cliRelated to the command lineRelated to the command linekind/featureFeature requests/implementationsFeature requests/implementations
Description
$ poetry version 0.1.1
Bumping version from 0.1.0 to 0.1.1
$ grep version pyproject.toml
version = "0.1.1"
$ grep version */__init__.py
src/__init__.py:__version__ = '0.1.0'
$ poetry --version
Poetry 0.9.0
I don't know if it's intended or not. A way to do that safely is to parse the root __init__.py, detect __version__, back it up, extract the ast, bump the version string and replace it, then extract the new ast and compare the result. If both ast are the same, except for the version, the file semantics have been preserved. Otherwise, rollback the change and display an error message stating we can't bump the version safely.
patarapolw, malinoff, GPMueller, ironhouzi, holgi and 45 more
Metadata
Metadata
Assignees
Labels
area/cliRelated to the command lineRelated to the command linekind/featureFeature requests/implementationsFeature requests/implementations