-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
62 lines (46 loc) · 1.33 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
52
53
54
55
56
57
58
59
60
61
62
import io
import os
import re
import sys
from setuptools import setup
def get_variable(var_name):
regex = "__{var_name}__\s=\s\'(?P<{var_name}>.*)\'".format(
var_name=var_name)
path = ('msh', '__init__.py',)
return re.search(regex, read(*path)).group(var_name)
def read(*parts):
filename = os.path.join(os.path.abspath(os.path.dirname(__file__)), *parts)
sys.stdout.write(filename)
with io.open(filename, encoding='utf-8', mode='rt') as fp:
return fp.read()
packages = ['msh']
install_requires = []
classifiers = ['Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
]
setup(
name='msh',
version=get_variable('version'),
description=get_variable('description'),
long_description=read('README.md'),
url='https://github.com/msh-contrib/msh',
author='Oleh Kuchuk',
author_email='[email protected]',
license=read('LICENSE.txt'),
packages=packages,
install_requires=install_requires,
zip_safe=False,
classifiers=classifiers,
entry_points={
'console_scripts': [
'msh=msh.cli:entrypoint'
],
},
keywords=[
'shell',
'posix',
'bash',
],
)