sphinx-autopyproject
Move as much Sphinx configuration as possible from conf.py to pyproject.toml! Might even be ... everything
(If you are interested in more automatically generated API documentation, check out sphinx-automagicdoc as well.)
Usage
Either run spinx-autopyproject-build to run sphinx-build without the need for a conf.py to exist,
or if you want to use a conf.py, add the line:
from sphinx_autopyproject.auto import *
To configure, set the [tool.sphinx-autopyproject] section:
[tool.sphinx-autopyproject]
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.doctest",
"sphinx_rtd_theme",
]
language = "en"
source_suffix = ['.rst']
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
html_theme = "sphinx_rtd_theme"
The [tool.sphinx-autopyproject.autopyproject] section is to configure sphinx-autopyproject if desired.
Supported is the dynamic subsection, which allows to automatically fetch configuration values from other sources,
such as the package metadata. Multiple dynamic fetchers are supported: for type="package", the local package will be built (using build), for type="token", a variable assignment will be searched via plain file reading (e.g. to extract __version__), or for type="python", the given package/variable will be imported via Python.
[tool.sphinx-autopyproject.autopyproject.dynamic]
project = { type="package", value="name"}
copyright = { type="package", value="author"}
author = { type="package", value="author"}
version = { type="package", value="version"}
The sys_path list can be used to add directories to sys.path.
License
MIT
Metadata
Release files for sphinx-autopyproject 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sphinx-autopyproject-0.0.2.tar.gz | 5.4 kB | Without provenance | Details for sphinx-autopyproject-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sphinx_autopyproject-0.0.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for sphinx_autopyproject-0.0.2-py2.py3-none-any.whl |
Total release size: 12.7 kB
Release files / sphinx-autopyproject-0.0.2.tar.gz
| Download URL | sphinx-autopyproject-0.0.2.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b4e5662f63d972797e3e1240186d54941b39d12ca0dd9fd2ee43e0937f03b95
|
|
BLAKE2b-256 checksum How to use checksums |
e1144967dfbdadf3909a971e5dd9c7f09d06cd0b8974685ded4652f49e1f9b94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Release files / sphinx_autopyproject-0.0.2-py2.py3-none-any.whl
| Download URL | sphinx_autopyproject-0.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
cefacef45bcfb17c694a41b4bf9dc3714f52f2d6b2fc6b3dd1e8eec9612013c0
|
|
BLAKE2b-256 checksum How to use checksums |
73b15ef6c3670690b0d53f094c46cd0d615e660f000c81e63d96e5937941cb7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Security for sphinx-autopyproject 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.