]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
Applying flake8 rules to setup.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 6 Nov 2019 16:15:58 +0000 (17:15 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 6 Nov 2019 16:15:58 +0000 (17:15 +0100)
setup.py

index 7bbaa4d56d2d85d3831f3d193f46372a54adc9f3..4cdc3a2a9f451e7a9c3946a0ec7c00f76f1d3b1c 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -6,22 +6,20 @@
 @contact: frank.brehm@pixelpark.com
 @license: LGPL3+
 @copyright: © 2019 Frank Brehm, Berlin
-@summary: A Tool for creating a terraform project based on a YAML file for provisioning virtual machines.
+@summary: A Tool for creating a terraform project based on a YAML file
+          for provisioning virtual machines.
 """
 
 import os
 import sys
 import re
 import pprint
-import datetime
-import textwrap
 import glob
 import pathlib
 import subprocess
 
 # Third party modules
 from setuptools import setup
-from setuptools.command.install import install
 
 # own modules:
 __base_dir__ = os.path.abspath(os.path.dirname(__file__))
@@ -44,7 +42,8 @@ def pp(obj):
     pprinter = pprint.PrettyPrinter(indent=4)
     return pprinter.pformat(obj)
 
-#print("Paths:\n{}".format(pp(PATHS)))
+# print("Paths:\n{}".format(pp(PATHS)))
+
 
 if os.path.exists(__module_dir__) and os.path.isfile(__init_py__):
     sys.path.insert(0, os.path.abspath(__lib_dir__))
@@ -90,6 +89,7 @@ def is_python_file(filename):
     else:
         return False
 
+
 # -----------------------------------
 __requirements__ = [
     'argparse',
@@ -97,6 +97,7 @@ __requirements__ = [
     'six'
 ]
 
+
 # -----------------------------------
 def read_requirements():
 
@@ -128,6 +129,7 @@ def read_requirements():
 
     # print("Found required modules: {}\n".format(pp(__requirements__)))
 
+
 read_requirements()
 
 # -----------------------------------
@@ -175,10 +177,10 @@ setup(
     scripts=__scripts__,
     requires=__requirements__,
     package_dir={'': 'lib'},
-    package_data = {
+    package_data={
         '': create_mo_files(),
     },
-    data_files= __data_files__,
+    data_files=__data_files__,
 )