File tree Expand file tree Collapse file tree 10 files changed +31
-80
lines changed Expand file tree Collapse file tree 10 files changed +31
-80
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 10
10
build-n-publish :
11
11
name : Build and publish Python 🐍 distributions 📦 to PyPI
12
12
runs-on : ubuntu-latest
13
- if : github.repository == 'astropy/pytest-doctestplus'
14
13
if : (github.repository == 'astropy/sphinx-astropy' && (github.event_name == 'tags' || contains(github.event.pull_request.labels.*.name, 'Build wheels')))
15
14
16
15
steps :
38
37
cd ..
39
38
python -m venv testenv
40
39
testenv/bin/pip install pytest sphinx-astropy/dist/*.whl
41
- testenv/bin/pytest sphinx-astropy/tests
40
+ testenv/bin/pytest sphinx-astropy/sphinx_astropy
42
41
43
42
- name : Publish distribution 📦 to PyPI
44
43
if : startsWith(github.ref, 'refs/tags')
Original file line number Diff line number Diff line change @@ -19,28 +19,28 @@ jobs:
19
19
include :
20
20
- os : ubuntu-latest
21
21
python-version : 3.7
22
- toxenv : py36 -test-sphinx17
22
+ toxenv : py37 -test-sphinx17
23
23
- os : windows-latest
24
24
python-version : 3.7
25
- toxenv : py36 -test-sphinx18
25
+ toxenv : py37 -test-sphinx18
26
26
- os : macos-latest
27
27
python-version : 3.7
28
28
toxenv : py37-test-sphinx20
29
29
- os : ubuntu-latest
30
30
python-version : 3.8
31
- toxenv : py37 -test-sphinx24
31
+ toxenv : py38 -test-sphinx24
32
32
- os : windows-latest
33
33
python-version : 3.8
34
34
toxenv : py38-test-sphinx30
35
35
- os : ubuntu-latest
36
36
python-version : 3.9
37
- toxenv : py38 -test-sphinx35
37
+ toxenv : py39 -test-sphinx35
38
38
- os : ubuntu-latest
39
39
python-version : 3.9
40
40
toxenv : py39-test-sphinx40
41
41
- os : macos-latest
42
42
python-version : 3.9
43
- toxenv : py38 -test-sphinxdev
43
+ toxenv : py39 -test-sphinxdev
44
44
45
45
steps :
46
46
- uses : actions/checkout@v2
Original file line number Diff line number Diff line change @@ -49,3 +49,6 @@ htmlcov
49
49
50
50
# PyCharm
51
51
.idea
52
+
53
+ sphinx_astropy /version.py
54
+ pip-wheel-metadata /
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ requires = [" setuptools>=30.3.0" ,
3
+ " setuptools_scm" ,
4
+ " wheel" ]
5
+ build-backend = ' setuptools.build_meta'
Original file line number Diff line number Diff line change 1
1
[metadata]
2
2
name = sphinx-astropy
3
- version = attr:sphinx_astropy.__version__
4
3
url = https://github.com/astropy/sphinx-astropy
5
4
author = The Astropy Developers
6
5
7
6
classifiers =
8
- Intended Audience :: Developers
9
- Programming Language :: Python
10
- Programming Language :: Python :: 2
11
- Programming Language :: Python :: 3
12
- Operating System :: OS Independent
13
- License :: OSI Approved :: BSD License
7
+ Intended Audience :: Developers
8
+ Programming Language :: Python
9
+ Programming Language :: Python :: 3
10
+ Operating System :: OS Independent
11
+ License :: OSI Approved :: BSD License
14
12
license = BSD
15
13
description = Sphinx extensions and configuration specific to the Astropy project
16
14
long_description = file: README.rst
17
-
18
- [bdist_wheel]
19
- universal = 1
15
+ long_description_content_type = text/x-rst
20
16
21
17
[options]
22
18
zip_safe = False
23
19
packages = find:
20
+ python_requires = >=3.7
24
21
install_requires =
25
22
sphinx>=1.7
26
23
astropy-sphinx-theme
@@ -30,8 +27,8 @@ install_requires =
30
27
pillow
31
28
32
29
[options.extras_require]
33
- all =
34
- astropy
30
+ all = astropy
31
+ tests = pytest
35
32
36
33
[options.package_data]
37
34
sphinx_astropy = local/*
Original file line number Diff line number Diff line change 2
2
3
3
# Licensed under a 3-clause BSD style license - see LICENSE.rst
4
4
5
- import sys
6
- import setuptools
7
- from distutils .version import LooseVersion
5
+ import os
8
6
from setuptools import setup
9
7
10
- # Setuptools 30.3.0 or later is needed for setup.cfg options to be used
11
- if LooseVersion (setuptools .__version__ ) < LooseVersion ('30.3.0' ):
12
- sys .stderr .write ("ERROR: sphinx-automodapi requires setuptools 30.3.0 or "
13
- "later (found {0})" .format (setuptools .__version__ ))
14
- sys .exit (1 )
15
-
16
- setup ()
8
+ setup (
9
+ use_scm_version = {'write_to' : os .path .join ('sphinx_astropy' , 'version.py' )}
10
+ )
Original file line number Diff line number Diff line change 1
- __version__ = '1.4.dev0'
1
+ from . version import version as __version__ # noqa
Original file line number Diff line number Diff line change 7
7
from __future__ import print_function
8
8
9
9
import re
10
- from distutils .version import LooseVersion
11
10
from docutils .nodes import Text , reference
12
11
13
- from sphinx import __version__
14
-
15
- BLOCK_PATTERN = re .compile ('\[#.+\]' , flags = re .DOTALL )
12
+ BLOCK_PATTERN = re .compile (r'\[#.+\]' , flags = re .DOTALL )
16
13
ISSUE_PATTERN = re .compile ('#[0-9]+' )
17
14
18
15
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ isolated_build = true
10
10
[testenv]
11
11
changedir = .tmp/{envname}
12
12
description = run tests
13
+ extras = tests
13
14
deps =
14
15
sphinx17: sphinx ==1.7.*
15
16
sphinx18: sphinx ==1.8.*
22
23
23
24
commands =
24
25
pip freeze
25
- pytest {toxinidir}/tests {posargs}
26
+ pytest {toxinidir}/sphinx_astropy {posargs}
26
27
27
28
[testenv:codestyle]
28
29
changedir =
You can’t perform that action at this time.
0 commit comments