Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.12 Backports #1444

Merged
merged 75 commits into from
Aug 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
c1aa1b1
MNT: Remove print_log option from default pytest config
dopplershift Apr 16, 2020
464da8b
MNT: Add matplotlib trove classifier
dopplershift Mar 26, 2020
4be5333
ENH: Add a custom GitHub Action for our CI
dopplershift Jul 24, 2020
8412c6b
MNT: get_test_data should come from cbook not testing
dopplershift Jul 25, 2020
b623eba
MNT: Fix doctests for updates to Pint's printing
dopplershift Jul 1, 2020
0457fef
MNT: Update link to WMO No. 8
dopplershift Jul 25, 2020
a44966a
MNT: Fix linkchecker
dopplershift Jul 25, 2020
41c3985
MNT: Update Travis configuration
dopplershift Jul 26, 2020
1aed453
MNT: Replace AppVeyor badge with GitHub CI action
dopplershift Jul 26, 2020
3f48e74
MNT: Update docs to remove AppVeyor
dopplershift Jul 26, 2020
8d0563d
MNT: So long AppVeyor
dopplershift Jul 26, 2020
b14c9d1
MNT: No longer need this environment.yml
dopplershift Jul 26, 2020
8c97c66
MNT: Fix GitHub Action CI badge
dopplershift Jul 27, 2020
2758bab
ENH: Add GitHub Action for linting
dopplershift Jul 27, 2020
885cbb1
ENH: Run doc8 as part of linting
dopplershift Jul 27, 2020
9edf73b
ENH: Pin versions for linting tools
dopplershift Jul 27, 2020
32523eb
MNT: Remove linting utilities from setup.cfg
dopplershift Jul 27, 2020
73b9a21
MNT: Wrap some long lines in references
dopplershift Jul 1, 2020
7e0b6a3
MNT: Don't try to run doc8 on Travis
dopplershift Jul 27, 2020
d39f53c
MNT: Improve error message when parsing colortable
dopplershift Mar 31, 2020
e87cae8
ENH: Add dependabot config
dopplershift Jul 27, 2020
1b81881
MNT:(deps): Bump pyflakes from 2.1.1 to 2.2.0 in /ci
dependabot[bot] Jul 27, 2020
85ed347
MNT:(deps): Bump pytest from 5.4.2 to 5.4.3 in /ci
dependabot[bot] Jul 27, 2020
7e98b3a
MNT: Disable Travis building dependabot branches
dopplershift Jul 27, 2020
f28a48c
MNT: Only run linting workflow on PRs and master
dopplershift Jul 27, 2020
0ef2b26
MNT:(deps): Bump pint from 0.13 to 0.14 in /ci
dependabot[bot] Jul 27, 2020
611ed81
MNT: Fixup dependabot config
dopplershift Jul 27, 2020
31cc02b
MNT: Update redirecting link
dopplershift Jul 1, 2020
73ff6a8
MNT: Rename dependency files
dopplershift Jul 27, 2020
e555eda
MNT: Reduce output of install ourselves in CI
dopplershift Jul 27, 2020
b3482cd
MNT: Add hack to adjust scipy version only on Windows
dopplershift Jul 27, 2020
8bc1092
MNT:(deps): Bump scipy from 1.5.0 to 1.5.2 in /ci
dependabot[bot] Jul 27, 2020
64edc50
MNT:(deps): Bump cartopy from 0.17.0 to 0.18.0 in /ci
dependabot[bot] Jul 27, 2020
2914f21
ENH: Fix MetPyMapFeature for CartoPy 0.18
dopplershift May 13, 2020
69a6779
MNT: Fix building CartoPy wheels in CI
dopplershift Jul 27, 2020
b8d4fd3
MNT: Work-around matplotlib text clipping issue
dopplershift May 14, 2020
7a3838e
MNT: Fix tests for CartoPy 0.18
dopplershift Jun 29, 2020
0ea5613
MNT: Fix contour test consistency
dopplershift Jun 29, 2020
5442776
MNT: Update image thresholds
dopplershift Jul 27, 2020
e2d5a90
MNT: Remove unneeded tolerance for Matplotlib 2.0
dopplershift Jul 27, 2020
7cd8a11
MNT: Fix dependabot config
dopplershift Jul 27, 2020
4c75bb7
MNT: (deps): Bump numpy from 1.18.5 to 1.19.1 in /ci
dependabot[bot] Jul 27, 2020
aa3de8b
MNT: (deps): Bump flake8-quotes from 2.1.1 to 3.2.0 in /ci
dependabot[bot] Jul 27, 2020
6a1174b
Fix _check_argument_units for pint __eq__ returning duck array
jthielen Jul 9, 2020
74e67dc
Construct quantity in masked-array-safe way in equivalent potential t…
jthielen May 14, 2020
72e3355
MNT:(deps): Bump pycodestyle from 2.5.0 to 2.6.0 in /ci
dependabot[bot] Jul 27, 2020
a8c9aa5
MNT: Fix new lint found by pycodestyle
dopplershift Jul 28, 2020
0888901
MNT: Fix test for NumPy 1.19
dopplershift Jul 1, 2020
68c41e0
MNT: Tweak image tolerance
dopplershift Jul 1, 2020
73cfb16
MNT:(deps): Bump flake8 from 3.7.9 to 3.8.3 in /ci
dependabot[bot] Jul 27, 2020
201ffe5
MNT: Fix new lint found by flake8
dopplershift Jul 28, 2020
0752558
MNT: Remove linting from Travis builds
dopplershift Jul 28, 2020
8053680
MNT: Simplify Travis config
dopplershift Jul 28, 2020
f8528c1
MNT: Fix Travis dev builds
dopplershift Jul 28, 2020
a27f409
MNT: Fix caching in GitHub Action CI
dopplershift Jul 28, 2020
6914a72
MNT: Clean-up setup.cfg
dopplershift Jul 28, 2020
4609796
MNT: Synchronize pins for netCDF4
dopplershift Jul 28, 2020
9ff7d29
Fix masked arrays breaking wind_direction #1390
rpmanser Jul 14, 2020
34767ee
MNT:(deps): Bump xarray from 0.15.1 to 0.16.0 in /ci
dependabot[bot] Jul 27, 2020
cf558eb
Removing 'Say Thanks' Link
LProx2020 Jun 22, 2020
985fd49
MNT:(deps): Bump matplotlib from 3.2.1 to 3.3.0 in /ci
dependabot[bot] Jul 28, 2020
be7502c
MNT: Remove uses of patch_round fixture
dopplershift Jul 1, 2020
03e8ced
MNT: Updates for matplotlib 3.3
dopplershift Jul 1, 2020
cc9d3f1
MNT: Tweak CodeCov config
dopplershift Jul 29, 2020
9a0c4fb
ENH: Add workflow performing CodeQL analysis
dopplershift Jul 29, 2020
f02b805
CI: Tighten tolerance on CodeCov check
dopplershift Jul 29, 2020
814260f
CI: Refactor CI GitHub Actions workflow
dopplershift Jul 29, 2020
e7fc100
CI: Cache CartoPy map data
dopplershift Jul 29, 2020
8ba9e77
CI: Change key structure for caching in workflows
dopplershift Jul 29, 2020
8e0fd95
MNT: Update badges in readme for workflow updates
dopplershift Jul 29, 2020
cf74207
MNT: (deps): Bump pytest from 5.4.3 to 6.0.0 in /ci
dependabot[bot] Jul 29, 2020
ddd7b18
MNT: (deps): Bump pytest from 6.0.0 to 6.0.1 in /ci
dependabot[bot] Jul 31, 2020
ecf31dd
DOC: Fix formatting of link in references (Fixes #1427)
dopplershift Aug 5, 2020
87c0700
CI: Fix up branches for workflows
dopplershift Aug 5, 2020
c813544
MNT: Update test image thresholds for Matplotlib 3.3
dopplershift Jul 29, 2020
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
59 changes: 0 additions & 59 deletions .appveyor.yml

This file was deleted.

8 changes: 1 addition & 7 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,10 @@ coverage:
patch:
default:
target: '80'
if_no_uploads: error
if_not_found: success
if_ci_failed: failure
project:
default: false
library:
target: auto
if_no_uploads: error
if_not_found: success
if_ci_failed: failure
threshold: 0.1%
paths:
- "src/metpy/.*"

Expand Down
40 changes: 40 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
version: 2

updates:
- package-ecosystem: pip
directory: "/ci"
schedule:
interval: daily
time: "06:00"
timezone: "America/Denver"

allow:
- dependency-type: all

open-pull-requests-limit: 10
pull-request-branch-name:
separator: "-"
labels:
- "Type: Maintenance"
commit-message:
prefix: "MNT: "
include: "scope"

- package-ecosystem: "github-actions"
# Workflow files stored in the
# default location of `.github/workflows`
directory: "/"
schedule:
interval: "daily"

allow:
- dependency-type: all

open-pull-requests-limit: 10
pull-request-branch-name:
separator: "-"
labels:
- "Type: Maintenance"
commit-message:
prefix: "MNT: "
include: "scope"
46 changes: 46 additions & 0 deletions .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "Code Analysis"

on:
push:
branches: [0.12.x]
pull_request:
schedule:
- cron: '0 8 * * 6'

jobs:
CodeQL:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
111 changes: 111 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: Build Docs

# We don't want pushes (or PRs) to gh-pages to kick anything off
on:
push:
branches: [ 0.12.x ]
pull_request:

jobs:
#
# Build our docs on Linux against multiple Pythons, including pre-releases
#
Docs:
name: ${{ matrix.python-version }} ${{ matrix.dep-versions }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7]
linkcheck: ['']
dep-versions: [Current.txt]
git-versions: ['']
experimental: [false]
include:
- python-version: 3.8
linkcheck: linkcheck
dep-versions: Current.txt
git-versions: ''
experimental: false
- python-version: 3.8
linkcheck: ''
dep-versions: Prerelease
git-versions: 'git+git://github.com/hgrecco/pint@master#egg=pint git+git://github.com/pydata/xarray@master#egg=xarray'
experimental: true

steps:
# We check out only a limited depth and then pull tags to save time
- name: Checkout source
uses: actions/checkout@v2
with:
fetch-depth: 100

- name: Get tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

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

# This uses pip to find the right cache dir and then sets up caching for it
- name: Get pip cache dir
id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)"

- name: Setup pip cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: pip-docs-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('ci/*') }}
restore-keys: |
pip-docs-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('ci/*') }}
pip-docs-${{ runner.os }}-${{ matrix.python-version }}-
pip-docs-${{ runner.os }}-
pip-docs-

# This installs the stuff needed to build and install Shapely and CartoPy from source.
# Need to install numpy first to make CartoPy happy.
- name: Install dependencies (PyPI)
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt-get install libgeos-dev libproj-dev
python -m pip install --upgrade pip setuptools
python -m pip install --no-binary :all: shapely
python -m pip install -c ci/${{ matrix.dep-versions }} numpy
python -m pip install -r ci/doc_requirements.txt -r ci/extra_requirements.txt -c ci/${{ matrix.dep-versions }} ${{ matrix.git-versions }}
python -m pip install -f https://unidata-python.s3.amazonaws.com/wheelhouse/index.html sphinx_rtd_theme==0.2.5b1.post1

# This imports CartoPy to find its map data cache directory
- name: Get CartoPy maps dir
id: cartopy-cache
run: echo "::set-output name=dir::$(python -c 'import cartopy;print(cartopy.config["data_dir"])')"

- name: Setup mapdata caching
uses: actions/cache@v2
env:
# Increase to reset cache of map data
CACHE_NUMBER: 0
with:
path: ${{ steps.cartopy-cache.outputs.dir }}
key: cartopy-${{ env.CACHE_NUMBER }}
restore-keys: cartopy-

- name: Install self
run: python -m pip install -c ci/${{ matrix.dep-versions }} .

- name: Build docs
run: |
export TEST_DATA_DIR=$GITHUB_WORKSPACE/staticdata
pushd docs
make overridecheck html ${{ matrix.linkcheck }} O=-W
popd

- name: Upload docs as artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.python-version }}-docs
path: |
docs/build/html
!docs/_static/*.pdf
42 changes: 42 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Linting
on:
push:
branches: [master]
pull_request:

jobs:
flake8:
name: Flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python 3
uses: actions/setup-python@v1
with:
python-version: 3.x

- name: Install flake8
run: python -m pip install -r ci/linting_requirements.txt

- name: Set up reviewdog
run: |
mkdir -p $HOME/bin
curl -sfL \
https://github.com/reviewdog/reviewdog/raw/master/install.sh | \
sh -s -- -b $HOME/bin
echo ::add-path::$HOME/bin

- name: Run flake8
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
flake8 | reviewdog -f=pep8 -name=flake8 -reporter=github-check -filter-mode=nofilter

- name: Run doc8
# Don't skip doc8 if flake8 fails
if: ${{ always() }}
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
doc8 docs | reviewdog -efm='%f:%l: %m' -name=doc8 -reporter=github-check -filter-mode=nofilter
Loading