From 258f2a4cdaa805a2c9da2f5efa0d0f90c776142c Mon Sep 17 00:00:00 2001 From: Israel Barth Rubio Date: Wed, 22 Nov 2023 13:09:12 -0300 Subject: [PATCH] Fix issues reported by the linter `flake8` reported these issues, which are fixed by this commit: ``` setup.py:19:1: F401 'sys' imported but unused setup.py:34:80: E501 line too long (84 > 79 characters) setup.py:48:80: E501 line too long (84 > 79 characters) ``` References: BAR-133. Signed-off-by: Israel Barth Rubio --- pg_backup_api/setup.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pg_backup_api/setup.py b/pg_backup_api/setup.py index 69b1c4f..74ed781 100644 --- a/pg_backup_api/setup.py +++ b/pg_backup_api/setup.py @@ -16,7 +16,6 @@ # You should have received a copy of the GNU General Public License # along with Postgres Backup API. If not, see . -import sys from setuptools import setup, find_packages NAME = "pg-backup-api" @@ -31,7 +30,8 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["barman>=2.19,<4.0.0", "Flask>=0.10.1,<3.0.0", "requests>=2.0.0,<3.0.0"] +REQUIRES = ["barman>=2.19,<4.0.0", "Flask>=0.10.1,<3.0.0", + "requests>=2.0.0,<3.0.0"] setup( name=NAME, @@ -45,7 +45,9 @@ install_requires=REQUIRES, packages=find_packages(exclude=["tests"]), include_package_data=True, - entry_points={"console_scripts": ["pg-backup-api=pg_backup_api.__main__:main"]}, + entry_points={ + "console_scripts": ["pg-backup-api=pg_backup_api.__main__:main"], + }, license="GPL-3.0", long_description="""\ A server that provides an HTTP API to interact with Postgres backups