Skip to content

Commit 13b12c4

Browse files
authored
Merge pull request #168 from pysat/tst/rc_fix
2 parents 7040e79 + f5baa13 commit 13b12c4

File tree

6 files changed

+39
-8
lines changed

6 files changed

+39
-8
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ jobs:
3333

3434
- name: Install NEP29 dependencies
3535
if: ${{ matrix.numpy_ver != 'latest'}}
36-
run: |
37-
pip install --no-binary :numpy: numpy==${{ matrix.numpy_ver }}
38-
pip install pysatCDF --no-binary=pysatCDF
36+
run: pip install numpy==${{ matrix.numpy_ver }}
3937

4038
- name: Install standard dependencies
4139
run: |

.github/workflows/pip_rc_install.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,14 @@ jobs:
2727
run: pip install -r requirements.txt
2828

2929
- name: Install pysatNASA RC
30-
run: pip install --no-deps -i https://test.pypi.org/simple/ pysatNASA
30+
run: pip install --no-deps --pre -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ pysatNASA
31+
32+
- name: Set up pysat
33+
run: |
34+
mkdir pysatData
35+
python -c "import pysat; pysat.params['data_dirs'] = 'pysatData'"
36+
37+
- name: Check that install imports correctly
38+
run: |
39+
cd ..
40+
python -c "import pysatNASA; print(pysatNASA.__version__)"

.github/workflows/pysat_rc.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ jobs:
2929
run: brew reinstall gcc
3030

3131
- name: Install pysat RC
32-
run: pip install --no-deps -i https://test.pypi.org/simple/ pysat
32+
run: pip install --no-deps --pre -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ pysat
3333

3434
- name: Install standard dependencies
3535
run: |
3636
pip install -r requirements.txt
37-
pip install pysatCDF --no-binary=pysatCDF
3837
pip install -r test_requirements.txt
3938
4039
- name: Set up pysat

.readthedocs.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# .readthedocs.yml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the version of Python and other tools you might need
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.10"
13+
14+
# Build documentation in the docs/ directory with Sphinx
15+
sphinx:
16+
configuration: docs/conf.py
17+
18+
19+
# Optionally declare the Python requirements required to build your docs
20+
python:
21+
install:
22+
- requirements: docs/requirements.txt

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@ This project adheres to [Semantic Versioning](https://semver.org/).
4040
* Deprecated jpl_gps instrtument module, moved roti instrument to igs_gps
4141
* Maintenance
4242
* Removed duplicate tests if pysatCDF not isntalled
43-
* Only test pysatCDF on GitHub Actions for older numpy versions
43+
* Removed pysatCDF tests on GitHub Actions workflows (see #167)
4444
* Updated actions and templates based on pysatEcosystem docs
4545
* Remove pandas cap on NEP29 tests
4646
* Updated dosctring style for consistency
4747
* Removed version cap for xarray
4848
* Added manual workflow to check that latest RC is installable through test pip
4949
* Update meta label type for instruments
50+
* Updated GitHub Actions workflows for improved compliance with pip>=23.0
51+
* Added .readthedocs.yml to configure settings there.
5052

5153
## [0.0.4] - 2022-11-07
5254
* Update instrument tests with new test class

pysatNASA/tests/test_instruments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def test_load_cdflib(self, inst_dict):
8787
assert UserWarning in categories
8888
else:
8989
# If error message does not match, raise error anyway
90-
raise(verr)
90+
raise ValueError(verr)
9191

9292
# Make sure fake data is cleared
9393
assert target not in test_inst.data

0 commit comments

Comments
 (0)