Skip to content

Commit a4a37f2

Browse files
authored
CM-22812 - Make dynamic versioning compatible with PyPI (#108)
1 parent 1ee16cd commit a4a37f2

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/pre_release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ jobs:
2525
python-version: '3.7'
2626

2727
- name: Install Poetry
28-
run: |
29-
curl -sSL https://install.python-poetry.org | python - -y
28+
run: curl -sSL https://install.python-poetry.org | python - -y
3029

3130
- name: Update PATH
3231
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ jobs:
2424
python-version: '3.7'
2525

2626
- name: Install Poetry
27-
run: |
28-
curl -sSL https://install.python-poetry.org | python - -y
27+
run: curl -sSL https://install.python-poetry.org | python - -y
2928

3029
- name: Update PATH
3130
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@ responses = ">=0.23.1,<0.24.0"
5050
# poetry self add "poetry-dynamic-versioning[plugin]"
5151
[tool.poetry-dynamic-versioning]
5252
enable = true
53+
strict = true
54+
bump = true
55+
metadata = false
5356
vcs = "git"
54-
style = "semver"
57+
style = "pep440"
5558

5659
[build-system]
5760
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]

0 commit comments

Comments
 (0)