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

Configure entry point to make it easier to run cli.py #3

Open
JackKelly opened this issue Sep 29, 2023 · 1 comment
Open

Configure entry point to make it easier to run cli.py #3

JackKelly opened this issue Sep 29, 2023 · 1 comment

Comments

@JackKelly
Copy link
Collaborator

So pip install installs the cli. So it's available from all paths.

@JackKelly
Copy link
Collaborator Author

JackKelly commented Nov 14, 2023

The maturin docs contain this relevant info, about lines to add to pyproject.toml:

Pip allows adding so called console scripts, which are shell commands that execute some function in your program. You can add console scripts in a section [project.scripts].
The keys are the script names while the values are the path to the function in the format some.module.path:class.function, where the class part is optional. The function is called with no arguments. Example:

[project.scripts]
get_42 = "my_project:DummyClass.get_42"

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

No branches or pull requests

1 participant