Skip to content

Commit 97ccaf5

Browse files
committed
Fixing setup for pypi submission
1 parent dcba89d commit 97ccaf5

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

setup.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
import re
44
import ast
55

6+
try:
7+
from pypandoc import convert
8+
read_md = lambda f: convert(f, 'rst')
9+
except ImportError:
10+
print('warning: pypandoc module not found, could not convert Markdown to RST')
11+
read_md = lambda f: open(f).read()
12+
613
version_re = re.compile(r'__version__\s+=\s+(.*)')
714

815
with open('stackify/__init__.py') as f:
@@ -15,10 +22,13 @@
1522
author = 'Matthew Thompson',
1623
author_email = 'chameleonator@gmail.com',
1724
packages = ['stackify'],
18-
url = 'https://github.com/stackify/stackify-python',
25+
url = 'https://github.com/stackify/stackify-api-python',
1926
license = open('LICENSE.txt').readline(),
2027
description = 'Stackify API for Python',
21-
long_description = open('README.md').read(),
28+
long_description = read_md('README.md'),
29+
download_url = 'https://github.com/stackify/stackify-api-python/tarball/0.0.1',
30+
keywords = ['logging', 'stackify', 'exception'],
31+
classifiers=["Programming Language :: Python"],
2232
install_requires = [
2333
'retrying>=1.2.3',
2434
'requests>=2.4.1'

0 commit comments

Comments
 (0)