changeset 30d23baad228 in modules/stock_quantity_issue:default
details: 
https://hg.tryton.org/modules/stock_quantity_issue?cmd=changeset&node=30d23baad228
description:
        Check readme format
diffstat:

 .drone.yml |  6 ++++++
 setup.py   |  6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r aeabd5b9c7b2 -r 30d23baad228 .drone.yml
--- a/.drone.yml        Mon May 03 16:44:20 2021 +0200
+++ b/.drone.yml        Mon May 03 16:44:52 2021 +0200
@@ -23,6 +23,12 @@
             - 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:
diff -r aeabd5b9c7b2 -r 30d23baad228 setup.py
--- a/setup.py  Mon May 03 16:44:20 2021 +0200
+++ b/setup.py  Mon May 03 16:44:52 2021 +0200
@@ -9,12 +9,12 @@
 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
 
 

Reply via email to