From bdf05e9322c8d1a1097d564866ac8811a0a4e819 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Tue, 7 Mar 2023 22:37:09 +0100 Subject: [PATCH] linting --- setup.py | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/setup.py b/setup.py index e3e5cd9..bc7e905 100644 --- a/setup.py +++ b/setup.py @@ -1,25 +1,31 @@ -from setuptools import setup, find_packages -from codecs import open +"""setup.py""" from os import path +from setuptools import setup, find_packages import catcli -readme = 'README.md' +README = 'README.md' here = path.abspath(path.dirname(__file__)) -read_readme = lambda f: open(f, 'r').read() - -VERSION = catcli.__version__ +VERSION = catcli.version.__version__ REQUIRES_PYTHON = '>=3' + +def read_readme(readme_path): + """read readme content""" + with open(readme_path, encoding="utf-8") as file: + return file.read() + + +URL = f'https://github.com/deadc0de6/catcli/archive/v{VERSION}.tar.gz' setup( name='catcli', version=VERSION, description='The command line catalog tool for your offline data', - long_description=read_readme(readme), + long_description=read_readme(README), long_description_content_type='text/markdown', - license_files = ('LICENSE',), + license_files=('LICENSE',), url='https://github.com/deadc0de6/catcli', - download_url = 'https://github.com/deadc0de6/catcli/archive/v'+VERSION+'.tar.gz', + download_url=URL, options={"bdist_wheel": {"python_tag": "py3"}}, # include anything from MANIFEST.in include_package_data=True,