mirror of
https://github.com/simple-login/app.git
synced 2024-11-10 21:27:10 +01:00
Fix hatchling packaging (#2169)
This commit is contained in:
parent
08a64f0fa6
commit
02a0f7bf98
@ -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\
|
||||||
|
@ -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" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user