1. refactor setup.py
2. add doc
This commit is contained in:
parent
02a8de5618
commit
cc435e289d
3 changed files with 11 additions and 7 deletions
6
README.md
Normal file
6
README.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
## Introduction
|
||||||
|
|
||||||
|
python-terraform is a python module provide a wrapper of `terraform` command line tool.
|
||||||
|
`terraform` is a tool made by Hashicorp, please refer to https://terraform.io/
|
||||||
|
|
||||||
|
## This project is not stable yet
|
9
setup.py
9
setup.py
|
@ -11,11 +11,11 @@ module_name = 'terraform'
|
||||||
setup(
|
setup(
|
||||||
name=module_name,
|
name=module_name,
|
||||||
version="0.0.1",
|
version="0.0.1",
|
||||||
url='https://github.com/beelit94/tsplk',
|
url='https://github.com/beelit94/python-terraform',
|
||||||
license='BSD',
|
license='BSD',
|
||||||
author='Freddy Tan',
|
author='Freddy Tan',
|
||||||
author_email='ftan@splunk.com',
|
author_email='ftan@splunk.com',
|
||||||
description='My Tool does one thing, and one thing well.',
|
description='This is a python module provide a wrapper of terraform command line tool',
|
||||||
long_description=__doc__,
|
long_description=__doc__,
|
||||||
packages=[module_name],
|
packages=[module_name],
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
|
@ -23,11 +23,6 @@ setup(
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
platforms='any',
|
platforms='any',
|
||||||
install_requires=dependencies,
|
install_requires=dependencies,
|
||||||
entry_points={
|
|
||||||
# 'console_scripts': [
|
|
||||||
# 'tsplk = %s.cli:main' % module_name,
|
|
||||||
# ],
|
|
||||||
},
|
|
||||||
classifiers=[
|
classifiers=[
|
||||||
# As from http://pypi.python.org/pypi?%3Aaction=list_classifiers
|
# As from http://pypi.python.org/pypi?%3Aaction=list_classifiers
|
||||||
# 'Development Status :: 1 - Planning',
|
# 'Development Status :: 1 - Planning',
|
||||||
|
|
|
@ -15,6 +15,9 @@ class Terraform:
|
||||||
self.parallelism = 50
|
self.parallelism = 50
|
||||||
|
|
||||||
def apply(self, targets=None, variables=None):
|
def apply(self, targets=None, variables=None):
|
||||||
|
"""
|
||||||
|
refer to https://terraform.io/docs/commands/apply.html
|
||||||
|
"""
|
||||||
variables = self.variables if variables is None else variables
|
variables = self.variables if variables is None else variables
|
||||||
targets = self.targets if targets is None else targets
|
targets = self.targets if targets is None else targets
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue