Fix hatchling packaging (#2169)

This commit is contained in:
Adrià Casajús 2024-07-29 16:49:06 +02:00 committed by GitHub
parent 08a64f0fa6
commit 02a0f7bf98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 9 deletions

View File

@ -29,9 +29,6 @@ RUN apt-get update \
&& chmod +x rye \ && chmod +x rye \
&& mv rye /usr/bin/rye \ && mv rye /usr/bin/rye \
&& rye toolchain fetch `cat .python-version` \ && rye toolchain fetch `cat .python-version` \
&& printf '[behavior]\nuse-uv=false\n' > /root/.rye/config.toml \
&& echo 'setuptools<72' > /code/constraints.txt \
&& export PIP_CONSTRAINT=/code/constraints.txt \
&& rye sync --no-lock --no-dev \ && rye sync --no-lock --no-dev \
&& apt-get autoremove -y \ && apt-get autoremove -y \
&& apt-get purge -y curl netcat-traditional build-essential pkg-config cmake ninja-build python3-dev clang\ && apt-get purge -y curl netcat-traditional build-essential pkg-config cmake ninja-build python3-dev clang\

View File

@ -6,11 +6,6 @@ authors = [ {name="SimpleLogin", email="dev@simplelogin.io"}]
license = "MIT" license = "MIT"
repository = "https://github.com/simple-login/app" repository = "https://github.com/simple-login/app"
keywords = ["email", "alias", "privacy", "oauth2", "openid"] keywords = ["email", "alias", "privacy", "oauth2", "openid"]
packages = [
{ include = "app/" },
{ include = "migrations/" },
]
include = ["templates/*", "templates/**/*", "local_data/*.txt"]
requires-python = "~=3.10" requires-python = "~=3.10"
@ -138,5 +133,7 @@ build-backend = "hatchling.build"
[tool.hatch.metadata] [tool.hatch.metadata]
allow-direct-references = true allow-direct-references = true
[tool.hatch.build.targets.sdist]
include = ["templates", "local_data", "app", "migrations"]
[tool.hatch.build.targets.wheel] [tool.hatch.build.targets.wheel]
packages = ["src/tmp"] packages = ["app", "migrations", "templates", "local_data" ]