Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Use hatchling as the build backend, this seems to make less problems

Roland Geider2baa28f65cc6
diff --git a/extras/docker/demo/Dockerfile b/extras/docker/demo/Dockerfile
index 05f91ee57..333167bbf 100644
--- a/extras/docker/demo/Dockerfile
+++ b/extras/docker/demo/Dockerfile
@@ -89,7 +89,7 @@ RUN python3 -m venv /home/wger/venv
RUN . /home/wger/venv/bin/activate \
&& pip install --upgrade pip \
&& pip install --no-cache /wheels/* \
- && pip install . \
+ && pip install -e . \
&& wger create-settings --database-path /home/wger/db/database.sqlite \
&& wger bootstrap \
&& wger load-online-fixtures \
diff --git a/extras/docker/development/Dockerfile b/extras/docker/development/Dockerfile
index ab44d4eb0..718ad0e60 100644
--- a/extras/docker/development/Dockerfile
+++ b/extras/docker/development/Dockerfile
@@ -66,7 +66,7 @@ RUN chmod +x /home/wger/entrypoint.sh \
&& chown -R wger:wger .
USER wger
-RUN pip3 install . \
+RUN pip3 install -e . \
&& mkdir ~/media \
&& mkdir ~/static \
&& mkdir ~/beat \
diff --git a/pyproject.toml b/pyproject.toml
index 9691f8087..5feb6e80e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[build-system]
-requires = ["setuptools>=61.2"]
-build-backend = "setuptools.build_meta"
+requires = ["hatchling"]
+build-backend = "hatchling.build"
[project]
name = "wger"