Check readme format
This commit is contained in:
1 parent
0be6ef40de
commit
d441bba82c
2 files changed
+9
-3
No files matched your search
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user