-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from astrofrog/update-infrastructure
Fix compatibility with latest version of astropy and update infrastructure
- Loading branch information
Showing
13 changed files
with
174 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
changelog: | ||
exclude: | ||
authors: | ||
- pre-commit-ci | ||
labels: | ||
- no-changelog-entry-needed | ||
- skip-changelog | ||
|
||
categories: | ||
- title: New Features | ||
labels: | ||
- enhancement | ||
- title: Bug Fixes | ||
labels: | ||
- bug | ||
- title: Documentation | ||
labels: | ||
- documentation | ||
- title: Other Changes | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,32 @@ | ||
name: Run tests | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
tests: | ||
name: ${{ matrix.name}} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
python-version: 3.9 | ||
name: Python 3.9 with minimal dependencies | ||
toxenv: py39-test | ||
- os: ubuntu-latest | ||
python-version: 3.8 | ||
name: Python 3.8 with minimal dependencies | ||
toxenv: py38-test | ||
- os: ubuntu-latest | ||
python-version: 3.7 | ||
name: Python 3.7 with minimal dependencies | ||
toxenv: py37-test | ||
- os: ubuntu-latest | ||
python-version: 3.9 | ||
name: Python 3.9, all non-visualization dependencies, and dev versions of key dependencies | ||
toxenv: py39-test-novis-dev | ||
- os: windows-latest | ||
python-version: 3.9 | ||
name: Python 3.9, all dependencies, and dev versions of key dependencies on Windows | ||
toxenv: py39-test-all-dev | ||
- os: ubuntu-latest | ||
python-version: 3.9 | ||
name: Documentation | ||
toxenv: build_docs | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install testing dependencies | ||
run: python -m pip install tox codecov | ||
- name: Run tests with ${{ matrix.name }} | ||
if: ${{ contains(matrix.toxenv,'-cov') }} | ||
run: tox -v -e ${{ matrix.toxenv }} | ||
- name: Upload coverage to codecov | ||
if: ${{ contains(matrix.toxenv,'-cov') }} | ||
uses: codecov/[email protected] | ||
with: | ||
file: ./coverage.xml | ||
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1 | ||
with: | ||
display: true | ||
libraries: | | ||
apt: | ||
- '^libxcb.*-dev' | ||
- libxkbcommon-x11-dev | ||
- libegl1-mesa | ||
envs: | | ||
- linux: py38-test-oldestdeps | ||
- linux: py39-test | ||
- linux: py310-test-viz | ||
- linux: py311-test-alldeps | ||
- linux: py312-test-devdeps | ||
- macos: py38-test-oldestdeps | ||
- macos: py39-test | ||
- macos: py310-test-viz | ||
- macos: py311-test-alldeps | ||
- macos: py312-test-devdeps | ||
- windows: py38-test-oldestdeps | ||
- windows: py39-test | ||
- windows: py310-test-viz | ||
- windows: py311-test-alldeps | ||
- windows: py312-test-devdeps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This workflow takes the GitHub release notes and updates the changelog on the | ||
# main branch with the body of the release notes, thereby keeping a log in | ||
# the git repo of the changes. | ||
|
||
name: "Update Changelog" | ||
|
||
on: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: main | ||
|
||
- name: Update Changelog | ||
uses: stefanzweifel/changelog-updater-action@v1 | ||
with: | ||
release-notes: ${{ github.event.release.body }} | ||
latest-version: ${{ github.event.release.name }} | ||
path-to-changelog: CHANGES.md | ||
|
||
- name: Commit updated Changelog | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
branch: main | ||
commit_message: Update CHANGELOG | ||
file_pattern: CHANGES.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,3 +58,5 @@ distribute-*.tar.gz | |
|
||
# Mac OSX | ||
.DS_Store | ||
|
||
.tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# v0.3 (2022-03-31) | ||
|
||
## What's Changed | ||
|
||
* Plot docs and convenience tools by @keflavich in https://github.com/radio-astro-tools/pvextractor/pull/102 | ||
* Add gh actions by @keflavich in https://github.com/radio-astro-tools/pvextractor/pull/103 | ||
* try to fix grid by removing 'novis' by @keflavich in https://github.com/radio-astro-tools/pvextractor/pull/105 | ||
* allow DaskSpectralCube, etc. to work by @keflavich in https://github.com/radio-astro-tools/pvextractor/pull/99 | ||
|
||
**Full Changelog**: https://github.com/radio-astro-tools/pvextractor/compare/v0.2...v0.3 | ||
|
||
# v0.2 (2020-04-19) | ||
|
||
* Update package infrastructure. #93, #96 | ||
* Fix compatibility with the latest versions of Python and Matplotlib. #89, #95 | ||
* Added `return_area` option for `extract_poly_slices`. #59 | ||
* Fix error that occurred when WCS did not have a PC matrix defined. #90 | ||
|
||
# v0.1 (2018-01-26) | ||
|
||
* First official release. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,7 @@ | ||
# Licensed under a 3-clause BSD style license - see LICENSE.rst | ||
|
||
""" | ||
This is an Astropy affiliated package. | ||
""" | ||
|
||
# Affiliated packages may add whatever they like to this file, but | ||
# should keep this content at the top. | ||
# ---------------------------------------------------------------------------- | ||
from ._astropy_init import * | ||
# ---------------------------------------------------------------------------- | ||
|
||
if not _ASTROPY_SETUP_: | ||
|
||
from . import utils | ||
from .pvextractor import extract_pv_slice | ||
from .utils.wcs_slicing import slice_wcs | ||
from .geometry import Path, PathFromCenter | ||
from .pvregions import paths_from_regfile | ||
from . import utils | ||
from .pvextractor import extract_pv_slice | ||
from .utils.wcs_slicing import slice_wcs | ||
from .geometry import Path, PathFromCenter | ||
from .pvregions import paths_from_regfile |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.