-
-
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 #216 from precice/python-bindings-v3.1.2
Release v3.1.2
- Loading branch information
Showing
10 changed files
with
70 additions
and
65 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
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,35 +1,35 @@ | ||
# name: Build Spack | ||
# on: | ||
# push: | ||
# branches: | ||
# - "*" | ||
# pull_request: | ||
# branches: | ||
# - "*" | ||
# schedule: | ||
# - cron: '0 4 * * 1' # Schedule it every Sunday | ||
# | ||
# jobs: | ||
# build_spack: | ||
# name: build_spack | ||
# runs-on: ubuntu-latest | ||
# timeout-minutes: 15 | ||
# container: precice/ci-spack-pyprecice-deps-2204 | ||
# defaults: | ||
# run: | ||
# shell: "bash --login -eo pipefail {0}" | ||
# steps: | ||
# - name: Checkout Repository | ||
# uses: actions/checkout@v2 | ||
# - name: Move Package Script | ||
# run: | | ||
# cp -r spack/repo/packages/py-pyprecice/ /py-pyprecice-repo/packages/ | ||
# - name: Try to build py-pyprecice with spack and test it | ||
# run: | | ||
# . /opt/spack/share/spack/setup-env.sh | ||
# spack env activate ci && spack arch | ||
# spack remove py-pyprecice | ||
# spack add pyprecice.test.py-pyprecice@develop && spack develop pyprecice.test.py-pyprecice@develop | ||
# spack install && spack find | ||
# spack load py-pyprecice | ||
# BINDINGS_VERSION=$(python3 -c "import precice; print(precice.__version__)") && echo "Installed version of bindings is ${BINDINGS_VERSION}" | ||
name: Build Spack | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
pull_request: | ||
branches: | ||
- "*" | ||
schedule: | ||
- cron: '0 4 * * 1' # Schedule it every Sunday | ||
|
||
jobs: | ||
build_spack: | ||
name: build_spack | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
container: precice/ci-spack-pyprecice-deps-2404 | ||
defaults: | ||
run: | ||
shell: "bash --login -eo pipefail {0}" | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Move Package Script | ||
run: | | ||
cp -r spack/repo/packages/py-pyprecice/ /py-pyprecice-repo/packages/ | ||
- name: Try to build py-pyprecice@develop with spack and test it | ||
run: | | ||
. /opt/spack/share/spack/setup-env.sh | ||
spack env activate ci && spack arch | ||
spack remove py-pyprecice | ||
spack add pyprecice.test.py-pyprecice@develop && spack develop pyprecice.test.py-pyprecice@develop | ||
spack install && spack find | ||
spack load py-pyprecice | ||
BINDINGS_VERSION=$(python3 -c "import precice; print(precice.__version__)") && echo "Installed version of bindings is ${BINDINGS_VERSION}" |
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,3 +1,3 @@ | ||
[build-system] | ||
# PEP 518 - minimum build system requirements | ||
requires = ["setuptools", "wheel", "Cython>=0.29", "packaging", "pip>=19.0.0", "numpy", "mpi4py", "pkgconfig"] | ||
requires = ["setuptools>=61,<72", "wheel", "Cython>=0.29", "packaging", "pip>=19.0.0", "numpy<2", "mpi4py", "pkgconfig"] |
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 |
---|---|---|
|
@@ -5,17 +5,6 @@ | |
|
||
uses_pip = "pip" in __file__ | ||
|
||
# check whether pip is used for installation. If pip is not used, dependencies defined in pyproject.toml might be | ||
# missing. | ||
if not uses_pip: | ||
warnings.warn( | ||
"It looks like you are not using pip for installation. Installing the package via 'pip3 install " | ||
"--user .' is recommended. You can still use 'python3 setup.py install --user', if you want and if " | ||
"the bindings work correctly, you do not have to worry. However, if you face problems during " | ||
"installation or running pyprecice, this means that you have to make sure that all dependencies are " | ||
"installed correctly and repeat the installation of pyprecice. Refer to pyproject.toml for a list " | ||
"of dependencies.") | ||
|
||
if uses_pip: | ||
# If installed with pip we need to check its version | ||
try: | ||
|
@@ -45,7 +34,6 @@ | |
" flag.".format(pip.__version__)) | ||
|
||
from setuptools import setup | ||
from setuptools import Command | ||
from setuptools.command.test import test | ||
from setuptools.command.install import install | ||
from Cython.Distutils.extension import Extension | ||
|
@@ -149,7 +137,7 @@ def initialize_options(self): | |
author_email='[email protected]', | ||
license='LGPL-3.0', | ||
python_requires='>=3', | ||
install_requires=['numpy', 'mpi4py', 'Cython'], | ||
install_requires=['numpy<2', 'mpi4py', 'Cython'], | ||
# mpi4py is only needed, if preCICE was compiled with MPI | ||
# see https://github.com/precice/python-bindings/issues/8 | ||
packages=['precice'], | ||
|
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
2 changes: 1 addition & 1 deletion
2
...k/ci-spack-pyprecice-deps-2204.dockerfile → ...k/ci-spack-pyprecice-deps-2404.dockerfile
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,4 +1,4 @@ | ||
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other | ||
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other | ||
# Spack Project Developers. See the top-level COPYRIGHT file for details. | ||
# | ||
# SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
@@ -14,13 +14,18 @@ class PyPyprecice(PythonPackage): | |
|
||
homepage = "https://precice.org" | ||
git = "https://github.com/precice/python-bindings.git" | ||
url = "https://github.com/precice/python-bindings/archive/v2.4.0.0.tar.gz" | ||
url = "https://github.com/precice/python-bindings/archive/v3.1.1.tar.gz" | ||
maintainers("ajaust", "BenjaminRodenberg", "IshaanDesai") | ||
|
||
# Always prefer final version of release candidate | ||
version("develop", branch="develop") | ||
version("3.1.1", sha256="50a0f1cbdb8fc362c22d316151c0e757958ff136a094e63b9b82d045d01d19c7") | ||
version("3.1.0", sha256="8d9bd9e28859001ab503a1e2f90e54b3c000079f04c14dc7c0c04c61c5666641") | ||
version("3.0.0.0", sha256="7e2c4b106a231b0df2a430d86d4a7b295f85adbe3478c425f863d1a4bebee9f7") | ||
version("2.5.0.4", sha256="7f9449573eb52ce48ca3f0ab35529ea0064942487842515ae0a2c9299aa0f0db") | ||
version("2.5.0.3", sha256="b983229b9fdf6bd4605ae8710985eb681025f6fb28ad8d7736cdf92593eef6df") | ||
version("2.5.0.2", sha256="6d7b78da830db6c5133b44617196ee90be8c7d6c8e14c8994a4800b3d4856416") | ||
version("2.5.0.1", sha256="e2602f828d4f907ea93e34f7d4adb8db086044a75a446592a4099423d56ed62c") | ||
version("2.5.0.1", sha256="d7c666e6ebff9e007c3703d8e3c3fcdf0f45289e36c2c17223b3aedc3259ab6c") | ||
version("2.5.0.0", sha256="9f55a22594bb602cde8a5987217728569f16d9576ea53ed00497e9046a2e1794") | ||
version("2.4.0.0", sha256="e80d16417b8ce1fdac80c988cb18ae1e16f785c5eb1035934d8b37ac18945242") | ||
version("2.3.0.1", sha256="ed4e48729b662680beaa4ee2a9aff724a79e760534c6c58181be739988da2789") | ||
|
@@ -37,6 +42,8 @@ class PyPyprecice(PythonPackage): | |
|
||
for ver in [ | ||
"develop", | ||
"3.1", # only consider major.minor from 3.1.0. See https://github.com/precice/python-bindings/pull/199 | ||
"3.0.0", | ||
"2.5.0", | ||
"2.4.0", | ||
"2.3.0", | ||
|
@@ -51,8 +58,8 @@ class PyPyprecice(PythonPackage): | |
depends_on("precice@" + ver, when="@" + ver) | ||
|
||
depends_on("python@3:", type=("build", "link", "run")) | ||
depends_on("py-setuptools", type="build") | ||
depends_on("py-numpy", type=("build", "link", "run")) | ||
depends_on("py-setuptools@61:71", type="build") | ||
depends_on("py-numpy@:1", type=("build", "link", "run")) | ||
depends_on("py-mpi4py", type=("build", "run")) | ||
depends_on("[email protected]:", type="build") | ||
depends_on("py-packaging", type="build") | ||
|