From 02a0f7bf982dcd0ba3682929bbd39c594e58584c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Casaj=C3=BAs?= Date: Mon, 29 Jul 2024 16:49:06 +0200 Subject: [PATCH] Fix hatchling packaging (#2169) --- Dockerfile | 3 --- pyproject.toml | 9 +++------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index a41069f1..ff56c7c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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\ diff --git a/pyproject.toml b/pyproject.toml index accd7e29..45f974b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" ]