From fbbf1d7449f60bf22e991bb00d24d104940fff73 Mon Sep 17 00:00:00 2001 From: Taras Lehinevych Date: Sun, 14 Jan 2018 17:19:14 +0200 Subject: [PATCH] fix version, and description --- mediawikiapi/__init__.py | 2 +- setup.py | 20 +++++++++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/mediawikiapi/__init__.py b/mediawikiapi/__init__.py index a478295..16d6f91 100755 --- a/mediawikiapi/__init__.py +++ b/mediawikiapi/__init__.py @@ -4,4 +4,4 @@ from .language import * -__version__ = "1.1" +__version__ = "1.1.0" diff --git a/setup.py b/setup.py index f6f6617..775501e 100755 --- a/setup.py +++ b/setup.py @@ -16,6 +16,12 @@ def local_file(file): if line.strip() != '' ] +try: + import pypandoc + long_description = pypandoc.convert('README.md', 'rst') +except(IOError, ImportError): + long_description = local_file('README.md').read() + setuptools.setup( name = "mediawikiapi", version = __version__, @@ -27,16 +33,16 @@ def local_file(file): url = "https://github.com/lehinevych/MediaWikiAPI", install_requires = install_reqs, packages = ['mediawikiapi'], - long_description = local_file('README.md').read(), + long_description = long_description, classifiers = [ 'Development Status :: 4 - Beta', 'Topic :: Software Development :: Libraries', 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 2.7' - 'Programming Language :: Python :: 3' - 'Programming Language :: Python :: 3.3' - 'Programming Language :: Python :: 3.4' - 'Programming Language :: Python :: 3.5' - 'Programming Language :: Python :: 3.6' + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', ] )