Skip to content

feat: support script mode in setup.cfg#127

Open
noahp wants to merge 1 commit into
noseglasses:masterfrom
noahp:noahp/script-support
Open

feat: support script mode in setup.cfg#127
noahp wants to merge 1 commit into
noseglasses:masterfrom
noahp:noahp/script-support

Conversation

@noahp

@noahp noahp commented Aug 29, 2025

Copy link
Copy Markdown

Add the entry needed to run as a console script. This enables usage models like so:

pip install elf-diff

# run the script standalone, without python -m
elf_diff ...

# use uvx to run the script in one shot
uvx elf_diff ...

For testing, uvx can be invoked like so locally:

uvx --no-cache --from . -- \
  elf-diff --html_dir report tests/x86_64/libelf_diff_test_debug_old.a tests/x86_64/libelf_diff_test_debug_new.a

Add the entry needed to run as a console script. This enables usage
models like so:

```bash
pip install elf-diff

# run the script standalone, without python -m
elf_diff ...

# use uvx to run the script in one shot
uvx elf_diff ...
```

For testing, `uvx` can be invoked like so locally:

```bash
uvx --no-cache --from . -- \
  elf-diff --html_dir report tests/x86_64/libelf_diff_test_debug_old.a tests/x86_64/libelf_diff_test_debug_new.a
```
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

Successfully merging this pull request may close these issues.

1 participant