setuptools: use entry_points. - #7
Closed
comburent wants to merge 1 commit into
Closed
Conversation
Collaborator
|
This looks OK to me, but Kim should be the one to accept/reject. |
Contributor
|
This needs some work. I wasn't able to get it to work locally (but that could be an issue on my part). But even if it does work, it changes the invocation from |
Author
|
Hi Kim,
On 2023-07-12 19:00, Kim Davies wrote:
This needs some work. I wasn't able to get it to work locally (but that could be an issue on my part). But even if it does work, it changes the invocation from `python get_trust_anchor.py` to `get-trust-anchor` and therefore the documentation needs to be updated to reflect that. Also underscores in module names isn't idiomatic.
I more or less followed the steps described in [1].
By underscores, do you mean the underscores from the `__main__` part?
If you happen to use Guix, there's a submission [1] to add this as a
package and it includes this patch.
[1]: <https://alexandra-zaharia.github.io/posts/distribute-a-python-package-with-a-standalone-script-using-setuptools/>
[2]: <https://issues.guix.gnu.org/64545>
…--
Cheers,
Bruno.
|
aguilarhj1
approved these changes
Sep 9, 2023
josegees291614
approved these changes
Oct 26, 2023
Djvictorvargas
approved these changes
Aug 3, 2025
whiteroxanne-gif
approved these changes
Oct 25, 2025
whiteroxanne-gif
approved these changes
Oct 25, 2025
whiteroxanne-gif
approved these changes
Oct 25, 2025
whiteroxanne-gif
approved these changes
Oct 25, 2025
kjd
added a commit
that referenced
this pull request
Apr 15, 2026
Replace the flat script with a proper Python package structure
(get_trust_anchor/{__init__,__main__,cli}.py) and add a
console_scripts entry point so `pip install` provides a
`get-trust-anchor` command. Also supports `python -m get_trust_anchor`.
Replaces setup.py with pyproject.toml and drops Python 2 support.
See also: #7
Contributor
|
Rolled this function into PR #27 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes it easier to package this as an installable application.