hepyy 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. hepyy-0.2.0/.github/workflows/publish.yml +54 -0
  2. hepyy-0.2.0/.gitignore +36 -0
  3. hepyy-0.2.0/LICENSE +21 -0
  4. hepyy-0.2.0/PKG-INFO +842 -0
  5. hepyy-0.2.0/README.md +811 -0
  6. hepyy-0.2.0/WORKFLOW-EXAMPLE.md +388 -0
  7. hepyy-0.2.0/demos/.jupyter/desktop-settings.json +3 -0
  8. hepyy-0.2.0/demos/.jupyter/desktop-workspaces/default-37a8.jupyterlab-workspace +1 -0
  9. hepyy-0.2.0/demos/demo_fastjet.py +60 -0
  10. hepyy-0.2.0/demos/demo_fjcontrib.ipynb +283 -0
  11. hepyy-0.2.0/demos/demo_fjcontrib.png +0 -0
  12. hepyy-0.2.0/demos/demo_fjcontrib.py +141 -0
  13. hepyy-0.2.0/demos/demo_pythia_fastjet.ipynb +254 -0
  14. hepyy-0.2.0/demos/demo_pythia_fastjet.png +0 -0
  15. hepyy-0.2.0/demos/demo_pythia_fastjet.py +98 -0
  16. hepyy-0.2.0/demos/demo_pythia_fastjet_root.ipynb +318 -0
  17. hepyy-0.2.0/demos/demo_pythia_fastjet_root.py +124 -0
  18. hepyy-0.2.0/demos/demo_pythia_fastjet_root_cppyy.py +116 -0
  19. hepyy-0.2.0/demos/demo_softdrop_splitting.ipynb +217 -0
  20. hepyy-0.2.0/pyproject.toml +49 -0
  21. hepyy-0.2.0/src/hepyy/__init__.py +89 -0
  22. hepyy-0.2.0/src/hepyy/_autoload.py +98 -0
  23. hepyy-0.2.0/src/hepyy/builder.py +436 -0
  24. hepyy-0.2.0/src/hepyy/cli.py +749 -0
  25. hepyy-0.2.0/src/hepyy/config.py +86 -0
  26. hepyy-0.2.0/src/hepyy/cppyy_fix.py +258 -0
  27. hepyy-0.2.0/src/hepyy/exceptions.py +18 -0
  28. hepyy-0.2.0/src/hepyy/kernel.py +237 -0
  29. hepyy-0.2.0/src/hepyy/loader.py +434 -0
  30. hepyy-0.2.0/src/hepyy/recipe.py +157 -0
  31. hepyy-0.2.0/src/hepyy/recipe_sources.py +163 -0
  32. hepyy-0.2.0/src/hepyy/recipes/__init__.py +0 -0
  33. hepyy-0.2.0/src/hepyy/recipes/fastjet/3.5.1.yaml +27 -0
  34. hepyy-0.2.0/src/hepyy/recipes/fjcontrib/1.102.sh +47 -0
  35. hepyy-0.2.0/src/hepyy/recipes/fjcontrib/1.102.yaml +28 -0
  36. hepyy-0.2.0/src/hepyy/recipes/hepmc3/3.3.1.yaml +17 -0
  37. hepyy-0.2.0/src/hepyy/recipes/jewel/2.2.0.sh +11 -0
  38. hepyy-0.2.0/src/hepyy/recipes/jewel/2.2.0.yaml +9 -0
  39. hepyy-0.2.0/src/hepyy/recipes/jewel/2.4.0.sh +11 -0
  40. hepyy-0.2.0/src/hepyy/recipes/jewel/2.4.0.yaml +9 -0
  41. hepyy-0.2.0/src/hepyy/recipes/lhapdf/6.5.4.sh +11 -0
  42. hepyy-0.2.0/src/hepyy/recipes/lhapdf/6.5.4.yaml +14 -0
  43. hepyy-0.2.0/src/hepyy/recipes/lhapdf/6.5.5.sh +11 -0
  44. hepyy-0.2.0/src/hepyy/recipes/lhapdf/6.5.5.yaml +14 -0
  45. hepyy-0.2.0/src/hepyy/recipes/pythia8/8.317.sh +10 -0
  46. hepyy-0.2.0/src/hepyy/recipes/pythia8/8.317.yaml +14 -0
  47. hepyy-0.2.0/src/hepyy/registry.py +79 -0
  48. hepyy-0.2.0/src/hepyy/shell.py +238 -0
@@ -0,0 +1,54 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*" # triggers on v0.2.0, v1.0.0, etc.
7
+
8
+ permissions:
9
+ contents: read
10
+ id-token: write # required for OIDC trusted-publisher auth
11
+
12
+ jobs:
13
+ build:
14
+ name: Build distribution
15
+ runs-on: ubuntu-latest
16
+
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+
20
+ - name: Set up Python
21
+ uses: actions/setup-python@v5
22
+ with:
23
+ python-version: "3.12"
24
+
25
+ - name: Install build tools
26
+ run: pip install --upgrade build hatchling
27
+
28
+ - name: Build wheel and sdist
29
+ run: python -m build
30
+
31
+ - name: Upload dist artifacts
32
+ uses: actions/upload-artifact@v4
33
+ with:
34
+ name: dist
35
+ path: dist/
36
+
37
+ publish:
38
+ name: Publish to PyPI
39
+ needs: build
40
+ runs-on: ubuntu-latest
41
+ environment:
42
+ name: pypi
43
+ url: https://pypi.org/project/hepyy/
44
+
45
+ steps:
46
+ - name: Download dist artifacts
47
+ uses: actions/download-artifact@v4
48
+ with:
49
+ name: dist
50
+ path: dist/
51
+
52
+ - name: Publish to PyPI
53
+ uses: pypa/gh-action-pypi-publish@release/v1
54
+ # No token needed — uses OIDC trusted publisher configured on PyPI.
hepyy-0.2.0/.gitignore ADDED
@@ -0,0 +1,36 @@
1
+ # Build artifacts
2
+ build/
3
+ dist/
4
+ *.egg-info/
5
+
6
+ # Python
7
+ __pycache__/
8
+ *.pyc
9
+ *.pyo
10
+ *.pyd
11
+ .Python
12
+
13
+ # Virtual environments
14
+ .venv/
15
+ venv/
16
+ env/
17
+
18
+ # heppyyier runtime directories
19
+ packages/
20
+ *_packages/
21
+ recipe-cache/
22
+
23
+ # heppyyier local config
24
+ .heppyyier.toml
25
+
26
+ # Jupyter
27
+ .ipynb_checkpoints/
28
+ *_executed.ipynb
29
+
30
+ # macOS
31
+ .DS_Store
32
+
33
+ # Editors
34
+ .vscode/
35
+ .idea/
36
+ *.swp
hepyy-0.2.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Mateusz Płoskoń
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.