Package with PEP-517

pull/279/head
Ashley Whetter 3 years ago
parent a0591adae4
commit 9372bdb9f1

@ -32,6 +32,7 @@ Trivial/Internal Changes
* Fixed ``FutureWarning`` for ``Node.traverse()`` becoming an iterator instead of list. * Fixed ``FutureWarning`` for ``Node.traverse()`` becoming an iterator instead of list.
* New example implementation of ``autoapi-skip-member`` Sphinx event. * New example implementation of ``autoapi-skip-member`` Sphinx event.
* Can run tests with tox 4. * Can run tests with tox 4.
* Updated packaging to use PEP-517.
V1.7.0 (2021-01-31) V1.7.0 (2021-01-31)

@ -1,6 +1,7 @@
""" """Sphinx AutoAPI"""
Sphinx AutoAPI
"""
from .extension import setup from .extension import setup
from ._version import __version__, __version_info__
__version__ = "1.7.0"
__version_info__ = (1, 7, 0)

@ -1,2 +0,0 @@
__version_info__ = (1, 7, 0)
__version__ = ".".join(str(x) for x in __version_info__)

@ -14,7 +14,7 @@ Pre-Checks
Preparation Preparation
----------- -----------
1. Update the version number in ``autoapi/_version.py``. 1. Update the version numbers in ``autoapi/__init__.py``.
2. Add any missing changelog entries. 2. Add any missing changelog entries.
3. Put the version number and release date into the changelog. 3. Put the version number and release date into the changelog.
4. Commit and push the changes. 4. Commit and push the changes.

@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=46.4.0", "wheel"]
build-backend = "setuptools.build_meta"

@ -1,2 +1,57 @@
[wheel] [metadata]
name = sphinx-autoapi
version = attr: autoapi.__version__
author = Eric Holscher
author_email = eric@ericholscher.com
maintainer = Ashley Whetter
maintainer_email = ashley@awhetter.co.uk
description = Sphinx API documentation generator
long_description = file: README.rst
long_description_content_type = text/x-rst
url = http://github.com/readthedocs/sphinx-autoapi
license = MIT
license_files =
LICENSE.rst
classifiers =
Development Status :: 4 - Beta
Environment :: Plugins
Framework :: Sphinx :: Extension
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Natural Language :: English
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
project_urls =
Documentation = https://sphinx-autoapi.readthedocs.io/en/latest/
[options]
packages = find:
include_package_data = True
python_requires = >=3.6
install_requires =
astroid>=2.4
Jinja2
PyYAML
sphinx>=3.0
unidecode
[options.extras_require]
docs =
sphinx
sphinx_rtd_theme
go =
sphinxcontrib-golangdomain
dotnet =
sphinxcontrib-dotnetdomain
[options.packages.find]
include =
autoapi
autoapi.*
[bdist_wheel]
universal = 1 universal = 1

@ -1,47 +0,0 @@
import io
from setuptools import setup, find_packages
version = {}
with open("autoapi/_version.py") as fp:
exec(fp.read(), version)
setup(
name="sphinx-autoapi",
version=version["__version__"],
author="Eric Holscher",
author_email="eric@ericholscher.com",
url="http://github.com/readthedocs/sphinx-autoapi",
license="BSD",
description="Sphinx API documentation generator",
packages=find_packages("."),
long_description=io.open("README.rst", "r", encoding="utf-8").read(),
include_package_data=True,
install_requires=[
"astroid>=2.4",
"Jinja2",
"PyYAML",
"sphinx>=3.0",
"unidecode",
],
extras_require={
"docs": ["sphinx", "sphinx_rtd_theme"],
"go": ["sphinxcontrib-golangdomain"],
"dotnet": ["sphinxcontrib-dotnetdomain"],
},
python_requires=">=3.6",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Plugins",
"Framework :: Sphinx :: Extension",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
)

@ -1,4 +1,5 @@
[tox] [tox]
isolated_build = true
envlist = envlist =
py{36,37,38,39}-sphinx{30,31,32,33,34,35} py{36,37,38,39}-sphinx{30,31,32,33,34,35}
formatting formatting

Loading…
Cancel
Save