Skip to content

Commit

Permalink
fix testpypi publishing of prerelease versions
Browse files Browse the repository at this point in the history
  • Loading branch information
palotasb committed Mar 26, 2024
1 parent 0fb4224 commit f31480c
Show file tree
Hide file tree
Showing 8 changed files with 389 additions and 30 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # all
fetch-tags: true
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -19,6 +22,7 @@ jobs:
- name: Build a binary wheel and a source tarball
run: |
. .venv/bin/activate
export SETUPTOOLS_SCM_PRETEND_VERSION="$(hatch version | python -c 'import sys, re; v=sys.stdin.read().strip(); print(re.sub(r"^([^+]*)\+?.*$", r"\1", v))')"
boldi dev package
- name: Store the distribution packages
uses: actions/upload-artifact@v4
Expand Down
393 changes: 384 additions & 9 deletions pdm.lock

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions pkg/boldi-cli/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,3 @@ version-file = "boldi/_cli_version.py"
[tool.hatch.version]
source = "vcs"
raw-options = { "root" = "../.." }

[tool.pdm]

[tool.pdm.dev-dependencies]
4 changes: 0 additions & 4 deletions pkg/boldi-ctx/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,3 @@ version-file = "boldi/_ctx_version.py"
[tool.hatch.version]
source = "vcs"
raw-options = { "root" = "../.." }

[tool.pdm]

[tool.pdm.dev-dependencies]
4 changes: 0 additions & 4 deletions pkg/boldi-dev/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,3 @@ version-file = "boldi/_dev_version.py"
[tool.hatch.version]
source = "vcs"
raw-options = { "root" = "../.." }

[tool.pdm]

[tool.pdm.dev-dependencies]
4 changes: 0 additions & 4 deletions pkg/boldi-plugins/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,3 @@ version-file = "boldi/_plugins_version.py"
[tool.hatch.version]
source = "vcs"
raw-options = { "root" = "../.." }

[tool.pdm]

[tool.pdm.dev-dependencies]
4 changes: 0 additions & 4 deletions pkg/boldi/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,3 @@ version-file = "boldi/_version.py"
[tool.hatch.version]
source = "vcs"
raw-options = { "root" = "../.." }

[tool.pdm]

[tool.pdm.dev-dependencies]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ dynamic = ["version"]
# this just includes the real packages (boldi, boldi-cli, etc.) as dev-dependencies,
# and those packages can include real dependencies, including on each other.
dependencies = []
optional-dependencies = {}

[build-system]
requires = ["hatchling", "hatch-vcs"]
Expand Down Expand Up @@ -41,6 +40,7 @@ dev = [
"mkdocstrings[python]",
# building and packaging:
"pdm",
"hatch",
"hatchling",
"hatch-vcs",
"build",
Expand Down

0 comments on commit f31480c

Please sign in to comment.