%define pypi_name pdoc %define python_name python3-%{pypi_name} Name: python-%{pypi_name} Version: 15.0.3 Release: %autorelease # Fill in the actual package summary to submit package to Fedora Summary: API Documentation for Python Projects # Check if the automatically generated License and its spelling is correct for Fedora # https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/ License: MIT-0 (FIXME:No SPDX) URL: None Source: https://files.pythonhosted.org/packages/source/p/pdoc/pdoc-%{version}.tar.gz BuildRequires: pyproject-rpm-macros BuildRequires: python3-devel BuildRequires: fdupes BuildArch: noarch # Fill in the actual package description to submit package to Fedora %global _description %{expand:
API Documentation for Python Projects. # Example `pdoc -o ./html pdoc` generates this website: [pdoc.dev/docs](https://pdoc.dev/docs/pdoc.html). # Installation ```shell pip install pdoc ``` pdoc is compatible with Python 3.9 and newer. # Usage ```shell pdoc your_python_module # or pdoc ./my_project.py ``` Run `pdoc pdoc` to see pdoc's own documentation, run `pdoc --help` to view the command line flags, or check our [hosted copy of the documentation](https://pdoc.dev/docs/pdoc.html). # Features pdoc's main feature is a focus on simplicity: pdoc aims to do one thing and do it well. * Documentation is plain [Markdown](https://pdoc.dev/docs/pdoc.html#markdown-support). * First-class support for type annotations and all other modern Python 3 features. * Builtin web server with live reloading. * Customizable HTML templates. * Understands numpydoc and Google-style docstrings. * Standalone HTML output without additional dependencies. Under the hood... * `pdoc` will automatically link identifiers in your docstrings to their corresponding documentation. * `pdoc` respects your `__all__` variable when present. * `pdoc` will traverse the abstract syntax tree to extract type annotations and docstrings from constructors as well. * `pdoc` will automatically try to resolve type annotation string literals as forward references. * `pdoc` will use inheritance to resolve type annotations and docstrings for class members. If you have substantially more complex documentation needs, we recommend using [Sphinx](https://www.sphinx-doc.org/)! ## Contributing As an open source project, pdoc welcomes contributions of all forms. [](https://github.com/mitmproxy/pdoc/blob/main/CONTRIBUTING.md) ## pdoc vs. pdoc3 This project is not associated with "pdoc3", which often falsely assumes our name. Quoting [@BurntSushi](https://github.com/BurntSushi), the original author of pdoc: > I'm pretty disgusted that someone has taken a project I built, relicensed it, > [attempted to erase its entry on the Python Wiki](https://wiki.python.org/moin/DocumentationTools?action=diff&rev1=36&rev2=37), > released it under effectively the same name and, worst of all, associated it with Nazi symbols. > > *Source: https://github.com/pdoc3/pdoc/issues/64* In contrast, the pdoc project strives to uphold a healthy community where everyone is treated with respect. Everyone is welcome to contribute as long as they adhere to basic civility. We expressly distance ourselves from the use of Nazi symbols and ideology. ---- The pdoc project was originally created by [Andrew Gallant](https://github.com/BurntSushi) and is currently maintained by [Maximilian Hils](https://github.com/mhils). } %description %_description %package -n %{python_name} Summary: %{summary} %description -n %{python_name} %_description %prep %autosetup -p1 -n %{pypi_name}-%{version} %generate_buildrequires # Keep only those extras which you actually want to package or use during tests %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # For official Fedora packages, including files with '*' +auto is not allowed # Replace it with a list of relevant Python modules/globs and list extra files in %%files %pyproject_save_files '*' +auto %files -n %{python_name} -f %{pyproject_files} %changelog %autochangelog