-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
52 lines (46 loc) · 1.42 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import os
import sys
from setuptools import setup, find_packages
readme_file = os.path.abspath(os.path.join(os.path.dirname(__file__),
'README.rst'))
try:
long_description = open(readme_file).read()
except IOError as err:
sys.stderr.write("[ERROR] Cannot find file specified as "
"long_description (%s)\n" % readme_file)
sys.exit(1)
extra_kwargs = {'tests_require': ['mock']}
if sys.version_info < (2, 7):
extra_kwargs['tests_require'].append('unittest2')
if sys.version_info >= (3,):
extra_kwargs['use_2to3'] = True
porunga = __import__('porunga')
setup(
name='porunga',
version=porunga.get_version(),
url='https://github.com/lukaszb/porunga',
author='Lukasz Balcerzak',
author_email='[email protected]',
description=porunga.__doc__,
long_description=long_description,
zip_safe=False,
packages=find_packages(),
scripts=[],
entry_points={
'console_scripts': [
'porunga = porunga:main',
],
},
test_suite='porunga.tests.collector',
install_requires=['monolith', 'termcolor'],
include_package_data=True,
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
],
**extra_kwargs
)