Skip to content

Commit

Permalink
Merge pull request #78 from pllim/bump-minver
Browse files Browse the repository at this point in the history
MNT: Bump minversions, update CI matrix, modernize build setup
  • Loading branch information
bsipocz authored Feb 3, 2025
2 parents f593235 + 73a5fe1 commit b2135a2
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: "3.8"
python-version: "3.12"

- name: Install build dependencies
run: python -m pip install pip build "twine>=3.3" -U
Expand Down
41 changes: 26 additions & 15 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,41 @@ jobs:
fail-fast: false
matrix:
include:
- os: windows-latest
python-version: 3.7
toxenv: py38-test-sphinx30
- os: ubuntu-latest
python-version: 3.8
toxenv: py38-test-sphinx35
- os: ubuntu-latest
python-version: 3.9
toxenv: py39-test-sphinx40
- os: ubuntu-latest
toxenv: py39-test-sphinx_oldest

- os: windows-latest
python-version: "3.10"
toxenv: py310-test-sphinx50
toxenv: py310-test-sphinx53

- os: macos-latest
python-version: "3.10"
toxenv: py310-test-sphinx62

- os: ubuntu-latest
python-version: "3.11"
toxenv: py311-test-sphinx60
- os: ubuntu-latest
toxenv: py311-test-sphinx70

- os: windows-latest
python-version: "3.11"
toxenv: py311-test-v2deps-sphinx70
toxenv: py311-test-v2deps-sphinx71

- os: macos-latest
python-version: "3.11"
toxenv: py311-test-sphinx72

- os: ubuntu-latest
python-version: "3.12"
toxenv: py312-test-sphinx80
toxenv: py312-test-v2deps-sphinx80

- os: windows-latest
python-version: "3.12"
toxenv: py312-test-sphinx81

- os: macos-latest
python-version: "3.11"
toxenv: py311-test-sphinxdev
python-version: "3.13"
toxenv: py313-test-v2deps-sphinxdev

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changes in sphinx-astropy
2.0 (unreleased)
----------------

- Update minimum required version of Sphinx to 4.0.0
and Python to 3.9. [#78]

1.9.1 (2023-06-07)
------------------

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014-2023, Astropy Developers
Copyright (c) 2014-2025, Astropy Developers

All rights reserved.

Expand Down
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ include README.rst
include CHANGES.rst
include LICENSE.rst

include setup.cfg
include pyproject.toml

exclude *.pyc *.o
prune build
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[build-system]
requires = ["setuptools>=30.3.0",
"setuptools_scm",
"setuptools_scm>=8.0.0",
"wheel"]
build-backend = 'setuptools.build_meta'

[tool.setuptools_scm]
version_file = "sphinx_astropy/version.py"
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ long_description_content_type = text/x-rst
[options]
zip_safe = False
packages = find:
python_requires = >=3.7
python_requires = >=3.9
install_requires =
packaging
sphinx>=3.0.0
sphinx>=4.0.0
astropy-sphinx-theme
numpydoc
sphinx-automodapi
Expand Down
8 changes: 0 additions & 8 deletions setup.py

This file was deleted.

20 changes: 7 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
[tox]
envlist =
py{37,38,39,310,311}-test{-v2deps}{-sphinx30,-sphinx35,-sphinx40,-sphinx50,-sphinx60,-sphinx70,-sphinx80,-sphinxdev}
py{39,310,311,312,313}-test{-v2deps}-sphinx{_oldest,53,62,70,71,72,80,81,dev}
codestyle
requires =
setuptools >= 30.3.0
pip >= 19.3.1
isolated_build = true

[testenv]
changedir = .tmp/{envname}
Expand All @@ -14,16 +10,14 @@ extras =
tests
v2deps: confv2
deps =
sphinx30: sphinx==3.0.*
sphinx30: docutils==0.17.*
sphinx30: Jinja2==3.0.3
sphinx35: sphinx==3.5.*
sphinx35: Jinja2==3.0.3
sphinx40: sphinx==4.0.*
sphinx50: sphinx==5.0.*
sphinx60: sphinx==6.0.*
sphinx_oldest: sphinx==4.0.0
sphinx53: sphinx==5.3.*
sphinx62: sphinx==6.2.*
sphinx70: sphinx==7.0.*
sphinx71: sphinx==7.1.*
sphinx72: sphinx==7.2.*
sphinx80: sphinx==8.0.*
sphinx81: sphinx==8.1.*
sphinxdev: git+https://github.com/sphinx-doc/sphinx#egg=sphinx

commands =
Expand Down

0 comments on commit b2135a2

Please sign in to comment.