'I have created the setup.py, toml file and the module properly. But after installation I am not able to run the module
I have created a reproducable project.
https://github.com/sagarpadiya6/python_cli
I am trying to create a simple CLI application and I am trying to install it as a cli tool. But the installation is success when I run the install.sh
But after that when I try to run the flight_price command I am getting command not found. For some reason its not registering the cli tool at all.
I am using macos. And I have python 3.9 installed using brew.
The install.sh script has the following line
pip3 install -e .
Here is my setup.py file.
#!/usr/bin/env python
from setuptools import setup
setup(
name='flight_price',
version='0.0.1',
packages=['flight_price'],
install_requires=[
'click',
'importlib-metadata; python_version == "3.9"',
],
entry_points={
'console_scripts': [
'flight_price = flight_price.__main__:main',
]
}
)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
