Skip to content

Commit

Permalink
cond up 16
Browse files Browse the repository at this point in the history
  • Loading branch information
ameli committed Dec 12, 2023
1 parent 9bf9319 commit 9a5b830
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 22 deletions.
13 changes: 9 additions & 4 deletions .cirrus.star
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ load("cirrus", "env", "fs", "http")

def main(ctx):

return fs.read("tools/ci/cirrus_deploy_pypi_linux_aarch64.yml")
return fs.read("tools/ci/cirrus_deploy_pypi_macosx_arm64.yml")
return fs.read("tools/ci/cirrus_deploy_conda_linux_aarch64.yml")
return fs.read("tools/ci/cirrus_deploy_conda_macosx_arm64.yml")
code1 = fs.read("tools/ci/cirrus_deploy_pypi_linux_aarch64.yml")
code2 = fs.read("tools/ci/cirrus_deploy_pypi_macosx_arm64.yml")
code3 = fs.read("tools/ci/cirrus_deploy_conda_linux_aarch64.yml")
code4 = fs.read("tools/ci/cirrus_deploy_conda_macosx_arm64.yml")

# Return errro if any of the codes are nonzero
code = code1 | code2 | code 3 | code4

return code
6 changes: 3 additions & 3 deletions .github/workflows/deploy-conda.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: deploy-conda

on:
push:
branches:
- main
# push:
# branches:
# - main
release:
types:
- published
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: deploy-pypi

on:
push:
branches:
- main
# push:
# branches:
# - main
release:
types:
- published
Expand Down
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Successful installation and tests have been performed on the following platforms
Python wheels for ``special_functions`` for all supported platforms and versions in the above are available through `PyPI <https://pypi.org/project/special_functions/>`__ and `Anaconda Cloud <https://anaconda.org/s-ameli/special_functions>`__. If you need ``special_functions`` on other platforms, architectures, and Python or PyPy versions, `raise an issue <https://github.com/ameli/special_functions/issues>`__ on GitHub and we build its Python Wheel for you.

:sup:`1. Wheels for PyPy are exclusively available for installation through pip and cannot be installed using conda.`

:sup:`2. Wheels for Windows on ARM-64 architecture are exclusively available for installation through pip and cannot be installed using conda.`


Expand Down
1 change: 1 addition & 0 deletions docs/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Successful installation and tests have been performed on the following platforms
Python wheels for ``special_functions`` for all supported platforms and versions in the above are available through `PyPI <https://pypi.org/project/special_functions/>`_ and `Anaconda Cloud <https://anaconda.org/s-ameli/special_functions>`_. If you need ``special_functions`` on other platforms, architectures, and Python or PyPy versions, `raise an issue <https://github.com/ameli/special_functions/issues>`_ on GitHub and we build its Python Wheel for you.

:sup:`1. Wheels for PyPy are exclusively available for installation through pip and cannot be installed using conda.`

:sup:`2. Wheels for Windows on ARM-64 architecture are exclusively available for installation through pip and cannot be installed using conda.`


Expand Down
6 changes: 3 additions & 3 deletions tools/ci/cirrus_deploy_conda_linux_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ conda_test_linux_aarch64_task:
test_script: |
source ./tools/wheels/upload_wheels.sh
install_anaconda "linux_aarch64"
set -xe
set -x
CONDA_BIN_DIR=$(dirname `which conda`)
PYTHON=${CONDA_BIN_DIR}/python
uname -m
${PYTHON} -c "import platform;print(platform.python_version());print(platform.system());print(platform.machine())"
mv special_functions special_functions_do_dot_import
- conda install -c s-ameli special_functions
${PYTHON} -m pip install --upgrade pip
${PYTHON} -m pip install --upgrade special_functions
${PYTHON} -m pip install numpy
${PYTHON} -m pip install -r tests/requirements.txt
mv special_functions special_functions_do_dot_import
${PYTHON} -m pytest
6 changes: 3 additions & 3 deletions tools/ci/cirrus_deploy_conda_macosx_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ conda_test_macosx_arm64_task:
test_script:
- source ./tools/wheels/upload_wheels.sh
- install_anaconda "macosx_arm64"
- set -xe
- set -x
- CONDA_BIN_DIR=$(dirname `which conda`)
- PYTHON=${CONDA_BIN_DIR}/python
- uname -m
- ${PYTHON} -c "import platform;print(platform.python_version());print(platform.system());print(platform.machine())"
- mv special_functions special_functions_do_dot_import
- conda install -c s-ameli special_functions
- ${PYTHON} -m pip install --upgrade pip
- ${PYTHON} -m pip install --upgrade special_functions
- ${PYTHON} -m pip install numpy
- ${PYTHON} -m pip install -r tests/requirements.txt
- mv special_functions special_functions_do_dot_import
- ${PYTHON} -m pytest
7 changes: 4 additions & 3 deletions tools/ci/cirrus_deploy_pypi_linux_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,13 @@ pypi_test_linux_aarch64_task:
test_script: |
apt update
apt install -y python3
set -xe
set -x
which python3
uname -m
python3 -c "import platform;print(platform.python_version());print(platform.system());print(platform.machine())"
mv special_functions special_functions_do_dot_import
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade special_functions
python3 -m pip install --prefer-binary --upgrade special_functions
python3 -m pip install numpy
python3 -m pip install -r tests/requirements.txt
mv special_functions special_functions_do_dot_import
python3 -m pytest
6 changes: 3 additions & 3 deletions tools/ci/cirrus_deploy_pypi_macosx_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ pypi_test_macosx_arm64_task:
test_script:
- brew install python@${PY_VER}
- ln -s python3 /opt/homebrew/opt/python@${PY_VER}/bin/python
- set -xe
- set -x
- which python3
- uname -m
- python3 -c "import platform;print(platform.python_version());print(platform.system());print(platform.machine())"
- mv special_functions special_functions_do_dot_import
- python3 -m pip install --upgrade pip
- python3 -m pip install --upgrade special_functions
- python3 -m pip install --prefer-binary --upgrade special_functions
- python3 -m pip install numpy
- python3 -m pip install -r tests/requirements.txt
- mv special_functions special_functions_do_dot_import
- python3 -m pytest

0 comments on commit 9a5b830

Please sign in to comment.