I need a script to be produced by installing the package and to be put in user PATH
. I've followed the Hatch guide on entry points and my directory looks like this:
.
├── docs
│ ├── conf.py
│ ├── index.rst
│ ├── make.bat
│ ├── Makefile
│ ├── modules.rst
│ ├── pylb.experiments.rst
│ └── pylb.rst
├── LICENSE.txt
├── pyproject.toml
├── README.md
├── src
│ └── pylb
│ ├── __about__.py
│ ├── experiments
│ │ ├── __init__.py
│ │ └── sphinx.py
│ ├── __init__.py
│ └── scripts
│ └── __init__.py
└── tests
└── __init__.py
my pyproject.toml
looks like this:
[project.scripts]
pylbtestapp = "pylb.scripts:main"
and src/pylb/scripts/__init__.py
is:
def main():
print("Hi There! This is pylb test app.")
But when I install the package with pip, it does not put the script as it should (I guess). What am I doing wrong? For more info the full repo is here.