Skip to content

Commit 1ac09a4

Browse files
authored
[pypi] fix pdm backend version (#9)
1 parent f9dc651 commit 1ac09a4

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ jobs:
2222
with:
2323
python-version: "3.9"
2424

25+
- name: Setup pdm
26+
uses: pdm-project/setup-pdm@v3
27+
with:
28+
python-version: "3.9"
29+
cache: true
30+
2531
- name: Build package
26-
run: |
27-
pip install build
28-
python -m build
32+
run: pdm build
2933

3034
- name: Publish package distributions to PyPI
3135
uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = [
1010
maintainers = [
1111
{name = "Modular Inc", email = "[email protected]"}
1212
]
13-
description = "Stacked PRs for GitHub."
13+
description = "Stacked PR CLI for Github"
1414
readme = "README.md"
1515
license = { file = "LICENSE" }
1616
requires-python = ">=3.9"
@@ -24,6 +24,7 @@ classifiers = [
2424
]
2525
# Version is dynamically set by pdm by the SCM version
2626
dynamic = ["version"]
27+
dependencies = []
2728

2829
[project.urls]
2930
Homepage = "https://github.com/modularml/stack-pr"
@@ -35,8 +36,10 @@ stack-pr = "stack_pr.cli:main"
3536

3637
[tool.pdm]
3738
distribution = true
39+
40+
[tool.pdm.version]
3841
source = "scm"
39-
fallback_version = "0.0.0"
42+
fallback_version = "0.1.0"
4043

4144
[tool.pixi.project]
4245
channels = ["conda-forge"]

0 commit comments

Comments
 (0)