"""Setup script for makefile""" from typing import List from pathlib import Path from os import path import setuptools # Loads list of reqierments from the specified file install_requires: List[str] = [] with open('./requirements/base.pip', 'r') as f: install_requires = [x.strip() for x in f.readlines()] # Gets Long description fom the specified file long_description: List[str] = "" with open("README.md", "r") as fh: long_description = fh.read() with open('./VERSION', 'r') as f: version = f.read() # Defines/gets waht is needed for setup config = { 'name': path.basename(Path.cwd()), 'description': "AWS Secrets Manager Client", 'version': version, 'install_requires': install_requires, 'long_description': long_description, 'long_description_content_type': "text/markdown", 'packages': setuptools.find_packages(), 'include_package_data': True, 'zip_safe': False, 'classifiers': "Programming Language :: Python :: 3.10", 'entry_points': { 'console_scripts': [ 'secret-manager-client=secrets_manager_client.runner:run', 'smgr-cli=secrets_manager_client.runner:run' ], } } setuptools.setup(**config)