Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
76ae917
Allow numpy 2 for pyprecice>=3.1.1 (#218)
BenjaminRodenberg Sep 4, 2024
dc7e520
Improve install error messages (#223)
fsimonis Oct 23, 2024
2cb1fee
Remove spack testing (#221)
fsimonis Nov 4, 2024
b6b9ee5
Use precice nightly in ci
fsimonis Nov 4, 2024
086a40b
Add API for runtime remeshing (#224)
fsimonis Nov 25, 2024
884b984
Use nightly instead of develop as a base.
fsimonis Nov 25, 2024
8d852fe
Use nightly for develop ref
fsimonis Nov 25, 2024
ced8a42
Fix badge
BenjaminRodenberg Dec 5, 2024
cae4297
Fix copying
BenjaminRodenberg Feb 27, 2025
1cba0cf
Use `venv` for CI (#227)
BenjaminRodenberg Feb 27, 2025
b4b9fe1
Make consistent with precice/precice/CHANGELOG.md
BenjaminRodenberg Mar 6, 2025
94edb13
Add experimental profiling API (#226)
IshaanDesai Mar 14, 2025
bda82db
Use precice/precice.hpp header (#193)
IshaanDesai Mar 17, 2025
3934ee0
Remove Dockerfile and release workflow (#228)
BenjaminRodenberg Mar 17, 2025
a4a8c88
Remove unused configure
fsimonis Nov 25, 2024
938f81b
Remove const from member functions
fsimonis Nov 25, 2024
aaa8b75
Add except to throwing functions
fsimonis Nov 25, 2024
ca40e08
Update installation instructions (#230)
BenjaminRodenberg Mar 18, 2025
ca4da56
Add API functions for Just-in-time mapping (#231)
MakisH Mar 25, 2025
ea72a3b
Add CHANGELOG entries
IshaanDesai Mar 25, 2025
9188afe
Update requirements of the solver dummy (#233)
IshaanDesai Mar 31, 2025
39868ad
Move individual changelog entries into CHANGELOG.md (#234)
IshaanDesai Apr 1, 2025
1a30360
Bump version
IshaanDesai Apr 2, 2025
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
105 changes: 38 additions & 67 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,81 +8,38 @@ on:
- "*"

jobs:
setup_for_spack:
name: Run setup.py phases needed by spack
needs: [setup_test]
runs-on: ubuntu-latest
container:
image: precice/precice:develop
options: --user root
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install & upgrade pip3
run: |
apt-get -yy update
apt-get install -y python3-pip pkg-config
rm -rf /var/lib/apt/lists/*
pip3 install --upgrade --user pip
- name: Install dependencies
run: |
pip3 install --user toml
python3 -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))' | pip3 install -r /dev/stdin
- name: Run setup.py phases needed by spack
run: |
python3 setup.py install_lib
python3 setup.py build_ext

setup_install:
name: Run setup install
runs-on: ubuntu-latest
container:
image: precice/precice:develop
image: precice/precice:nightly
options: --user root
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install pip3, pkgconfig and upgrade pip3
run: |
apt-get -yy update
apt-get install -y python3-pip pkg-config
apt-get install -y python3-pip python3.12-venv pkg-config
rm -rf /var/lib/apt/lists/*
pip3 install --upgrade --user pip
- name: Create venv
run: python3 -m venv .venv
- name: Activate venv
# see https://stackoverflow.com/a/74669486
run: |
. .venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Install dependencies
run: |
pip3 install --user toml
pip3 install toml
python3 -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))' | pip3 install -r /dev/stdin
- name: Run setup install
run: python3 setup.py install --user
run: python3 setup.py install
- name: Test install
run: |
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
python3 -c "import precice"

setup_install_single_version_externally_managed:
name: Run setup install --single-version-externally-managed (for spack)
needs: [setup_install]
runs-on: ubuntu-latest
container:
image: precice/precice:develop
options: --user root
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install pip3, pkgconfig and upgrade pip3
run: |
su root
apt-get -yy update
apt-get install -y python3-pip pkg-config
rm -rf /var/lib/apt/lists/*
pip3 install --upgrade --user pip
- name: Install dependencies
run: |
pip3 install --user toml
python3 -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))' | pip3 install -r /dev/stdin
- name: Run setup install --single-version-externally-managed
run: python3 setup.py install --single-version-externally-managed --root=/

setup_test:
name: Run setup test
runs-on: ubuntu-latest
Expand All @@ -104,7 +61,7 @@ jobs:
mkdir -p precice
cp precice-core/src/precice/Participant.hpp precice/Participant.hpp
cp precice-core/src/precice/Tooling.hpp precice/Tooling.hpp
cp precice-core/src/precice/Tooling.hpp precice/Tooling.cpp
cp precice-core/src/precice/Tooling.cpp precice/Tooling.cpp
cd precice-core
mkdir build && cd build
cmake .. -DPRECICE_FEATURE_MPI_COMMUNICATION=OFF -DPRECICE_FEATURE_PETSC_MAPPING=OFF -DPRECICE_FEATURE_PYTHON_ACTIONS=OFF -DBUILD_TESTING=OFF
Expand All @@ -124,42 +81,56 @@ jobs:
needs: [setup_test]
runs-on: ubuntu-latest
container:
image: precice/precice:develop
image: precice/precice:nightly
options: --user root
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install pip3, pkgconfig and upgrade pip3
- name: Install dependencies
run: |
apt-get -yy update
apt-get install -y python3-pip pkg-config
apt-get install -y python3-pip python3.12-venv pkg-config
rm -rf /var/lib/apt/lists/*
pip3 install --upgrade --user pip
- name: Run pip install
run: pip3 install --user .
- name: Create venv
run: |
python3 -m venv .venv
- name: Activate venv
# see https://stackoverflow.com/a/74669486
run: |
. .venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Run pip install
run: pip3 install .
- name: Check import
run: |
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
python3 -c "import precice"

solverdummy_test:
name: Run solverdummy
needs: [setup_install, setup_test]
needs: [pip_install]
runs-on: ubuntu-latest
container:
image: precice/precice:develop
image: precice/precice:nightly
options: --user root
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install pip3, pkgconfig and upgrade pip3
- name: Install dependencies
run: |
apt-get -yy update
apt-get install -y python3-pip pkg-config
apt-get install -y python3-pip python3.12-venv pkg-config
rm -rf /var/lib/apt/lists/*
pip3 install --upgrade --user pip
- name: Create venv
run: |
python3 -m venv .venv
- name: Activate venv
# see https://stackoverflow.com/a/74669486
run: |
. .venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Run pip install
run: pip3 install --user .
run: pip3 install .
- name: Run solverdummy
run: |
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
Expand Down
54 changes: 0 additions & 54 deletions .github/workflows/build-docker.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/build-env.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/build-spack.yml

This file was deleted.

17 changes: 12 additions & 5 deletions .github/workflows/run-solverdummy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,29 @@ jobs:
name: Run solverdummies
runs-on: ubuntu-latest
container:
image: precice/precice:develop
image: precice/precice:nightly
options: --user root
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Dependencies
run: |
apt-get -qq update
apt-get -qq install software-properties-common python3-dev python3-pip git apt-utils pkg-config
apt-get -qq install software-properties-common python3-dev python3-pip python3.12-venv git apt-utils pkg-config
rm -rf /var/lib/apt/lists/*
pip3 install --upgrade --user pip
- name: Create venv
run: |
python3 -m venv .venv
- name: Activate venv
# see https://stackoverflow.com/a/74669486
run: |
. .venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Install bindings
run: pip3 install --user .
run: pip3 install .
- name: Check whether preCICE was built with MPI # reformat version information as a dict and check whether preCICE was compiled with MPI
run: python3 -c "import precice; assert({item.split('=')[0]:item.split('=')[-1] for item in str(precice.get_version_information()).split(';')}['PRECICE_FEATURE_MPI_COMMUNICATION']=='Y')"
- name: Run solverdummies
run: |
cd examples/solverdummy/
python3 solverdummy.py precice-config.xml SolverOne & python3 solverdummy.py precice-config.xml SolverTwo
python3 solverdummy.py precice-config.xml SolverOne & python3 solverdummy.py precice-config.xml SolverTwo
16 changes: 13 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,28 @@

All notable changes to this project will be documented in this file.

## v3.1.2
## 3.2.0

* Update `requirements.txt` of the solver dummy https://github.com/precice/python-bindings/pull/233
* Add API functions for Just-in-time mapping https://github.com/precice/python-bindings/pull/231
* Discontinued maintainment of Docker image `precice/python-bindings`. Python packages should be installed using virtual environments instead. Please refer to `README.md` for further information. https://github.com/precice/python-bindings/pull/228
* Added profiling API functions https://github.com/precice/python-bindings/pull/226
* Added API function `reset_mesh()` https://github.com/precice/python-bindings/pull/224
* Removed testing of spack package https://github.com/precice/python-bindings/pull/221
* Use the newer `precice/precice.hpp` header to access C++ API https://github.com/precice/python-bindings/pull/193

## 3.1.2

* Restrict to numpy < 2 for better compatibility with CI pipeline. https://github.com/precice/python-bindings/pull/213
* Require setuptools < 72 since support for the test command was removed in Setuptools 72. https://github.com/precice/python-bindings/pull/213
* Require setuptools >= 61 to guarantee that pyproject.toml is used https://github.com/precice/python-bindings/pull/207
* Fix CI pipeline for spack https://github.com/precice/python-bindings/pull/206

## v3.1.1
## 3.1.1

* Fix NumPy include order to not conflict with system NumPy and the one installed via pip https://github.com/precice/python-bindings/pull/204

## v3.1.0
## 3.1.0

* Change versioning scheme https://github.com/precice/python-bindings/pull/199

Expand Down
Loading