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

pyproject.toml: Add m2c entrypoint when installed as package #274

Merged
merged 2 commits into from
May 19, 2024
Merged

pyproject.toml: Add m2c entrypoint when installed as package #274

merged 2 commits into from
May 19, 2024

Conversation

abelbriggs1
Copy link
Contributor

@abelbriggs1 abelbriggs1 commented May 19, 2024

Currently, downstream users have to invoke some kind of Python script directly in order to run the CLI. This requires them to either write their own m2c.py wrapper script to invoke m2c.main:main, or manually download the repository (usually as a Git submodule).

This PR adds a freestanding command entrypoint, m2c, which can be run to invoke the m2c CLI simply by installing the Python package. This should streamline usage and dependency management for downstream users who don't use m2c as a library.

@ethteck
Copy link
Contributor

ethteck commented May 19, 2024

I think it'd be nicer to have the command be just m2c but this seems like a good idea

This allows downstream users of the m2c CLI to simply install it
through pip as part of their `requirements.txt`.
@abelbriggs1 abelbriggs1 changed the title pyproject.toml: Add mips2c entrypoint when installed as package pyproject.toml: Add m2c entrypoint when installed as package May 19, 2024
@simonlindholm
Copy link
Collaborator

Huh, that was easy. Worth adding a note about it in the README?

@simonlindholm simonlindholm merged commit 2e7ec29 into matt-kempster:master May 19, 2024
1 check passed
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.

3 participants