mirror of
https://github.com/simple-login/app.git
synced 2024-11-13 07:31:12 +01:00
Fix hatchling packaging (#2169)
This commit is contained in:
parent
08a64f0fa6
commit
02a0f7bf98
2 changed files with 3 additions and 9 deletions
|
@ -29,9 +29,6 @@ RUN apt-get update \
|
|||
&& chmod +x rye \
|
||||
&& mv rye /usr/bin/rye \
|
||||
&& 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 \
|
||||
&& apt-get autoremove -y \
|
||||
&& 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"
|
||||
repository = "https://github.com/simple-login/app"
|
||||
keywords = ["email", "alias", "privacy", "oauth2", "openid"]
|
||||
packages = [
|
||||
{ include = "app/" },
|
||||
{ include = "migrations/" },
|
||||
]
|
||||
include = ["templates/*", "templates/**/*", "local_data/*.txt"]
|
||||
|
||||
requires-python = "~=3.10"
|
||||
|
||||
|
@ -138,5 +133,7 @@ build-backend = "hatchling.build"
|
|||
[tool.hatch.metadata]
|
||||
allow-direct-references = true
|
||||
|
||||
[tool.hatch.build.targets.sdist]
|
||||
include = ["templates", "local_data", "app", "migrations"]
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["src/tmp"]
|
||||
packages = ["app", "migrations", "templates", "local_data" ]
|
||||
|
|
Loading…
Reference in a new issue