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