-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
35 lines (32 loc) · 1011 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import os
from distutils.core import setup
add_keywords = dict(
entry_points={
'console_scripts': ['definition = definition.definition:main'],
},
)
fhan = open('requirements.txt', 'rU')
requires = [line.strip() for line in fhan.readlines()]
fhan.close()
long_description = ''
try:
if os.path.isfile('README.md'):
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
if os.path.isfile('README.txt'):
with open('README.txt') as fhan:
long_description = fhan.read()
setup(
name='definition',
description='Definition fetcher from 5 online dictionaries',
version='0.1.2',
packages=['definition'],
license='GPLv3+',
author='Shubham Chaudhary',
author_email='me@shubhamchaudhary.in',
url='https://github.com/shubhamchaudhary/definition',
long_description=long_description,
install_requires=requires,
**add_keywords
)