Skip to content

Commit

Permalink
build: remove the tfpwa dependency explicitly, as it's not on pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-eschle committed Nov 7, 2024
1 parent ca66930 commit 9b33e3b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
run: |
which python
python -V
uv pip install -e ".[dev]"
uv pip install -e ".[dev]" tfpwa@git+https://github.com/jiangyi15/tf-pwa
uv pip install zfit@git+https://github.com/zfit/zfit
- name: Test with pytest
run: |
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ dynamic = ["version"]

[project.optional-dependencies]

tfpwa = ["tfpwa@git+https://github.com/jiangyi15/tf-pwa"]
compwa = [
"qrules",
"ampform",
Expand All @@ -46,7 +45,7 @@ compwa = [
pyhf = [
"pyhf",
]
all = ["zfit-physics[tfpwa,pyhf,compwa]"]
all = ["zfit-physics[pyhf,compwa]"]
test = [
"pytest",
"pytest-cov",
Expand Down
4 changes: 4 additions & 0 deletions src/zfit_physics/tfpwa/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
try:
import tf_pwa
except ImportError:
raise ImportError("tf-pwa is required to use zfit-physics-tfpwa. This can currently only be installed from source, i.e. via `pip install git+https://github.com/jiangyi15/tf-pwa`")
from . import loss, variables

__all__ = ["loss", "variables"]

0 comments on commit 9b33e3b

Please sign in to comment.