I'm building a Python application which I'm packaging with setuptools, so when it is installed I would like it to be available as command line tool as mentioned https://python-packaging.readthedocs.io/en/latest/command-line-scripts.html
This application is dependent on few files (both python and non-python file like yml). Currently, I'm adding these also as part of "scripts" keyword in setup.py. Is there any better way of handling this?
I'm using "scripts" keyword in setup.py so that when we install the package, setuptools will copy the script to our PATH and make it available for general use
setup(name='python-app',
version='0.1.0',
description='Python App',
python_requires='>=3.9',
packages=find_packages(),
scripts=['python-app.py', 'dependent-python.py', 'dependent-yaml.yml']
)
This works just fine but I see dependent files are also available for general use at system level. Is there any better way of doing it?