Skip to content

feat: Package installable via conda #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,38 @@ env:
Geant4_DIR: ${{ github.workspace }}/geant4

jobs:
install-using-conda:
name: Install package using conda
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
defaults:
run:
shell: bash -l {0}
steps:
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: 3.12

- name: Checkout
uses: actions/checkout@v4

- name: Install package using conda (from the meta.yaml)
run: |
cd conda_recipe
conda build .
conda install --use-local geant4-python-application

- name: Check installation
run: |
conda list geant4-python-application
python -c "import geant4_python_application; print(geant4_python_application.version)"

install-with-geant4-from-conda:
name: Install dependencies with conda
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 2 additions & 0 deletions conda_recipe/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
$PYTHON -m pip install . --no-deps
26 changes: 26 additions & 0 deletions conda_recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package:
name: geant4-python-application
version: "0.0.5"

source:
path: ../

requirements:
build:
- python
- setuptools

host:
- python
- setuptools
- cmake
- geant4=11.2.2

run:
- python
- geant4=11.2.2

about:
home: https://github.com/lobis/geant4-python-application
license: BSD-3-Clause
summary: "A pythonic Geant4 application with awkward-array integration"
Loading