From: Frank Brehm Date: Wed, 6 Nov 2019 16:15:58 +0000 (+0100) Subject: Applying flake8 rules to setup.py X-Git-Tag: 1.3.7~1^2~4 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=28d33b146004130dd3add8e62da79951b0f035f0;p=pixelpark%2Fcreate-terraform.git Applying flake8 rules to setup.py --- diff --git a/setup.py b/setup.py index 7bbaa4d..4cdc3a2 100644 --- 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__, )