-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from precice/python-bindings-v2.2.0.2
Release v2.2.0.2
- Loading branch information
Showing
14 changed files
with
119 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Update build environment | ||
|
||
on: | ||
workflow_dispatch: # Trigger by hand from the UI | ||
schedule: | ||
- cron: '0 0 * * 0' # Schedule it every Sunday | ||
|
||
jobs: | ||
build-spack-pyprecice-deps: | ||
name: Builds the baseimage for spack providing dependencies | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Set up Docker | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Login to registry | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
context: . | ||
file: spack/ci-spack-pyprecice-deps-1804.dockerfile | ||
tags: precice/ci-spack-pyprecice-deps-1804 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
__version__ = "unknown" | ||
|
||
import warnings | ||
from cyprecice import Interface, action_read_iteration_checkpoint, action_write_iteration_checkpoint, action_write_initial_data, get_version_information | ||
|
||
|
||
def SolverInterface(*args): | ||
""" | ||
This is just a dummy function to avoid wrong usage of the interface. Please use precice.Interface, if you want to establish a connection to preCICE. See https://github.com/precice/python-bindings/issues/92 for more information. | ||
""" | ||
warnings.warn("please use precice.Interface to create the interface to C++ preCICE. Note that this function (precice.SolverInterface) does not do anything but throwing this warning. See https://github.com/precice/python-bindings/issues/92 for more information.") | ||
|
||
|
||
from ._version import get_versions | ||
__version__ = get_versions()['version'] | ||
del get_versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
pyprecice==2.0 | ||
pyprecice>=2.0 | ||
argparse>=1.4 | ||
numpy>=1.16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
# Build stage with Spack pre-installed and ready to be used | ||
FROM spack/ubuntu-bionic:latest | ||
RUN spack env create precice | ||
# Install dependencies for precice and py-pyprecice | ||
RUN spack env activate precice \ | ||
&& spack add [email protected] [email protected] [email protected] openssh [email protected] pkgconfig precice@develop py-setuptools py-wheel py-cython py-numpy py-mpi4py \ | ||
&& spack concretize -f \ | ||
&& spack install | ||
FROM spack/ubuntu-bionic:latest | ||
|
||
# Mount the current sources into the build container | ||
# and build the default environment | ||
ADD ./spack/repo /py-pyprecice-repo | ||
RUN spack --color=always env create --without-view ci && \ | ||
spack --color=always -e ci add py-pyprecice@develop target=x86_64 && \ | ||
spack --color=always -e ci repo add /py-pyprecice-repo && \ | ||
spack --color=always -e ci install --fail-fast --only=dependencies && \ | ||
spack --color=always clean -a |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.