Skip to content

setuptools: use entry_points. - #7

Closed
comburent wants to merge 1 commit into
iana-org:masterfrom
comburent:patch-1
Closed

setuptools: use entry_points.#7
comburent wants to merge 1 commit into
iana-org:masterfrom
comburent:patch-1

Conversation

@comburent

Copy link
Copy Markdown

Makes it easier to package this as an installable application.

@paulehoffman

Copy link
Copy Markdown
Collaborator

This looks OK to me, but Kim should be the one to accept/reject.

@kjd

kjd commented Jul 12, 2023

Copy link
Copy Markdown
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 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.

@comburent

comburent commented Jul 13, 2023 via email

Copy link
Copy Markdown
Author

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
@kjd

kjd commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Rolled this function into PR #27

@kjd kjd closed this Apr 15, 2026
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.

7 participants