Skip to content

Commit

Permalink
Appends recommonmark when READTHEDOCS.
Browse files Browse the repository at this point in the history
Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
  • Loading branch information
mkouhei committed May 6, 2015
1 parent 02fcd98 commit cca588c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Expand Up @@ -16,7 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""

import os.path
import os
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
Expand Down Expand Up @@ -69,6 +69,8 @@ def run_tests(self):
extras_require = {
'reST': ['Sphinx'],
}
if os.environ.get('READTHEDOCS', None):
extras_require['reST'].append('recommonmark')

with open('requirements.txt', 'w') as _file:
_file.write('\n'.join(requires))
Expand Down

0 comments on commit cca588c

Please sign in to comment.