Check readme format

This commit is contained in:
Cédric Krier committed 2021-05-03 16:44:52 +02:00
1 parent 0be6ef40de
commit d441bba82c
2 files changed
+9 -3

No files matched your search

+6
View File
@@ -23,6 +23,12 @@ pipeline:
- tox -e "${TOXENV}-${DATABASE}"
volumes:
- cache:/root/.cache
check_dist:
image: ${IMAGE}
commands:
- pip install twine
- python setup.py sdist
- twine check dist/*
services:
postgresql:
+3 -3
View File
@@ -9,12 +9,12 @@ from configparser import ConfigParser
from setuptools import setup, find_packages
def read(fname, slice=None):
def read(fname):
content = io.open(
os.path.join(os.path.dirname(__file__), fname),
'r', encoding='utf-8').read()
if slice:
content = '\n'.join(content.splitlines()[slice])
content = re.sub(
r'(?m)^\.\. toctree::\r?\n((^$|^\s.*$)\r?\n)*', '', content)
return content