diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 66d075a..0dca17c 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -37,10 +37,14 @@ jobs: # python -m pip install . python setup.py install + # Do not test on pypy since the test scripts require scipy to be able to compare the results + # of this package with those of scipy. However, pypy tries to compile scipy from source and + # raises error of BLAS not found. - name: Test + if: (!contains(matrix.python-version, 'pypy')) run: | python -m pip install --upgrade pytest python -m pip install --upgrade pytest-cov - python -m pip install -r tests/requirements.txt + python -m pip install --prefer-binary -r tests/requirements.txt mv special_functions special_functions_do_not_import pytest diff --git a/.github/workflows/deploy-conda.yml b/.github/workflows/deploy-conda.yml index 26e4ec1..6d9c8cf 100644 --- a/.github/workflows/deploy-conda.yml +++ b/.github/workflows/deploy-conda.yml @@ -1,9 +1,9 @@ name: deploy-conda on: - # push: - # branches: - # - main + push: + branches: + - main release: types: - published diff --git a/README.rst b/README.rst index 98e305d..7c076b5 100644 --- a/README.rst +++ b/README.rst @@ -52,9 +52,9 @@ Successful installation and tests have been performed on the following platforms +==========+======+======+======+======+======+=======+=================+ | Linux | |y| | |y| | |y| | |y| | |y| | |y| | |build-linux| | +----------+------+------+------+------+------+-------+-----------------+ -| macOS | |y| | |y| | |y| | |y| | |n| | |n| | |build-macos| | +| macOS | |y| | |y| | |y| | |n| | |n| | |n| | |build-macos| | +----------+------+------+------+------+------+-------+-----------------+ -| Windows | |y| | |y| | |y| | |y| | |n| | |n| | |build-windows| | +| Windows | |y| | |y| | |y| | |n| | |n| | |n| | |build-windows| | +----------+------+------+------+------+------+-------+-----------------+ .. |build-linux| image:: https://github.com/ameli/special_functions/workflows/build-linux/badge.svg diff --git a/docs/source/install.rst b/docs/source/install.rst index 2424d2e..30c35e8 100644 --- a/docs/source/install.rst +++ b/docs/source/install.rst @@ -21,9 +21,9 @@ Successful installation and tests have been performed on the following platforms +==========+======+======+======+======+======+=======+=================+ | Linux | |y| | |y| | |y| | |y| | |y| | |y| | |build-linux| | +----------+------+------+------+------+------+-------+-----------------+ -| macOS | |y| | |y| | |y| | |y| | |n| | |n| | |build-macos| | +| macOS | |y| | |y| | |y| | |n| | |n| | |n| | |build-macos| | +----------+------+------+------+------+------+-------+-----------------+ -| Windows | |y| | |y| | |y| | |y| | |n| | |n| | |build-windows| | +| Windows | |y| | |y| | |y| | |n| | |n| | |n| | |build-windows| | +----------+------+------+------+------+------+-------+-----------------+ .. |build-linux| image:: https://github.com/ameli/special_functions/workflows/build-linux/badge.svg diff --git a/setup.py b/setup.py index 01d18cd..2dab54e 100644 --- a/setup.py +++ b/setup.py @@ -121,6 +121,7 @@ def configuration(parent_package='', top_path=None): 'wraparound': False, 'nonecheck': False, 'embedsignature': True, + 'cpow': True, 'linetrace': True }) diff --git a/special_functions/__version__.py b/special_functions/__version__.py index 788da1f..fe404ae 100644 --- a/special_functions/__version__.py +++ b/special_functions/__version__.py @@ -1 +1 @@ -__version__ = "0.2.4" +__version__ = "0.2.5" diff --git a/tests/test_besselh.py b/tests/test_besselh.py index 84f07d6..ec2b3e2 100755 --- a/tests/test_besselh.py +++ b/tests/test_besselh.py @@ -10,10 +10,10 @@ from scipy.special import hankel1, hankel2, jvp, yvp from math import isnan import warnings +import numpy warnings.filterwarnings( "ignore", message="invalid value encountered in cdouble_scalars") -import numpy numpy.seterr(divide='ignore', invalid='ignore') diff --git a/tests/test_besseli.py b/tests/test_besseli.py index ce81687..cf7dad9 100755 --- a/tests/test_besseli.py +++ b/tests/test_besseli.py @@ -9,6 +9,7 @@ from special_functions import besseli from scipy.special import i0, i1, iv, ivp from math import isnan, isinf, copysign +import numpy import warnings warnings.filterwarnings( "ignore", @@ -16,7 +17,6 @@ warnings.filterwarnings( "ignore", message="invalid value encountered in cdouble_scalars") -import numpy numpy.seterr(divide='ignore', invalid='ignore') diff --git a/tests/test_besselj.py b/tests/test_besselj.py index 0e65122..e156d1d 100755 --- a/tests/test_besselj.py +++ b/tests/test_besselj.py @@ -9,6 +9,7 @@ from special_functions import besselj from scipy.special import j0, j1, jn, jv, jvp from math import isnan, isinf, copysign +import numpy import warnings warnings.filterwarnings( "ignore", @@ -16,7 +17,6 @@ warnings.filterwarnings( "ignore", message="invalid value encountered in cdouble_scalars") -import numpy numpy.seterr(divide='ignore', invalid='ignore') diff --git a/tests/test_besselk.py b/tests/test_besselk.py index 11d2bea..518f4cc 100755 --- a/tests/test_besselk.py +++ b/tests/test_besselk.py @@ -9,6 +9,7 @@ from special_functions import besselk from scipy.special import k0, k1, kn, kv, kvp from math import isnan, isinf, copysign +import numpy import warnings warnings.filterwarnings( "ignore", @@ -16,7 +17,6 @@ warnings.filterwarnings( "ignore", message="invalid value encountered in cdouble_scalars") -import numpy numpy.seterr(divide='ignore', invalid='ignore') diff --git a/tests/test_bessely.py b/tests/test_bessely.py index 3d9bc75..77d2e74 100755 --- a/tests/test_bessely.py +++ b/tests/test_bessely.py @@ -9,6 +9,7 @@ from special_functions import bessely from scipy.special import yn, yv, yvp from math import isnan, isinf, copysign +import numpy import warnings warnings.filterwarnings( "ignore", @@ -16,7 +17,6 @@ warnings.filterwarnings( "ignore", message="invalid value encountered in cdouble_scalars") -import numpy numpy.seterr(divide='ignore', invalid='ignore')