Skip to content
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

Release v3.0.0.0 #190

Merged
merged 45 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
a142d01
Compatibility v3.0.0 (#147)
BenjaminRodenberg Dec 2, 2022
71e7a6e
Add missing comma in documentation of Interface.write_block_scalar_da…
kanishkbh Dec 7, 2022
3d3c158
Remove mesh name from solver dummy run command in CI
IshaanDesai Feb 17, 2023
bc8bf6f
Make bindings compatible with precice:develop (#169)
BenjaminRodenberg Feb 20, 2023
e6e7b11
Merge branch 'master' into develop
IshaanDesai Feb 21, 2023
9cf27bd
Remove getMeshIDs. Related https://github.com/precice/precice/commit/…
BenjaminRodenberg Mar 2, 2023
3f8c34e
Use benjaminrodenberg/precice:develop (#171)
BenjaminRodenberg Mar 4, 2023
22a9d3a
Use container precice/precice:develop in all Actions (#159)
IshaanDesai Mar 9, 2023
bf3997d
Use is in python if condition instead of ==
BenjaminRodenberg Mar 15, 2023
15db35c
Several updates to GitHub Actions CI
IshaanDesai Mar 22, 2023
f653d0a
Update Spack package.py
IshaanDesai Mar 22, 2023
166c6e1
Use mesh name and data name instead of IDs (#174)
IshaanDesai Mar 22, 2023
737c21c
Use precice/precice container instead of benjaminrodenberg/precice in…
IshaanDesai Mar 22, 2023
81c5f0c
Change input arg names in set_meshtriangles/quads from edges to vertices
IshaanDesai Mar 28, 2023
21494bb
Ordering the API functions according to the order in the C++ API of p…
IshaanDesai Jun 13, 2023
f8820eb
Minor documentation edits
IshaanDesai Jun 13, 2023
a670620
Format the precice-config for the solverdummy and use standard names …
IshaanDesai Jun 13, 2023
c6649b4
Minor formatting changes.
BenjaminRodenberg Jun 13, 2023
562616b
Lint markdown files and update files correspondingly. (#180)
BenjaminRodenberg Jun 13, 2023
d7a1234
Compatibility with precice:develop (#179)
IshaanDesai Jun 13, 2023
e0012ba
Minor renaming.
BenjaminRodenberg Jun 21, 2023
b6a4814
Bump version in changelog.
BenjaminRodenberg Jun 21, 2023
6a37ab8
Merge pull request #181 from precice/python-bindings-v3.0.0.0dev0
BenjaminRodenberg Jun 21, 2023
ee6734d
Merge branch 'master' into develop
IshaanDesai Jul 26, 2023
dc4669c
Use acceptor and connector keys instead of from and to in m2n config XML
IshaanDesai Jul 26, 2023
cd446d2
Remove API functions has_mesh and has_data and rename get_mesh_vertic…
IshaanDesai Aug 1, 2023
16f2234
Use correct function name: getMeshVertexIDsAndCoordinates
IshaanDesai Aug 1, 2023
cac5ba5
Fixing tests
IshaanDesai Aug 1, 2023
9f6de20
Merge branch 'master' into develop
IshaanDesai Aug 8, 2023
d6386ea
Add tag_prefix = v to versioneer configuration in setup.cfg
IshaanDesai Aug 8, 2023
23a8401
Update CMake flags in preCICE source installation commands
IshaanDesai Aug 8, 2023
f9da44a
Add correct CMake MPI flag in Action
IshaanDesai Aug 8, 2023
cf08e63
Update CHANEGLOG and remove pre-release entry from it
IshaanDesai Aug 8, 2023
f9b725d
Merge branch 'master' into develop
IshaanDesai Aug 9, 2023
dc1ac4d
Merge branch 'master' into develop
IshaanDesai Aug 9, 2023
bb55349
Adapt Docker workflow according to new system tests design (#186)
valentin-seitz Aug 9, 2023
5f800b8
Remove experimental warning for direct mesh access functions
IshaanDesai Aug 25, 2023
f9498cc
Move dimensions attribute from precice-configuration to mesh
IshaanDesai Aug 25, 2023
e03ba33
Remove unnecessary statement
BenjaminRodenberg Jan 13, 2024
1c25e13
Update configuration file w.r.t min-iterations.
BenjaminRodenberg Jan 15, 2024
49c2af0
Merge branch 'develop' of github.com:precice/python-bindings into dev…
BenjaminRodenberg Jan 15, 2024
c4d9786
Add Cython as dependency required during installation (#177)
IshaanDesai Feb 5, 2024
b1c3565
Update CHANGELOG
IshaanDesai Feb 5, 2024
a4229d2
Use PyPI token instead of username and password in the package publis…
IshaanDesai Feb 5, 2024
d73996c
Bump version
IshaanDesai Feb 5, 2024
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
29 changes: 18 additions & 11 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
needs: [setup_test]
runs-on: ubuntu-latest
container:
image: precice/precice:latest
image: precice/precice:develop
options: --user root
steps:
- name: Checkout Repository
Expand All @@ -37,7 +37,7 @@ jobs:
name: Run setup install
runs-on: ubuntu-latest
container:
image: precice/precice:latest
image: precice/precice:develop
options: --user root
steps:
- name: Checkout Repository
Expand All @@ -55,20 +55,23 @@ jobs:
- name: Run setup install
run: python3 setup.py install --user
- name: Test install
run: python3 -c "import precice"
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:latest
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/*
Expand Down Expand Up @@ -97,12 +100,14 @@ jobs:
packages: toml
- name: Checkout precice and make required files discoverable
run: |
git clone -b v2.5.0 https://github.com/precice/precice.git precice-core
git clone --branch develop https://github.com/precice/precice.git precice-core
mkdir -p precice
cp precice-core/src/precice/SolverInterface.hpp precice/SolverInterface.hpp
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
cd precice-core
mkdir build && cd build
cmake .. -DPRECICE_MPICommunication=OFF -DPRECICE_PETScMapping=OFF -DPRECICE_PythonActions=OFF -DBUILD_TESTING=OFF
cmake .. -DPRECICE_FEATURE_MPI_COMMUNICATION=OFF -DPRECICE_FEATURE_PETSC_MAPPING=OFF -DPRECICE_FEATURE_PYTHON_ACTIONS=OFF -DBUILD_TESTING=OFF
- name: Install dependencies
run: |
python3 -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))' | pip3 install -r /dev/stdin
Expand All @@ -119,7 +124,7 @@ jobs:
needs: [setup_test]
runs-on: ubuntu-latest
container:
image: precice/precice:latest
image: precice/precice:develop
options: --user root
steps:
- name: Checkout Repository
Expand All @@ -133,14 +138,16 @@ jobs:
- name: Run pip install
run: pip3 install --user .
- name: Run pip install
run: python3 -c "import precice"
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]
runs-on: ubuntu-latest
container:
image: precice/precice:latest
image: precice/precice:develop
options: --user root
steps:
- name: Checkout Repository
Expand All @@ -155,6 +162,6 @@ jobs:
run: pip3 install --user .
- name: Run solverdummy
run: |
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
cd examples/solverdummy/
python3 solverdummy.py precice-config.xml SolverOne MeshOne & python3 solverdummy.py precice-config.xml SolverTwo MeshTwo

38 changes: 32 additions & 6 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
name: Update docker image

on:
workflow_dispatch: # Trigger by hand from the UI
workflow_dispatch: # Trigger by hand from the UI
inputs:
branch:
type: choice
description: branch to build the image from
options:
- develop
- master
push:
branches:
- develop
- master


jobs:
build-and-release-docker-image:
Expand All @@ -13,10 +22,26 @@ jobs:
env:
docker_username: precice
steps:
- name: Get branch name
if: github.event_name != 'pull_request'
- name: Set branch name for manual triggering
if: github.event_name == 'workflow_dispatch'
shell: bash
run: echo "BINDINGS_REF=${{ inputs.branch }}" >> $GITHUB_ENV
- name: Set branch name for "on pull request" triggering
if: github.event_name != 'pull_request' && github.event_name != 'workflow_dispatch'
shell: bash
run: echo "BINDINGS_REF=${{ github.ref_name }}" >> $GITHUB_ENV
- name: Set PRECICE_TAG and the TAG depending on branch
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/} | tr / -)" >> $GITHUB_ENV
run: |
if [[ '${{ env.BINDINGS_REF }}' == 'master' ]]; then
echo "PRECICE_TAG=latest" >> "$GITHUB_ENV"
echo "TAG=latest" >> "$GITHUB_ENV"
echo "Building TAG: latest"
else
echo "PRECICE_TAG=${{ env.BINDINGS_REF }}" >> "$GITHUB_ENV"
echo "TAG=${{ env.BINDINGS_REF }}" >> "$GITHUB_ENV"
echo "Building TAG: ${{ env.BINDINGS_REF }}"
fi
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
Expand All @@ -31,6 +56,7 @@ jobs:
with:
push: true
file: "./tools/releasing/packaging/docker/Dockerfile"
tags: ${{ env.docker_username }}/python-bindings:${{ env.branch }},${{ env.docker_username }}/python-bindings:latest
tags: ${{ env.docker_username }}/python-bindings:${{ env.TAG }}
build-args: |
branch=${{ env.branch }}
PRECICE_TAG=${{ env.PRECICE_TAG }}
PYTHON_BINDINGS_REF=${{ env.BINDINGS_REF }}
14 changes: 14 additions & 0 deletions .github/workflows/check-markdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Lint docs
on: [push, pull_request]
jobs:
check_md:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Lint markdown files (markdownlint)
uses: articulate/actions-markdownlint@v1
with:
config: .markdownlint.json
files: '.'
ignore: changelog-entries
4 changes: 2 additions & 2 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
pkgconfig
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist
twine upload dist/*
4 changes: 2 additions & 2 deletions .github/workflows/run-solverdummy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Run solverdummies
runs-on: ubuntu-latest
container:
image: precice/precice:latest
image: precice/precice:develop
options: --user root
steps:
- name: Checkout Repository
Expand All @@ -25,7 +25,7 @@ jobs:
- name: Install bindings
run: pip3 install --user .
- 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_MPICommunication']=='Y')"
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/
Expand Down
7 changes: 7 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"MD013": false,
"MD014": false,
"MD024": false,
"MD034": false,
"MD033": false
}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

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

## 3.0.0.0

* Add Cython as build time dependency https://github.com/precice/python-bindings/pull/177
* Update CMake configuration flags for preCICE source installation in Actions. https://github.com/precice/python-bindings/commit/23a840144c2647d6cf09c0ed87be3b768a22feb7
* Remove API functions `has_mesh` and `has_data` and rename `get_mesh_vertices_and_ids` to `get_mesh_vertices_and_coordinates`. https://github.com/precice/python-bindings/commit/cd446d2807b841d81a4cf5c9dd6656ab43c278c3
* Update API according to preCICE v3.0.0 https://github.com/precice/python-bindings/pull/179

## 2.5.0.4

* Add `tag_prefix = v` in versioneer configuration of `setup.cfg`.
Expand Down
Loading
Loading