diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-07-25 16:22:15 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-07-25 16:22:15 +1000 |
| commit | 238d07ce4172316ab8eb95bdb8524f5e3d6e4fed (patch) | |
| tree | b5e667c026190253b1c7d73eae7c15f2d9b456af /setup.py | |
| parent | c787174f757d2edf56d0dea8623c2085c86a2f30 (diff) | |
Use README.md on pypi
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -8,11 +8,12 @@ except (ImportError, SyntaxError): quit(1) -DESC = ( - "View the DOCS at: https://github.com/dylanaraps/pywal\n\n" - "Pypi doesn't like markdown OR rst with anchor links so " - "you'll have to view the documentation elsewhere.\n" -) +try: + import pypandoc + LONG_DESC = pypandoc.convert("README.md", "rst") +except(IOError, ImportError): + LONG_DESC = open('README.md').read() + VERSION = pywal.__version__ DOWNLOAD = "https://github.com/dylanaraps/pywal/archive/%s.tar.gz" % VERSION @@ -24,7 +25,7 @@ setuptools.setup( author="Dylan Araps", author_email="dylan.araps@gmail.com", description="Generate and change colorschemes on the fly", - long_description=DESC, + long_description=LONG_DESC, license="MIT", url="https://github.com/dylanaraps/pywal", download_url=DOWNLOAD, |
