Skip to content

Commit

Permalink
Switch to flit
Browse files Browse the repository at this point in the history
Closes #426
  • Loading branch information
AWhetter committed Oct 25, 2024
1 parent fb73609 commit 2b31d39
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 33 deletions.
3 changes: 3 additions & 0 deletions docs/changes/426.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Switch from setuptools to flit.

Also removed docs extra and placed dependencies in tox.ini.
37 changes: 9 additions & 28 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"

[project]
name = "sphinx-autoapi"
authors = [{name = "Eric Holscher", email = "[email protected]"}]
maintainers = [{name = "Ashley Whetter", email = "[email protected]"}]
description = "Sphinx API documentation generator"
license = {text = "MIT"}
license = {text = "LICENSE.rst"}
classifiers = [
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"Environment :: Plugins",
"Framework :: Sphinx :: Extension",
"Intended Audience :: Developers",
Expand All @@ -21,14 +21,16 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.8"
dependencies = [
'astroid>=2.7;python_version<"3.12"',
'astroid>=3.0.0a1;python_version>="3.12"',
"Jinja2",
"PyYAML",
"sphinx>=6.1.0,<8.1.0",
"sphinx>=6.1.0",
'stdlib_list;python_version<"3.10"',
]
dynamic = ["version"]
Expand All @@ -41,29 +43,8 @@ content-type = "text/x-rst"
Homepage = "http://github.com/readthedocs/sphinx-autoapi"
Documentation = "https://sphinx-autoapi.readthedocs.io/en/latest/"

[project.optional-dependencies]
docs = [
"furo",
"sphinx",
"sphinx_design",
]

[tool.setuptools]
include-package-data = true
license-files = ["LICENSE.rst"]

[tool.setuptools.packages.find]
include = [
"autoapi",
"autoapi.*",
]
namespaces = false

[tool.setuptools.dynamic]
version = {attr = "autoapi.__version__"}

[tool.distutils.bdist_wheel]
universal = 1
[tool.flit.module]
name = "autoapi"

[tool.mypy]
# Start off with these
Expand Down
2 changes: 0 additions & 2 deletions setup.py

This file was deleted.

7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ commands =
mypy {posargs:autoapi}

[testenv:doc]
extras =
docs
deps =
furo
sphinx
sphinx_design
changedir = {toxinidir}/docs
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
Expand All @@ -61,4 +62,4 @@ deps =
towncrier
importlib-resources<6 # pinned due to https://github.com/twisted/towncrier/issues/528
commands =
towncrier {posargs:check}
towncrier {posargs:check}

0 comments on commit 2b31d39

Please sign in to comment.