-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
55 lines (49 loc) · 1.66 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
import os
from setuptools import setup, find_packages
BASEDIR = os.path.dirname(os.path.abspath(__file__))
VERSION = open(os.path.join(BASEDIR, 'VERSION')).read().strip()
REQUIREMENTS = []
DEPENDENCY_LINKS = []
DESCRIPTION = 'A utility that can be used from the command line or plugged into python projects that provides a simple search functionality for AWS objects.'
os.chdir(os.path.normpath(BASEDIR))
with open(os.path.join(BASEDIR, 'requirements.txt')) as fp:
lines = fp.readlines()
for line in lines:
line = line.strip()
if ("http://" in line or "https://" in line or "ssh://" in line) and "#egg=" in line:
parts = line.split("#egg=")
REQUIREMENTS.append(parts[-1])
DEPENDENCY_LINKS.append(line)
elif len(line) and line[0] != "#" and line[0] != "-":
REQUIREMENTS.append(line)
setup(
name='aws-lookup',
version=VERSION,
license='MIT',
packages=find_packages(),
include_package_data=True,
description=DESCRIPTION,
long_description=DESCRIPTION,
url='https://github.com/meganlkm/aws-lookup',
author='meganlkm',
author_email='devstuff.io@gmail.com',
install_requires=REQUIREMENTS,
dependency_links=DEPENDENCY_LINKS,
keywords=[
'aws',
'lookup'
],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Topic :: System :: Software Distribution',
'Topic :: Utilities'
],
entry_points={
'console_scripts': [
'aws-lookup=aws_lookup.cli:cli'
]
},
)