Skip to content

Commit 27f9c30

Browse files
authored
Merge pull request #44 from Chaste/vtk_py311
Build conda packages for Python 3.8 - 3.11
2 parents 0be20da + 940f4b5 commit 27f9c30

File tree

110 files changed

+1786
-2017
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+1786
-2017
lines changed

.github/workflows/conda-build-linux.yml

+21-13
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,31 @@ name: conda-build-linux
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
variant:
7+
description: "Variant of the conda package to build"
8+
required: true
9+
type: string
10+
default: "linux_64_python3.10_cpython"
511

612
jobs:
7-
813
build:
9-
1014
runs-on: ubuntu-latest
1115

1216
steps:
13-
- name: checkout
14-
uses: actions/checkout@v4
17+
- name: checkout
18+
uses: actions/checkout@v4
1519

16-
- name: build conda package
17-
run: ./build-py310.sh
18-
working-directory: infra/conda/chaste
19-
20-
- name: upload conda package artifacts
21-
uses: actions/upload-artifact@v4
22-
with:
23-
name: pychaste-conda
24-
path: infra/conda/chaste/build_artifacts/linux-64
20+
- name: build conda package
21+
run: |
22+
docker run -e HOST_USER_ID="$(id -u)" -v $(pwd):/home/conda \
23+
quay.io/condaforge/linux-anvil-cos7-x86_64 ./build-package.sh \
24+
--variant=${{ github.event.inputs.variant }} \
25+
--parallel=$(nproc)
26+
working-directory: infra/conda/chaste/2024.1
27+
28+
- name: upload conda package artifacts
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: pychaste-conda
32+
path: infra/conda/chaste/build_artifacts/linux-64

.github/workflows/test-conda.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ jobs:
99
test-conda:
1010
runs-on: ubuntu-latest
1111

12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: ["3.8", "3.9", "3.10", "3.11"]
16+
1217
steps:
1318
- name: install dependencies
1419
run: |
@@ -22,9 +27,9 @@ jobs:
2227
use-mamba: true
2328
miniforge-variant: Mambaforge
2429
miniforge-version: latest
25-
python-version: "3.10"
30+
python-version: ${{ matrix.python-version }}
2631
activate-environment: pychaste_test
27-
channels: pychaste,conda-forge,bioconda
32+
channels: pychaste,conda-forge
2833

2934
- name: install pychaste
3035
run: mamba install -n pychaste_test -y chaste

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# No shared libraries and compiled Python
22
*.so
33
*.pyc
4+
__pycache__/
45
# No eclipse settings
56
*.project
67
*.cproject

README.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
# PyChaste
22

3-
PyChaste is a Python wrapper for [Chaste](https://chaste.github.io/), a general purpose simulation package for computational biology.
3+
PyChaste is a Python wrapper for [Chaste](https://chaste.github.io/), a general
4+
purpose simulation package for computational biology.
5+
6+
Currently a limited number of features are supported, mostly related to
7+
cell-based Chaste.
48

59
## Installation
6-
`mamba install -c pychaste -c conda-forge -c bioconda chaste`
10+
`mamba install -c pychaste -c conda-forge chaste`
711

8-
See the [website](https://chaste.github.io/pychaste/installation/) for a detailed guide on installing PyChaste.
12+
See the [website](https://chaste.github.io/pychaste/installation/) for a
13+
detailed guide on installing PyChaste.
914

1015
## Tutorials
11-
See the [website](https://chaste.github.io/pychaste/tutorials/) for tutorials demonstrating how to use PyChaste.
16+
See the [website](https://chaste.github.io/pychaste/tutorials/) for tutorials
17+
demonstrating how to use PyChaste.
1218

1319
## Extending
1420
See the [wiki](../../wiki/) for guidance on extending PyChaste.
21+

dynamic/wrappers/cell_based/Edge2.cppwg.cpp

-103
This file was deleted.

dynamic/wrappers/cell_based/Edge2.cppwg.hpp

-6
This file was deleted.

dynamic/wrappers/cell_based/Edge3.cppwg.cpp

-103
This file was deleted.

dynamic/wrappers/cell_based/Edge3.cppwg.hpp

-6
This file was deleted.

dynamic/wrappers/cell_based/EdgeOperation.cppwg.cpp

-55
This file was deleted.

dynamic/wrappers/cell_based/EdgeOperation.cppwg.hpp

-6
This file was deleted.

infra/conda/.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
*.pyc
2+
build_artifacts/
3+
.bash_history
4+
.bash_logout
5+
.bash_profile
6+
.bashrc
7+
.conda/
8+
.condarc
9+
.cache
10+
.python_history

0 commit comments

Comments
 (0)