Skip to content

Commit 8026f5a

Browse files
committed
Update setup.py for pypi upload
1 parent a080707 commit 8026f5a

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

README.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ With the resulting documentation output of:
4040
:param b: The value to add to `a`
4141
:returns: The sum of `a` and `b`
4242
43-
4443
.. _autodoc: https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html
4544
.. _Sphinx: https://www.sphinx-doc.org/en/master/index.html
4645
@@ -79,7 +78,7 @@ Similar Tools
7978
:target: https://sphinx-c-autodoc.readthedocs.io/en/latest/?badge=latest
8079
8180
.. inclusion_end
82-
81+
8382
Full Documentation
8483
------------------
8584

setup.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
1+
import pathlib
12
import setuptools
23

4+
# The directory containing this file
5+
HERE = pathlib.Path(__file__).parent
6+
7+
# The text of the README file
8+
README = (HERE / "README.rst").read_text()
9+
10+
# Sanitize unknown directives from pyi
11+
README = README.replace(".. c:function::", ".. code-block:: rst\n\n .. c:function::")
12+
313
setuptools.setup(
414
name="sphinx-c-autodoc",
515
version="0.1.0",
616
description="A sphinx autodoc extension for c modules",
7-
url="https://github.com/speedyleion/sphinx-c-autodoc",
17+
long_description=README,
18+
long_description_content_type="text/x-rst",
19+
url="https://sphinx-c-autodoc.readthedocs.io/en/latest/",
820
package_dir={"":"src"},
921
packages=setuptools.find_packages("src"),
1022
license="Unlicense",

0 commit comments

Comments
 (0)