Skip to content

Commit

Permalink
restrict numpy to <1.25 on python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
bhazelton committed Jun 22, 2023
1 parent caf9194 commit aacc3a5
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ workflows:
- pyuvdata:
name: pyuvdata_3.11
python_version: "3.11"
env_name: "pyuvdata_tests"
env_name: "pyuvdata_tests_311"
- pyuvdata:
name: pyuvdata_min_deps
python_version: "3.9"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/macosx_windows_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ jobs:
if [[ "${{ runner.os }}" = "Windows" ]]; then
echo "::set-output name=ENV_NAME::pyuvdata_tests_windows"
else
echo "::set-output name=ENV_NAME::pyuvdata_tests"
if [[ "${{ matrix.python-version }}" == "3.11"]]; then
echo "::set-output name=ENV_NAME::pyuvdata_tests"
else
echo "::set-output name=ENV_NAME::pyuvdata_tests_311"
fi
fi
id: env_name

Expand Down
30 changes: 30 additions & 0 deletions ci/pyuvdata_tests_311.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Need a special environment file for python 3.11 because h5py <3.9 throws lots of
# deprecation warnings with numpy >= 1.25. But h5py 3.9 cannot be resolved with other
# dependencies on python 3.11. So we're restricting numpy to <1.25 on python 3.11 for now.
name: pyuvdata_tests_311
channels:
- conda-forge
dependencies:
- astropy>=5.0.4
- astropy-healpix>=0.6
- astroquery>=0.4.4
- docstring_parser>=0.15
- h5py>=3.1
- hdf5plugin>=3.1.0
- numpy>=1.20.*,<1.25
- pyerfa>=2.0
- python-casacore>=3.3.1
- pyyaml>=5.1
- scipy>=1.5
- coverage
- pytest>=6.2.0
- pytest-cases>=3.6.9
- pytest-cov
- pytest-xdist
- cython
- setuptools_scm<7.0|>=7.0.3
- pip
- pip:
- lunarsky>=0.2.1
- novas
- novas_de405

0 comments on commit aacc3a5

Please sign in to comment.