From f1f300417172e690e15ecdfa66328a7a57a9a7a6 Mon Sep 17 00:00:00 2001 From: Orsiris de Jong Date: Sat, 25 Mar 2023 18:14:56 +0100 Subject: [PATCH] Reformat files with black --- bin/npbackup | 1 - setup.py | 19 ++++++++----------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/bin/npbackup b/bin/npbackup index 784c5e5..116d3cf 100644 --- a/bin/npbackup +++ b/bin/npbackup @@ -14,4 +14,3 @@ del sys.path[0] if __name__ == "__main__": main() - diff --git a/setup.py b/setup.py index a3b31dd..8e5d2f3 100644 --- a/setup.py +++ b/setup.py @@ -76,6 +76,7 @@ def parse_requirements(filename): ) ) + # With this, we can enforce a binary package. class BinaryDistribution(setuptools.Distribution): """Distribution which always forces a binary package with platform name""" @@ -86,26 +87,22 @@ class BinaryDistribution(setuptools.Distribution): package_path = os.path.abspath(PACKAGE_NAME) -for path in ['__main__.py', PACKAGE_NAME + '.py']: +for path in ["__main__.py", PACKAGE_NAME + ".py"]: package_file = os.path.join(package_path, "__main__.py") - if os.path.isfile(package_file): + if os.path.isfile(package_file): break metadata = get_metadata(package_file) requirements = parse_requirements(os.path.join(package_path, "requirements.txt")) long_description = _read_file("README.md") -package_data = { - '': ['translations/*.yml'] -} +package_data = {"": ["translations/*.yml"]} -#if os.name == "nt": +# if os.name == "nt": scripts = ["misc/npbackup.cmd"] # console_scripts = [] -#else: +# else: # scripts = [] -console_scripts = [ - "npbackup = npbackup.__main__:main" - ] +console_scripts = ["npbackup = npbackup.__main__:main"] setuptools.setup( name=PACKAGE_NAME, @@ -166,5 +163,5 @@ setuptools.setup( }, # As we do version specific hacks for installed inline copies, make the # wheel version and platform specific. - #distclass=BinaryDistribution, + # distclass=BinaryDistribution, )