Debian Codegraph @

setup.py

raw
1 import re
2
3 from setuptools import setup
4
5 readme = open("README.rst", encoding="utf-8").read()
6 # Remove `.. raw:: html` blocks, which are not supported by PyPI.
7 readme = re.sub(r"(?ms)^\.\. raw:: html\n(?:^[ \t].*\n|^[ \t]*\n)*", "", readme)
8 history = re.sub(
9 r":mod:|:class:|:func:", "", open("HISTORY.rst", encoding="utf-8").read()
10 )
11
12 setup(
13 long_description=readme + "\n\n" + history,
14 )