-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
50 lines (44 loc) · 1.55 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
import os
import re
try:
from setuptools import setup
setup_params = {'scripts': ['tmux-chooser'],
'install_requires': ['paramiko'],
}
except ImportError:
from distutils.core import setup
setup_params = {'scripts': ['tmux-chooser']}
here = os.path.dirname(os.path.abspath(__file__))
def get_version():
f = open(os.path.join(here, 'tmux-chooser'))
version_file = f.read()
f.close()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(
name='tmux-chooser',
version=get_version(),
description="tmux session chooser for busy people",
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console :: Curses',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Utilities',
],
zip_safe=False,
keywords='setuptools deployment installation distutils',
author='Peter Debacker',
author_email='[email protected]',
url='https://github.com/peter-d/tmux-chooser',
download_url='https://github.com/peter-d/tmux-chooser/tarball/%s.tar.gz' % get_version(),
license='MIT',
long_description=open(os.path.join(here, "README.md")).read(),
**setup_params
)