diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index c8d4197..8a04f77 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -47,7 +47,6 @@ jobs: # NOTE: put your own distribution build steps here. python -m pip install build export SETUPTOOLS_SCM_PRETEND_VERSION=${GITHUB_REF_NAME} - export SETUPTOOLS_SCM_DEBUG=1 python -m build --sdist --wheel ./ - name: Upload distributions diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..4f31980 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,4 @@ +# Ensure the sdist doesn't get unnecessary build files. +recursive-exclude javascript * +recursive-exclude screenshots * +recursive-exclude .github * diff --git a/pyproject.toml b/pyproject.toml index ae6ed1e..f545101 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -73,10 +73,12 @@ module = [ ] ignore_missing_imports = true +[tool.setuptools] +include-package-data = false + [tool.setuptools.packages.find] include = ["simple_repository_browser", "simple_repository_browser.*"] namespaces = false [tool.setuptools.package-data] -# Static untracked files -"*" = ["static/vendored/*"] +"*" = ["static/**/*", "templates/**/*"]