Skip to content

Commit

Permalink
Update setup etc. following other projects' example
Browse files Browse the repository at this point in the history
  • Loading branch information
saimn committed Jun 22, 2021
1 parent fbf242c commit 7239ca4
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ htmlcov

# PyCharm
.idea

sphinx_astropy/version.py
pip-wheel-metadata/
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build-system]
requires = ["setuptools>=30.3.0",
"setuptools_scm",
"wheel"]
build-backend = 'setuptools.build_meta'
17 changes: 7 additions & 10 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
[metadata]
name = sphinx-astropy
version = attr:sphinx_astropy.__version__
url = https://github.com/astropy/sphinx-astropy
author = The Astropy Developers
author_email = [email protected]
classifiers =
Intended Audience :: Developers
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 3
Operating System :: OS Independent
License :: OSI Approved :: BSD License
Intended Audience :: Developers
Programming Language :: Python
Programming Language :: Python :: 3
Operating System :: OS Independent
License :: OSI Approved :: BSD License
license = BSD
description = Sphinx extensions and configuration specific to the Astropy project
long_description = file: README.rst

[bdist_wheel]
universal = 1
long_description_content_type = text/x-rst

[options]
zip_safe = False
packages = find:
python_requires = >=3.7
install_requires =
sphinx>=1.7
astropy-sphinx-theme
Expand Down
14 changes: 4 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@

# Licensed under a 3-clause BSD style license - see LICENSE.rst

import sys
import setuptools
from distutils.version import LooseVersion
import os
from setuptools import setup

# Setuptools 30.3.0 or later is needed for setup.cfg options to be used
if LooseVersion(setuptools.__version__) < LooseVersion('30.3.0'):
sys.stderr.write("ERROR: sphinx-automodapi requires setuptools 30.3.0 or "
"later (found {0})".format(setuptools.__version__))
sys.exit(1)

setup()
setup(
use_scm_version={'write_to': os.path.join('sphinx_astropy', 'version.py')}
)
2 changes: 1 addition & 1 deletion sphinx_astropy/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.4.dev0'
from .version import version as __version__ # noqa

0 comments on commit 7239ca4

Please sign in to comment.