pypa / hatch

Modern, extensible Python project management
https://hatch.pypa.io/latest/
MIT License
6.11k stars 309 forks source link

Cannot distribute standalone script #1732

Open poquirion opened 2 months ago

poquirion commented 2 months ago

We have utility scripts, some of them not written in python, which comes with our package that need to be added to our users PATH. They are easy to distribute with setuptools setup.py using:

setuptools.setup(scripts = [
        'utils/some_tool.sh'
]

How would that be done with hatch? We can't find any reference in the documentation.

We have not figured a way of doing that outside of writing a python entrypoint that would call the bash tool as a subprocess, but we do not like that hack.