mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
Drop pypandoc stuff and use Markdown descriptions on PyPI
This commit is contained in:
parent
4bfcd52731
commit
8a09f321da
@ -7,7 +7,6 @@ python:
|
|||||||
- '3.5'
|
- '3.5'
|
||||||
- '3.6'
|
- '3.6'
|
||||||
|
|
||||||
install: echo "On tag $TRAVIS_TAG" && pip install pypandoc
|
|
||||||
script: python3 -m compileall .
|
script: python3 -m compileall .
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
|
12
setup.py
12
setup.py
@ -29,12 +29,11 @@ with open('__init__.py', 'w') as f:
|
|||||||
f.write('__version__ = %r\n' % version)
|
f.write('__version__ = %r\n' % version)
|
||||||
f.write('real_version = %r\n' % real_version)
|
f.write('real_version = %r\n' % real_version)
|
||||||
|
|
||||||
# Convert Markdown to RST for PyPI
|
|
||||||
try:
|
try:
|
||||||
import pypandoc
|
with open('README.md') as f:
|
||||||
long_description = pypandoc.convert('README.md', 'rst', format='markdown_github')
|
long_description = f.read()
|
||||||
except ImportError:
|
except OSError:
|
||||||
print('WARNING: PyPandoc not available; skipping writing long description.')
|
print('WARNING: Failed to read readme, skipping writing long_description')
|
||||||
long_description = None
|
long_description = None
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
@ -43,6 +42,7 @@ setup(
|
|||||||
|
|
||||||
description='PyLink IRC Services',
|
description='PyLink IRC Services',
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
|
long_description_content_type='text/markdown',
|
||||||
|
|
||||||
url='https://github.com/GLolol/PyLink',
|
url='https://github.com/GLolol/PyLink',
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ setup(
|
|||||||
author='James Lu',
|
author='James Lu',
|
||||||
author_email='james@overdrivenetworks.com',
|
author_email='james@overdrivenetworks.com',
|
||||||
|
|
||||||
# Choose your license
|
# License
|
||||||
license='MPL 2.0',
|
license='MPL 2.0',
|
||||||
|
|
||||||
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
||||||
|
Loading…
Reference in New Issue
Block a user