Skip to content

Commit d73dfc1

Browse files
authored
Merge pull request #11 from simple-repository/feature/static-files-at-runtime
Force the version to be the tag, on release.
2 parents 52f9f20 + 9f7c9da commit d73dfc1

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.github/workflows/python-publish.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v4
24-
with:
25-
fetch-depth: 0
26-
fetch-tags: true
2724

2825
- uses: actions/setup-node@v4
2926
with:
@@ -49,7 +46,9 @@ jobs:
4946
run: |
5047
# NOTE: put your own distribution build steps here.
5148
python -m pip install build
52-
python -m build
49+
export SETUPTOOLS_SCM_PRETEND_VERSION=${GITHUB_REF}
50+
export SETUPTOOLS_SCM_DEBUG=1
51+
python -m build --sdist --wheel ./
5352
5453
- name: Upload distributions
5554
uses: actions/upload-artifact@v4

pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ name = "simple-repository-browser"
77
dynamic = ["version"]
88
description = "A web interface to browse and search packages in any simple package repository (PEP-503), inspired by PyPI / warehouse"
99
requires-python = ">=3.11"
10-
classifiers = [
11-
"License :: OSI Approved :: MIT License",
12-
"Operating System :: OS Independent",
13-
"Programming Language :: Python :: 3",
14-
]
1510
authors = [
1611
{name = "Phil Elson"},
1712
{name = "Francesco Iannaccone"},

0 commit comments

Comments
 (0)