From 00f57dcd32f825ff8276bd577eae8be90639a030 Mon Sep 17 00:00:00 2001 From: Zac Bowling Date: Mon, 29 Jul 2024 21:03:53 -0700 Subject: [PATCH] [pypi] fix pdm backend version --- .github/workflows/release.yml | 10 +++++++--- pyproject.toml | 7 +++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ba15095..a60afab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index a4ca2d6..fa09b94 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" @@ -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" @@ -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"]