Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/879955 )

Change subject: [8.0] Remove code tags with setup.read_desc()
......................................................................

[8.0] Remove code tags with setup.read_desc()

code tags in readme leads pypi upload to fail

Change-Id: Id2711186e40cf13dd026f2688c23fca57ed999a7
---
M setup.py
1 file changed, 13 insertions(+), 0 deletions(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Looks good to me, approved




diff --git a/setup.py b/setup.py
index 961cec2..79637dd 100755
--- a/setup.py
+++ b/setup.py
@@ -195,6 +195,8 @@
                         desc.append(re.sub(pattern[0], pattern[1], g.read()))
                 else:
                     print('Cannot include {}; file not found'.format(include))
+            elif line.strip().startswith('.. code::'):
+                desc.append('::\n')
             else:
                 desc.append(re.sub(pattern[0], pattern[1], line))
     return ''.join(desc)

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/879955
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Id2711186e40cf13dd026f2688c23fca57ed999a7
Gerrit-Change-Number: 879955
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to