Skip to content

Commit 597c91e

Browse files
authored
Merge pull request #137 from pysat/nrl_pub_release
v0.1.0 Release
2 parents 8fa22b7 + acef67c commit 597c91e

102 files changed

Lines changed: 14413 additions & 1741 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ Consider including images or test files to help others reproduce the bug and
2121
solve the problem.
2222

2323
## Test configuration
24-
- OS: [e.g. Hal]
25-
- Version [e.g. Python 3.47]
24+
- OS: [e.g., Hal]
25+
- Version [e.g., Python 3.47]
2626
- Other details about your setup that could be relevant
2727

2828
# Additional context
29-
Add any other context about the problem here.
29+
Add any other context about the problem here, including expected behaviour.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ If relevant, include sample code, images, or files so that others can understand
1414
the full context of your question.
1515

1616
## Configuration
17-
- OS: [e.g. Hal]
18-
- Version [e.g. Python 3.47]
17+
- OS: [e.g., Hal]
18+
- Version: [e.g., Python 3.47]
1919
- Other details about your setup that could be relevant

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Description
22

3-
Addresses # (issue)
3+
Addresses #(issue)
44

55
Please include a summary of the change and which issue is fixed. Please also
66
include relevant motivation and context. List any dependencies that are required

.github/workflows/docs.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
1+
# This workflow will install Python dependencies, run tests and lint with a
2+
# variety of Python versions. For more information see:
3+
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
34

45
name: Documentation Check
56

@@ -8,30 +9,27 @@ on: [push, pull_request]
89
jobs:
910
build:
1011

11-
runs-on: ubuntu-latest
12+
runs-on: ["ubuntu-latest"]
1213
strategy:
1314
fail-fast: false
1415
matrix:
15-
python-version: [3.9]
16+
python-version: ["3.11"]
1617

17-
name:
18+
name: Documentation tests
1819
steps:
19-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2021
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v4
22+
uses: actions/setup-python@v5
2223
with:
2324
python-version: ${{ matrix.python-version }}
2425

25-
- name: Install dependencies
26-
run: |
27-
python -m pip install --upgrade pip
28-
pip install -r test_requirements.txt
29-
pip install -r requirements.txt
26+
- name: Install with dependencies
27+
run: pip install .[doc]
3028

3129
- name: Set up pysat
3230
run: |
3331
mkdir pysatData
34-
python -c "import pysat; pysat.params['data_dirs'] = './pysatData'"
32+
python -c "import pysat; pysat.params['data_dirs'] = 'pysatData'"
3533
3634
- name: Check documentation build
3735
run: sphinx-build -E -b html docs dist/docs

.github/workflows/main.yml

Lines changed: 39 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,36 +15,48 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
os: [ubuntu-latest, macos-latest, windows-latest]
19-
python-version: ["3.9", "3.10"]
20-
numpy_ver: [latest]
18+
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
19+
python-version: ["3.10", "3.11", "3.12"]
20+
numpy_ver: ["latest"]
21+
test_config: ["latest"]
2122
include:
22-
- python-version: "3.8"
23-
numpy_ver: "1.21"
23+
# NEP29 compliance settings
24+
- python-version: "3.9"
25+
numpy_ver: "1.23"
2426
os: ubuntu-latest
27+
test_config: "NEP29"
28+
# Operational compliance settings
2529
- python-version: "3.6.8"
2630
numpy_ver: "1.19.5"
2731
os: "ubuntu-20.04"
32+
test_config: "Ops"
2833

2934
name: Python ${{ matrix.python-version }} on ${{ matrix.os }} with numpy ${{ matrix.numpy_ver }}
3035
runs-on: ${{ matrix.os }}
3136
steps:
32-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
3338
- name: Set up Python ${{ matrix.python-version }}
34-
uses: actions/setup-python@v4
39+
uses: actions/setup-python@v5
3540
with:
3641
python-version: ${{ matrix.python-version }}
3742

38-
- name: Install standard dependencies
43+
- name: Install Operational dependencies
44+
if: ${{ matrix.test_config == 'Ops'}}
3945
run: |
40-
python -m pip install --upgrade pip
46+
pip install numpy==${{ matrix.numpy_ver }}
4147
pip install -r requirements.txt
4248
pip install -r test_requirements.txt
49+
pip install .
4350
4451
- name: Install NEP29 dependencies
45-
if: ${{ matrix.numpy_ver != 'latest'}}
52+
if: ${{ matrix.test_config == 'NEP29'}}
4653
run: |
4754
pip install numpy==${{ matrix.numpy_ver }}
55+
pip install --upgrade-strategy only-if-needed .[test]
56+
57+
- name: Install standard dependencies
58+
if: ${{ matrix.test_config == 'latest'}}
59+
run: pip install .[test]
4860

4961
- name: Set up pysat
5062
run: |
@@ -57,10 +69,23 @@ jobs:
5769
- name: Evaluate complexity
5870
run: flake8 . --count --exit-zero --max-complexity=10 --statistics
5971

60-
- name: Run unit and integration tests
61-
run: pytest --cov=pysatSpaceWeather/
72+
- name: Test with pytest
73+
run: pytest
6274

63-
- name: Run Coveralls
75+
- name: Publish results to coveralls
6476
env:
6577
GITHUB_TOKEN: ${{ secrets.github_token }}
66-
run: coveralls --rcfile=setup.cfg --service=github
78+
COVERALLS_PARALLEL: true
79+
run: coveralls --rcfile=pyproject.toml --service=github
80+
81+
finish:
82+
name: Finish Coverage Analysis
83+
needs: build
84+
runs-on: ubuntu-latest
85+
steps:
86+
- name: Coveralls Finished
87+
env:
88+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89+
run: |
90+
pip install --upgrade coveralls
91+
coveralls --service=github --finish
Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# This workflow will install Python dependencies and the latest RC of pysatNASA from test pypi.
2-
# This test should be manually run before a pysatSpaceWeather RC is officially approved and versioned.
3-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
1+
# This workflow will install Python dependencies and the latest RC of
2+
# pysatSpaceWeather from test pypi. This test should be manually run before a
3+
# pysatSpaceWeather RC is officially approved and versioned. For more
4+
# information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
45

56
name: Test install of latest RC from pip
67

@@ -12,14 +13,14 @@ jobs:
1213
fail-fast: false
1314
matrix:
1415
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
15-
python-version: ["3.10"] # Keep this version at the highest supported Python version
16+
python-version: ["3.12"] # Keep this version at the highest supported Python version
1617

1718
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
1819
runs-on: ${{ matrix.os }}
1920
steps:
20-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2122
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v4
23+
uses: actions/setup-python@v5
2324
with:
2425
python-version: ${{ matrix.python-version }}
2526

@@ -28,3 +29,13 @@ jobs:
2829

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

.github/workflows/pysat_rc.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
1+
# This workflow will install Python dependencies, run tests and lint with a
2+
# variety of Python versions. For more information see:
3+
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
34

45
name: Test with latest pysat RC
56

@@ -10,33 +11,31 @@ jobs:
1011
strategy:
1112
fail-fast: false
1213
matrix:
13-
os: [ubuntu-latest, macos-latest, windows-latest]
14-
python-version: ["3.10"]
14+
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
15+
python-version: ["3.11"]
1516

1617
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
1718
runs-on: ${{ matrix.os }}
1819
steps:
19-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2021
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v4
22+
uses: actions/setup-python@v5
2223
with:
2324
python-version: ${{ matrix.python-version }}
2425

2526
- name: Install pysat RC
2627
run: pip install --no-deps --pre -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ pysat
2728

28-
- name: Install standard dependencies
29-
run: |
30-
pip install -r requirements.txt
31-
pip install -r test_requirements.txt
29+
- name: Install standard dependencies and package
30+
run: pip install .[test]
3231

3332
- name: Set up pysat
3433
run: |
3534
mkdir pysatData
3635
python -c "import pysat; pysat.params['data_dirs'] = 'pysatData'"
3736
3837
- name: Test with pytest
39-
run: pytest -vs --cov=pysatSpaceWeather/
38+
run: pytest
4039

4140
- name: Publish results to coveralls
4241
env:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
*~
22
.DS_store
33

4-
# Python Repository Ignores as Recommended by github.com########################
4+
# Python Repository Ignores as Recommended by github.com
55
# Byte-compiled / optimized / DLL files
66
__pycache__/
77
*.py[cod]

.readthedocs.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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 version of readthedocs
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.11"
13+
14+
# Build documentation in the docs/ directory with Sphinx
15+
sphinx:
16+
configuration: docs/conf.py
17+
18+
19+
# Declare the Python requirements required to build your docs
20+
python:
21+
install:
22+
- method: pip
23+
path: .
24+
extra_requirements:
25+
- doc

ACKNOWLEDGEMENTS.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Funding
2+
=======
3+
The following institutions, missions, and programs have provided funding
4+
for pysatSpaceWeather development.
5+
6+
Institutions
7+
------------
8+
- The Catholic University of America (CUA)
9+
- Cosmic Studio
10+
- Defense Advanced Research Projects Agency (DARPA) Defense Sciences Office
11+
- National Aeronautics and Space Administration (NASA)
12+
- National Science Foundation (NSF)
13+
- Office of Naval Research (ONR)
14+
15+
Programs
16+
--------
17+
- NSF 125908, AGS-1651393
18+
- Naval Research Laboratory N00173191G016 and N0017322P0744
19+
- The Space Precipitation Impacts (SPI) project at Goddard Space Flight Center through the Heliophysics Internal Science Funding Model
20+
21+
Disclaimers
22+
===========
23+
Any opinions or actions taken by the listed funding institutions are those of the institutions and do not necessarily reflect the views of the pysat development team or individual authors. Any opinions, findings, and conclusions or recommendations expressed in this
24+
material are those of the author(s) and do not necessarily reflect the views
25+
of the funding agencies.

0 commit comments

Comments
 (0)