wger: bumped to flexible routines, many changes, luckily easy update

This commit is contained in:
eyjhb 2025-04-01 22:09:57 +02:00
parent fd98cfb6d0
commit 9a87a9e132
Signed by: eyjhb
GPG key ID: 609F508E3239F920
2 changed files with 11 additions and 13 deletions

View file

@ -9,16 +9,16 @@
let let
frontend = callPackage ./frontend.nix {}; frontend = callPackage ./frontend.nix {};
in python3.pkgs.buildPythonPackage rec { in python3.pkgs.buildPythonPackage {
pname = "wger"; pname = "wger";
version = "unstable-2025-02-28"; version = "unstable-2025-04-01";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "wger-project"; owner = "wger-project";
repo = "wger"; repo = "wger";
rev = "b01923bf0d581859e0c31a44332b8670c6e48b60"; rev = "5ead83583acb5faeae3fa1b9b8bcbc5b1a5fc9df";
hash = "sha256-3l3B3UBQJ45wCHPjAsyG1/V79W03q6Fl2Mwb3R23enQ="; hash = "sha256-c+NYQiqUOAJNWgOFJFrDozeB6apOUidoA/l+cBC8IHs=";
}; };
build-system = [ build-system = [

View file

@ -1,24 +1,22 @@
diff --git a/pyproject.toml b/pyproject.toml diff --git a/pyproject.toml b/pyproject.toml
index f10460b1e..62377bd9c 100644 index 354f492f6..7163c4ffe 100644
--- a/pyproject.toml --- a/pyproject.toml
+++ b/pyproject.toml +++ b/pyproject.toml
@@ -35,7 +35,8 @@ Issues = "https://github.com/wger-project/wger/issues" @@ -37,6 +37,8 @@ Changelog = "https://wger.readthedocs.io/en/latest/changelog.html"
Changelog = "https://wger.readthedocs.io/en/latest/changelog.html"
[project.scripts] [project.scripts]
-wger = "wger.__main__:main" wger = "wger.__main__:main"
+wger = "wger.tasks:main"
+manage = "wger.manage:main" +manage = "wger.manage:main"
+
[tool.setuptools] [tool.setuptools]
include-package-data = false include-package-data = false
@@ -47,6 +48,9 @@ dependencies = { file = ["requirements.txt"] } @@ -53,6 +55,8 @@ universal = 1
[tool.distutils.bdist_wheel] # path = "wger/__init__.py"
universal = 1 # expression = "get_version()"
+[tool.hatch.build.targets.wheel.force-include] +[tool.hatch.build.targets.wheel.force-include]
+"wger/settings_global.py" = "wger/settings_global.py" +"wger/settings_global.py" = "wger/settings_global.py"
+
[tool.ruff] [tool.ruff]
# Exclude a variety of commonly ignored directories. # Exclude a variety of commonly ignored directories.