File tree Expand file tree Collapse file tree 5 files changed +20
-21
lines changed Expand file tree Collapse file tree 5 files changed +20
-21
lines changed 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
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
You can’t perform that action at this time.
0 commit comments