Skip to content

Commit 9b306f6

Browse files
authored
Merge pull request #12 from simple-repository/feature/static-files-at-runtime
Simplify the wheel build setup
2 parents 1417136 + cd040cc commit 9b306f6

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/python-publish.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747
# NOTE: put your own distribution build steps here.
4848
python -m pip install build
4949
export SETUPTOOLS_SCM_PRETEND_VERSION=${GITHUB_REF_NAME}
50-
export SETUPTOOLS_SCM_DEBUG=1
5150
python -m build --sdist --wheel ./
5251
5352
- name: Upload distributions

MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Ensure the sdist doesn't get unnecessary build files.
2+
recursive-exclude javascript *
3+
recursive-exclude screenshots *
4+
recursive-exclude .github *

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@ module = [
7373
]
7474
ignore_missing_imports = true
7575

76+
[tool.setuptools]
77+
include-package-data = false
78+
7679
[tool.setuptools.packages.find]
7780
include = ["simple_repository_browser", "simple_repository_browser.*"]
7881
namespaces = false
7982

8083
[tool.setuptools.package-data]
81-
# Static untracked files
82-
"*" = ["static/vendored/*"]
84+
"*" = ["static/**/*", "templates/**/*"]

0 commit comments

Comments
 (0)