forked from adamchainz/ec2-ssh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
61 lines (49 loc) · 1.72 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import codecs
import os
import re
from setuptools import setup
def get_version(filename):
with codecs.open(filename, 'r', 'utf-8') as fp:
contents = fp.read()
return re.search(r"__version__ = ['\"]([^'\"]+)['\"]", contents).group(1)
version = get_version(os.path.join('ec2_ssh.py'))
with codecs.open('README.rst', 'r', 'utf-8') as readme_file:
readme = readme_file.read()
with codecs.open('HISTORY.rst', 'r', 'utf-8') as history_file:
history = history_file.read().replace('.. :changelog:', '')
console_scripts = [
'ec2-ssh = ec2_ssh:main',
'ec2-host = ec2_ssh:host',
]
setup(
name="ec2-ssh",
version=version,
author="Adam Johnson",
author_email="[email protected]",
description="SSH into EC2 instances via tag name",
long_description=readme + '\n\n' + history,
license="MIT",
url="https://github.com/YPlan/ec2-ssh",
keywords=["amazon", "aws", "ec2", "ami", "ssh", "cloud", "boto"],
install_requires=['boto3>=1.1.0'],
py_modules=['ec2_ssh'],
entry_points={'console_scripts': console_scripts},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
"Programming Language :: Python :: 3",
'Programming Language :: Python :: 3.5',
"Topic :: Utilities"
],
)