From ef2934594051f5d7fadca64d02d08c566f072112 Mon Sep 17 00:00:00 2001 From: Holger Nahrstaedt <holger@nahrstaedt.de> Date: Sat, 17 Feb 2018 13:56:01 +0100 Subject: [PATCH] fix flake8 --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index e90c01af..eae52cc3 100755 --- a/setup.py +++ b/setup.py @@ -16,6 +16,7 @@ except LookupError: VERSION = '0.19.1' + def write_version_py(filename): cnt = """ # THIS FILE IS GENERATED FROM stempy SETUP.PY @@ -24,6 +25,7 @@ version = '%(version)s' with open(filename, 'w') as a: a.write(cnt % {'version': VERSION}) + if __name__ == '__main__': # Rewrite the version file everytime -- GitLab