-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
42 lines (40 loc) · 1.41 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
from setuptools import setup
def find_version(name):
import os.path, codecs, re
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, name), 'r') as fp:
version_file = fp.read()
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='cfn-transform',
version=find_version('cfn_transform.py'),
description='CloudFormation template transformation helper',
py_modules=["cfn_transform"],
entry_points={
'console_scripts': [
'cfn-transform = cfn_transform:module_main',
],
},
install_requires=["pyyaml"],
author='Ben Kehoe',
author_email='[email protected]',
project_urls={
"Source Code": "https://github.com/iRobotCorporation/cfn-transform",
},
license='Apache Software License 2.0',
classifiers=(
'Development Status :: 2 - Beta',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'License :: OSI Approved :: Apache Software License',
),
keywords='aws cloudformation',
)