Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #365 from dstansby/python-support
Browse files Browse the repository at this point in the history
Bump supported Python versions
  • Loading branch information
dstansby committed May 12, 2023
2 parents 289a20e + 82cac72 commit 04ecc65
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 53 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/python-lint.yml

This file was deleted.

26 changes: 9 additions & 17 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Automated tests

on:
Expand All @@ -15,28 +12,23 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- name: linux py38-mindeps
os: ubuntu-20.04
python-version: '3.8'
pip-extras: '"sunpy<3.1" "astropy<5.1" "matplotlib<3.5"'
- name: linux py39
- name: linux py39-mindeps
os: ubuntu-20.04
python-version: '3.9'
- name: linux py310-numba
os: ubuntu-20.04
python-version: '3.10'
pip-extras: numba
pip-extras: '"sunpy<4.1" "astropy<5.1" "matplotlib<3.5"'

- name: linux py310-devdeps
- name: linux py311-devdeps
os: ubuntu-20.04
python-version: '3.10'
python-version: '3.11'
pip-extras: git+https://github.com/astropy/astropy git+https://github.com/sunpy/sunpy git+https://github.com/dstansby/streamtracer

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -47,6 +39,6 @@ jobs:
run: |
pytest --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
6 changes: 5 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ version: 2

formats: all

build:
os: ubuntu-22.04
tools:
python: "3.10"

python:
version: 3.8
install:
- method: pip
path: .
Expand Down
11 changes: 6 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,29 @@ github_project = dstansby/pfsspy
platform = any
keywords = solar physics, solar, science, sun
classifiers =
Development Status :: 4 - Beta
Development Status :: 6 - Mature
Intended Audience :: Science/Research
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Topic :: Scientific/Engineering :: Physics

[options]
zip_safe = False
python_requires = >=3.8
python_requires = >=3.9
packages = pfsspy
include_package_data = True
install_requires =
astropy>=5.0
numpy
scikit-image
scipy
sunpy[map]>=3,!=3.1.0
sunpy[map]>=4

[options.extras_require]
docs =
Expand All @@ -54,7 +54,7 @@ docs =

test =
numpy
parfive<2
parfive
pytest
pytest-cov
reproject
Expand Down Expand Up @@ -91,6 +91,7 @@ filterwarnings =
# See https://github.com/Cadair/parfive/issues/65
ignore:unclosed <socket
ignore:unclosed transport
ignore:unclosed event loop
# See https://github.com/astropy/astropy/issues/11385
ignore:'datfix' made the change
# Emitted by astropy
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import versioneer

if sys.version_info < (3, 5):
sys.exit('Python versions older than 3.5 are not supported.')
if sys.version_info < (3, 9):
sys.exit('Python versions older than 3.9 are not supported.')

setup(version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass())

0 comments on commit 04ecc65

Please sign in to comment.