Skip to content

Commit

Permalink
[pypi] fix pdm backend version
Browse files Browse the repository at this point in the history
  • Loading branch information
zbowling committed Jul 30, 2024
1 parent f9dc651 commit 00f57dc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ jobs:
with:
python-version: "3.9"

- name: Setup pdm
uses: pdm-project/setup-pdm@v3
with:
python-version: "3.9"
cache: true

- name: Build package
run: |
pip install build
python -m build
run: pdm build

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ authors = [
maintainers = [
{name = "Modular Inc", email = "hello@modular.com"}
]
description = "Stacked PRs for GitHub."
description = "Stacked PR CLI for Github"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.9"
Expand All @@ -24,6 +24,7 @@ classifiers = [
]
# Version is dynamically set by pdm by the SCM version
dynamic = ["version"]
dependencies = []

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

[tool.pdm]
distribution = true

[tool.pdm.version]
source = "scm"
fallback_version = "0.0.0"
fallback_version = "0.1.0"

[tool.pixi.project]
channels = ["conda-forge"]
Expand Down

0 comments on commit 00f57dc

Please sign in to comment.