Skip to content

Commit

Permalink
Merge pull request #144 from erikrose/readme-rst-fix
Browse files Browse the repository at this point in the history
Add a quick-and-dirty regex to remove Sphinx calls that the sdist builder doesn't understand. Fix #143.
  • Loading branch information
bbayles committed May 24, 2017
2 parents c46cf20 + 571b420 commit a4a0266
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.py
Expand Up @@ -4,6 +4,7 @@
import multiprocessing
except ImportError:
pass
from re import sub

from setuptools import setup, find_packages

Expand All @@ -13,8 +14,9 @@
version='3.1.0',
description='More routines for operating on iterables, beyond itertools',
long_description=open('README.rst').read() + '\n\n' +
'\n'.join(open('docs/versions.rst').read()
.splitlines()[1:]),
sub(r':func:`([a-zA-Z0-9_]+)`', r'\1', '\n'.join(open('docs/versions.rst').read()
.splitlines()[1:])
.replace('.. automodule:: more_itertools', '')),
author='Erik Rose',
author_email='erikrose@grinchcentral.com',
license='MIT',
Expand Down

0 comments on commit a4a0266

Please sign in to comment.