Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Commit

Permalink
Convert to rst only in register command
Browse files Browse the repository at this point in the history
  • Loading branch information
puhitaku committed Jan 13, 2016
1 parent 55d0727 commit de5e63d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import os
import sys
import pypandoc
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand

here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md')) as f:
readme = pypandoc.convert(f.read(), 'rst', format='md')

if ' '.join(sys.argv) == 'setup.py register':
import pypandoc
with open(os.path.join(here, 'README.md')) as f:
readme = pypandoc.convert(f.read(), 'rst', format='md')
else:
readme = ''

__version__ = '0.0.1'
__author__ = 'Takumi Sueda'
Expand Down

0 comments on commit de5e63d

Please # to comment.