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

Bump minimum Python version to 3.9 #83

Merged
merged 3 commits into from
May 14, 2024
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
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
with:
coverage: codecov
envs: |
- linux: py38-test-oldestdeps
- macos: py39-test
- windows: py310-test
- linux: py311-test
- linux: py39-test-oldestdeps
- macos: py310-test
- windows: py311-test
- linux: py312-test-devdeps
publish:
needs: tests
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1
Expand Down
20 changes: 15 additions & 5 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
version: 2

build:
image: latest
os: "ubuntu-22.04"
tools:
python: "3"

sphinx:
builder: html
configuration: docs/conf.py
fail_on_warning: true

python:
version: 3.8
pip_install: true
extra_requirements: ['docs']
install:
- method: pip
path: .
extra_requirements:
- docs

# Don't build any extra formats
formats: []
8 changes: 4 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ github_project = astrofrog/sedfitter
[options]
zip_safe = False
packages = find:
python_requires = >=3.8
python_requires = >=3.9
setup_requires = setuptools_scm
install_requires =
numpy>=1.18
scipy>=1.3
matplotlib>=3.1
numpy>=1.20
scipy>=1.8
matplotlib>=3.4
astropy>=5.0


Expand Down
23 changes: 11 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[tox]
envlist =
py{37,38,39,310,311}-test{,-cov}
py{39,310,311,312}-test
codestyle
requires =
setuptools >= 30.3.0
pip >= 19.3.1
isolated_build = true
indexserver =
NIGHTLY = https://pypi.anaconda.org/scipy-wheels-nightly/simple

[testenv]
setenv = MPLBACKEND=agg
setenv =
MPLBACKEND=agg
devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/liberfa/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
changedir = .tmp/{envname}

description =
Expand All @@ -19,21 +19,20 @@ description =

deps =
cov: coverage
oldestdeps: numpy==1.18.*
oldestdeps: scipy==1.3.*
oldestdeps: matplotlib==3.1.*
oldestdeps: numpy==1.20.*
oldestdeps: scipy==1.8.*
oldestdeps: matplotlib==3.4.*
oldestdeps: astropy==5.0.*
devdeps: :NIGHTLY:numpy
devdeps: git+https://github.com/astropy/astropy.git#egg=astropy
devdeps: numpy>=0.0.dev0
devdeps: scipy>=0.0.dev0
devdeps: astropy>=0.0.dev0

extras =
test

commands =
pip freeze
!cov: pytest --pyargs sedfitter {toxinidir}/docs {posargs}
cov: pytest --pyargs sedfitter {toxinidir}/docs --cov sedfitter --cov-config={toxinidir}/setup.cfg {posargs}
cov: coverage xml -o {toxinidir}/coverage.xml
pytest --pyargs sedfitter {toxinidir}/docs --cov sedfitter --cov-config={toxinidir}/setup.cfg {posargs}

[testenv:codestyle]
skip_install = true
Expand Down
Loading