-
Notifications
You must be signed in to change notification settings - Fork 40
/
setup.py
90 lines (82 loc) · 2.56 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# -*- coding: utf-8 -*-
"""AWS operations by cli should be simpler."""
import os
import re
from setuptools import find_packages, setup
base_dir = os.path.dirname(os.path.abspath(__file__))
# Taken from "kennethreitz/requests": http://git.io/vcuY8
version = ''
with open('jungle/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
def read_file(filename):
filepath = os.path.join(base_dir, filename)
if os.path.exists(filepath):
return open(filepath).read()
else:
return ''
setup(
name='jungle',
version=version,
url='https://github.com/achiku/jungle',
license='MIT',
author='Akira Chiku',
author_email='akira.chiku@gmail.com',
description='AWS operations by cli should be simpler',
long_description=read_file('README.md'),
long_description_content_type="text/markdown",
packages=find_packages(exclude=['tests']),
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'boto3',
'botocore',
'click'
],
entry_points={
'console_scripts': [
'jungle = jungle.cli:cli',
],
},
classifiers=[
# As from http://pypi.python.org/pypi?%3Aaction=list_classifiers
# 'Development Status :: 1 - Planning',
# 'Development Status :: 2 - Pre-Alpha',
# 'Development Status :: 3 - Alpha',
'Development Status :: 4 - Beta',
# 'Development Status :: 5 - Production/Stable',
# 'Development Status :: 6 - Mature',
# 'Development Status :: 7 - Inactive',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX',
'Operating System :: MacOS',
'Operating System :: Unix',
# 'Operating System :: Windows',
# 'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Libraries :: Python Modules',
],
test_suite='tests',
tests_require=[
'httpretty',
'tox',
'isort',
'flake8',
'pep257',
'py',
'pytest',
'pytest-cov',
'pytest-mock',
'pytest-isort',
'pytest-pep8',
'moto'
]
)