File tree Expand file tree Collapse file tree
.github/workflows/actions/python-poetry
{{cookiecutter.project_name}} Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 run : |
1717 python3 -m pip install \
1818 "poetry==${{ inputs.poetry_version }}.*" \
19- "poetry-dynamic-versioning<=0.17.1 "
19+ "poetry-dynamic-versioning"
2020 python3 -m pip install --upgrade requests
2121
2222 - name : 🐍 Set up Python
3535 run : |
3636 poetry install
3737 poetry lock --check
38+ [ "$(poetry version -s)" != "0.0.0" ] \
39+ || { echo "Versioning broken"; exit 1; }
3840
3941 - name : 🪝 Cache pre-commit hooks
4042 uses : actions/cache@v3
Original file line number Diff line number Diff line change 1+ from .__version__ import __version__ as version
2+
3+ __all__ = ["version" ]
Original file line number Diff line number Diff line change 1+ __version__ = "0.0.0"
Original file line number Diff line number Diff line change 11[build-system ]
22requires = [" poetry-core>=1.2.0" , " poetry-dynamic-versioning" ]
3- build-backend = " poetry.core.masonry.api "
3+ build-backend = " poetry_dynamic_versioning.backend "
44
55[tool .poetry ]
66name = " cookie-python"
7- version = " 0.1.2-post.141+d24fca9 "
7+ version = " 0.0.0 "
88description = " "
99license = " MIT"
1010authors = [" Stephen Kent <smkent@smkent.net>" ]
@@ -55,7 +55,7 @@ new-cookie = "cookie_python.new:main"
5555manage-cookie = " cookie_python.manage.main:main"
5656
5757[tool .poetry-dynamic-versioning ]
58- enable = false
58+ enable = true
5959vcs = " git"
6060style = " semver"
6161
Original file line number Diff line number Diff line change 11[build-system ]
22requires = [" poetry-core>=1.2.0" , " poetry-dynamic-versioning" ]
3- build-backend = " poetry.core.masonry.api "
3+ build-backend = " poetry_dynamic_versioning.backend "
44
55[tool .poetry ]
66name = " {{ cookiecutter.project_name }}"
You can’t perform that action at this time.
0 commit comments