From 77f4f3354601c1b78ca9c8dd701e6a7e780ee8e5 Mon Sep 17 00:00:00 2001 From: David Perl Date: Tue, 24 Nov 2026 15:59:20 +0100 Subject: [PATCH] fix: reference internal packages on gitea --- pyproject.toml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e0f792d..d1aabf0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,10 +13,18 @@ classifiers = [ "Topic :: Scientific/Engineering", ] dependencies = [ - "aarecommon", - "aare_config", - "aarelcinfer_client==0.1.1a8", - "jfjoch_client>=1.0.0rc166", # only pre-releases exist; the rc specifier lets pip pick them + # Workaround while the mx gitea index is not available in the BEC deployment: + # Direct references to the wheels in the mx Gitea package registry: the deployment installs + # this package with a plain `pip install -e`, which cannot be given an extra index. To update + # one, take the new file URL from https://gitea.psi.ch/api/packages/mx/pypi/simple// + "aarecommon @ https://gitea.psi.ch/api/packages/mx/pypi/files/aarecommon/0.9.2/aarecommon-0.9.2-py3-none-any.whl", + # aare_config is a compiled package, with one wheel per Python version (and the sdist for 3.11) + "aare_config @ https://gitea.psi.ch/api/packages/mx/pypi/files/aare-config/0.3.2/aare_config-0.3.2.tar.gz ; python_version < '3.12'", + "aare_config @ https://gitea.psi.ch/api/packages/mx/pypi/files/aare-config/0.3.2/aare_config-0.3.2-cp312-cp312-manylinux_2_34_x86_64.whl ; python_version == '3.12'", + "aare_config @ https://gitea.psi.ch/api/packages/mx/pypi/files/aare-config/0.3.2/aare_config-0.3.2-cp313-cp313-manylinux_2_34_x86_64.whl ; python_version == '3.13'", + "aare_config @ https://gitea.psi.ch/api/packages/mx/pypi/files/aare-config/0.3.2/aare_config-0.3.2-cp314-cp314-manylinux_2_34_x86_64.whl ; python_version >= '3.14'", + "aarelcinfer_client @ https://gitea.psi.ch/api/packages/mx/pypi/files/aarelcinfer-client/0.2.0/aarelcinfer_client-0.2.0-py3-none-any.whl", + "jfjoch_client @ https://gitea.psi.ch/api/packages/mx/pypi/files/jfjoch-client/1.0.0rc188/jfjoch_client-1.0.0rc188-py3-none-any.whl", "bec_lib>=3.130.3", "bec-server>=3.130.3", "bec-ipython-client>=3.130.3", @@ -41,12 +49,15 @@ dev = [ "pytest-mock", "pytest-asyncio", "pytest-timeout", - "pytest-bec-e2e", # fixtures which start BEC servers for the end-to-end tests + "pytest-bec-e2e", # fixtures which start BEC servers for the end-to-end tests "fakeredis[lua]", "fastapi", "uvicorn", ] +[tool.hatch.metadata] +allow-direct-references = true # for the Gitea registry wheels in the dependencies + [tool.hatch.build.targets.wheel] include = ["*"]