-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
49 lines (39 loc) · 1.47 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
import codecs
import os
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
def get_version():
init_file = os.path.join(here, 'smclip/__init__.py')
with open(init_file) as f:
for line in f:
if line.startswith('__version__ = '):
return eval(line.split('=')[-1])
with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='smclip',
version=get_version(),
description='Simple Multi Command Line Parser',
long_description=long_description,
url='https://github.com/vkrizan/python-smclip',
author='Viliam Krizan',
author_email='[email protected]',
license='LGPLv3+',
keywords='cli, argument parser, multi commands',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: User Interfaces',
'Topic :: Terminals',
'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
packages=['smclip'],
tests_require=['pytest', 'mock', 'pytest-cov']
)