Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug project.scripts #1328

Closed
mpenning opened this issue Mar 16, 2024 · 1 comment
Closed

Debug project.scripts #1328

mpenning opened this issue Mar 16, 2024 · 1 comment

Comments

@mpenning
Copy link

I have a strange problem.

I have a working package build (ref: ciscoconfparse2 version 0.7.10, at git hash 4103f96). That ciscoconfparse2 version includes a hatch project.scripts script called ccp. When I pip install version 0.7.10, things work as expected.

I added some new features to the CLI script in version 0.7.11 (yet to be released on github). I ran make install_build (local to my Makefile) to install / test the package locally on my system before pushing the package to pypi, but for some reason version 0.7.11 is not installing the ccp script.

I manually went into the CLI script entry point and commented out virtually everything, and that script indeed installs.

However, this also works just fine with the copy of the script that I was going to push to pypi...

>>> from ciscoconfparse2.cli_script import ccp_script_entry
>>> ccp_script_entry()

I'm scratching my head to find what is broken...

Is there a way to debug why the CLI script is not being installed? FWIW, my ciscoconfparse2 pytest tests pass, but obviously there is something not working. hatch --verbose build doesn't tell me anything wrong...

$ hatch --verbose build
──────────────────────────────────────────────────────── sdist ─────────────────────────────────────────────────────────
Building `sdist` version `standard`
dist/ciscoconfparse2-0.7.11.tar.gz
──────────────────────────────────────────────────────── wheel ─────────────────────────────────────────────────────────
Building `wheel` version `standard`
dist/ciscoconfparse2-0.7.11-py3-none-any.whl
$
@ofek
Copy link
Collaborator

ofek commented Mar 16, 2024

There was a bug, please try the latest version:

[build-system]
requires = ["hatchling>=1.22.2"]
build-backend = "hatchling.build"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants