Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
push:
branches: ["**"]
pull_request:

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install coverage codecov

- name: Run tests with coverage (unittest discovery)
run: |
coverage run -m unittest discover
coverage xml -o coverage.xml

- name: Upload coverage to Codecov
if: |
github.event_name == 'push' ||
(github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository)
uses: codecov/codecov-action@v4
with:
files: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
70 changes: 70 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Publish

on:
push:
branches: ["main", "master"]
tags:
- "v*"

jobs:
build:
name: Build distributions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install build backend
run: |
python -m pip install --upgrade pip
pip install build

- name: Build sdist and wheel
run: |
python -m build

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/*

publish-testpypi:
name: Publish to TestPyPI (on main/master pushes)
if: github.ref_type == 'branch' && (github.ref_name == 'main' || github.ref_name == 'master')
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist

- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@v1.10.1
with:
packages-dir: dist
repository-url: https://test.pypi.org/legacy/
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}

publish-pypi:
name: Publish to PyPI (on version tag)
if: startsWith(github.ref, 'refs/tags/v')
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.10.1
with:
packages-dir: dist
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[![Build Status](https://travis-ci.org/aarande/nexradaws.svg?branch=master)](https://travis-ci.org/aarande/nexradaws) [![codecov](https://codecov.io/gh/aarande/nexradaws/branch/master/graph/badge.svg)](https://codecov.io/gh/aarande/nexradaws) [![Documentation Status](https://readthedocs.org/projects/nexradaws/badge/?version=latest)](http://nexradaws.readthedocs.io/en/latest/?badge=latest) [![Documentation Status](https://readthedocs.org/projects/nexradaws/badge/?version=devel)](http://nexradaws.readthedocs.io/en/devel/?badge=devel)
[![CI](https://github.com/aarande/nexradaws/actions/workflows/ci.yml/badge.svg)](https://github.com/aarande/nexradaws/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/aarande/nexradaws/branch/master/graph/badge.svg)](https://codecov.io/gh/aarande/nexradaws) [![Documentation Status](https://readthedocs.org/projects/nexradaws/badge/?version=latest)](http://nexradaws.readthedocs.io/en/latest/?badge=latest) [![Documentation Status](https://readthedocs.org/projects/nexradaws/badge/?version=devel)](http://nexradaws.readthedocs.io/en/devel/?badge=devel)
# nexradaws
This module is designed to allow you to query and download Nexrad
radar files from Amazon Web Services S3 Storage. The real-time feed and full historical archive of original
resolution (Level II) NEXRAD data, from June 1991 to present, is now freely available on Amazon S3 for anyone to use.
More information can be found here https://aws.amazon.com/public-datasets/nexrad/.

nexradaws supports Python 3.6+.
nexradaws supports Python 3.8+.

Github - https://github.com/aarande/nexradaws

Expand Down
33 changes: 0 additions & 33 deletions docker_devel/2.7/Dockerfile

This file was deleted.

9 changes: 0 additions & 9 deletions docker_devel/2.7/docker-compose.dev.yml

This file was deleted.

16 changes: 0 additions & 16 deletions docker_devel/2.7/environment.yml

This file was deleted.

5 changes: 0 additions & 5 deletions docker_devel/2.7/requirements_devel.txt

This file was deleted.

33 changes: 0 additions & 33 deletions docker_devel/3.6/Dockerfile

This file was deleted.

9 changes: 0 additions & 9 deletions docker_devel/3.6/docker-compose.dev.yml

This file was deleted.

15 changes: 0 additions & 15 deletions docker_devel/3.6/environment.yml

This file was deleted.

4 changes: 0 additions & 4 deletions docker_devel/3.6/requirements_devel.txt

This file was deleted.

4 changes: 3 additions & 1 deletion docs/source/readthedocs-environment.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
channels:
- conda-forge
dependencies:
- python==3.6
- python==3.8
- pip
- sphinx>=1.4
- pandoc
- nbconvert
Expand All @@ -11,4 +12,5 @@ dependencies:
- basemap
- pytz
- pip:
- pip
- nbsphinx
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

If pyart is installed nexradaws allows you to quickly get pyart objects of downloaded files.

nexradaws supports Python 3.6+.
nexradaws supports Python 3.8+.

Github - https://github.com/aarande/nexradaws

Expand Down Expand Up @@ -43,13 +43,18 @@
keywords='weather,radar,nexrad,aws,amazon',
download_url='https://github.com/aarande/nexradaws/archive/2.0.0.tar.gz',
install_requires=['boto3','pytz'],
python_requires='>=3.8',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Topic :: Scientific/Engineering :: Atmospheric Science',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
)