Skip to content

Commit fccd170

Browse files
authored
Changelog and bumps for 0.5.0 (#119)
1 parent 4c0e1d4 commit fccd170

File tree

21 files changed

+57
-101
lines changed

21 files changed

+57
-101
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
with:
2626
submodules: false
2727
coverage: codecov
28-
toxdeps: "'tox<4' tox-pypi-filter"
28+
toxdeps: tox-pypi-filter
2929
posargs: -n auto
3030
envs: |
3131
- linux: py311
@@ -36,12 +36,12 @@ jobs:
3636
with:
3737
submodules: false
3838
coverage: codecov
39-
toxdeps: "'tox<4' tox-pypi-filter"
39+
toxdeps: tox-pypi-filter
4040
posargs: -n auto
4141
envs: |
4242
- macos: py310
4343
- windows: py39
44-
- linux: py38-oldestdeps
44+
- linux: py39-oldestdeps
4545
4646
docs:
4747
needs: [test]
@@ -50,8 +50,7 @@ jobs:
5050
default_python: '3.9'
5151
submodules: false
5252
pytest: false
53-
toxdeps: "'tox<4' tox-pypi-filter"
54-
cache-key: docs-${{ github.run_id }}
53+
toxdeps: tox-pypi-filter
5554
libraries: |
5655
apt:
5756
- graphviz
@@ -63,28 +62,12 @@ jobs:
6362
needs: [test]
6463
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
6564
with:
66-
default_python: '3.8'
6765
submodules: false
6866
coverage: codecov
69-
toxdeps: "'tox<4' tox-pypi-filter"
67+
toxdeps: tox-pypi-filter
7068
posargs: -n auto --dist loadgroup
7169
envs: |
72-
- linux: py310-online
73-
74-
cron:
75-
if: |
76-
github.event_name == 'workflow_dispatch' || (
77-
github.event_name == 'pull_request' &&
78-
contains(github.event.pull_request.labels.*.name, 'Run cron CI')
79-
)
80-
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@main
81-
with:
82-
default_python: '3.8'
83-
submodules: false
84-
coverage: codecov
85-
toxdeps: "'tox<4' tox-pypi-filter"
86-
posargs: -n auto
87-
envs: |
70+
- linux: py311-online
8871
- linux: py311-devdeps
8972
9073
publish:
@@ -103,6 +86,7 @@ jobs:
10386
needs: [test]
10487
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@main
10588
with:
89+
python-version: "3.11"
10690
test_extras: 'dev'
10791
test_command: 'pytest -p no:warnings --doctest-rst -m "not mpl_image_compare" --pyargs sunkit_instruments'
10892
submodules: false

CHANGELOG.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
0.5.0 (2023-11-17)
2+
==================
3+
4+
Maintenance release, no new features or bugfixes.
5+
6+
Breaking Changes
7+
----------------
8+
9+
- Increased minimum version of ``sunpy`` to 5.0.0
10+
- Increased minimum version of Python to 3.9
11+
112
0.4.0 (2023-04-04)
213
==================
314

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
A SunPy-affiliated package for solar instrument-specific tools.
2-
---------------------------------------------------------------
1+
A SunPy affiliated package for solar instrument-specific tools
2+
--------------------------------------------------------------
33

44
.. image:: http://img.shields.io/badge/powered%20by-SunPy-orange.svg?style=flat
55
:target: http://www.sunpy.org

examples/calculate_goes_temperature_and_emission_measure.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"""
1111

1212
import matplotlib.pyplot as plt
13-
1413
from sunpy import timeseries as ts
1514
from sunpy.data.sample import GOES_XRS_TIMESERIES
1615

examples/plot_suvi_thematic_map.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@
1212
"""
1313

1414
import matplotlib.pyplot as plt
15+
from astropy.io import fits
1516
from matplotlib.colors import ListedColormap
1617
from matplotlib.patches import Patch
1718
from parfive import Downloader
1819

19-
from astropy.io import fits
20-
2120
from sunkit_instruments.suvi._variables import SOLAR_CLASS_NAME, SOLAR_COLORS
2221

2322
###############################################################################

setup.cfg

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,21 @@ classifiers =
2020
Operating System :: OS Independent
2121
Programming Language :: Python
2222
Programming Language :: Python :: 3
23-
Programming Language :: Python :: 3.8
2423
Programming Language :: Python :: 3.9
2524
Programming Language :: Python :: 3.10
2625
Programming Language :: Python :: 3.11
2726
Topic :: Scientific/Engineering :: Physics
2827

2928
[options]
3029
zip_safe = False
31-
python_requires = >=3.8
30+
python_requires = >=3.9
3231
packages = find:
3332
include_package_data = True
3433
setup_requires =
3534
setuptools_scm
3635
install_requires =
3736
scipy
38-
sunpy[net,timeseries]>=4.0.0
37+
sunpy[net,timeseries]>=5.0.0
3938

4039
[options.extras_require]
4140
tests =
@@ -46,8 +45,8 @@ docs =
4645
sphinx-changelog
4746
sphinx-gallery
4847
sunpy-sphinx-theme
49-
# Not a direct dependency, but we need to pin this until sphinx-changelog is updated (see #6668)
50-
towncrier<22.12.0
48+
# Remove next line when fixed in towncrier; see https://github.com/twisted/towncrier/issues/528
49+
importlib-resources<6
5150

5251
[options.packages.find]
5352
exclude = sunkit_instruments._dev
@@ -82,33 +81,12 @@ filterwarnings =
8281
ignore:numpy.ndarray size changed:RuntimeWarning
8382
ignore:distutils Version classes are deprecated. Use packaging.version instead:DeprecationWarning
8483
ignore:Unknown units for CHANNEL:sunpy.util.exceptions.SunpyUserWarning
84+
ignore:.*is deprecated and slated for removal in Python 3:DeprecationWarning
8585

86-
[pycodestyle]
87-
max_line_length = 100
88-
89-
[flake8]
90-
max-line-length = 100
91-
exclude =
92-
.git,
93-
__pycache__,
94-
docs/conf.py,
95-
build,
96-
rst-directives =
97-
plot
9886

9987
[isort]
100-
balanced_wrapping = True
101-
skip=docs/conf.py
102-
default_section = THIRDPARTY
103-
include_trailing_comma = True
104-
known_astropy = astropy, asdf, sunpy
105-
known_first_party = sunkit_instruments
106-
length_sort = False
107-
length_sort_sections=stdlib
10888
line_length = 110
109-
multi_line_output = 3
110-
no_lines_before = LOCALFOLDER
111-
sections = STDLIB, THIRDPARTY, ASTROPY, FIRSTPARTY, LOCALFOLDER
89+
profile = black
11290

11391
[coverage:run]
11492
omit =

sunkit_instruments/data/test/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"""
22
This package contains all of sunkit-instruments's test data.
33
"""
4+
import fnmatch
5+
import glob
46
import os
57
import re
6-
import glob
7-
import fnmatch
88

99
from astropy.utils.data import get_pkg_data_filename
1010

sunkit_instruments/fermi/fermi.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22
This module provides processing routines for Fermi Gamma-ray Space Telescope
33
(FGST), formerly called the Gamma-ray Large Area Space Telescope (GLAST).
44
"""
5-
import os
65
import copy
7-
import urllib
6+
import os
87
import tempfile
8+
import urllib
99
from collections import OrderedDict
1010

11+
import astropy.units as u
1112
import matplotlib.pyplot as plt
1213
import numpy as np
13-
14-
import astropy.units as u
1514
from astropy.coordinates import Latitude, Longitude
1615
from astropy.io import fits
1716
from astropy.time import TimeDelta

sunkit_instruments/fermi/tests/test_fermi.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
import astropy.units as u
12
import pytest
23
from numpy.testing import assert_almost_equal
3-
4-
import astropy.units as u
54
from sunpy.time import parse_time
65

76
from sunkit_instruments import fermi

sunkit_instruments/goes_xrs/goes_chianti_tem.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import numpy as np
22
import pandas as pd
3-
from scipy import interpolate
4-
53
from astropy import units as u
64
from astropy.io import fits
75
from astropy.time import Time
6+
from scipy import interpolate
87
from sunpy import timeseries as ts
98
from sunpy.data import manager
109
from sunpy.time import parse_time

0 commit comments

Comments
 (0)