-
Notifications
You must be signed in to change notification settings - Fork 555
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
Add entry_points to setuptools’ configuration to provide command-line console scripts #3199
Labels
Comments
julian-smith-artifex-com
added a commit
that referenced
this issue
Feb 25, 2024
This uses pipcl.py's new `entry_points` support. Note that direct installation with `setup.py install` does not implement this. tests/test_general.py: test_cli() - basic test of command-line `pymupdf` command. Addresses #3199.
Thanks for this, i didn't know about entry_points before. In my tree i have added support for entry_points to pipcl.py and modified setup.py, so that installation gives a Depending on internal review, it might get included in the next release. Thanks again. |
julian-smith-artifex-com
added a commit
that referenced
this issue
Feb 27, 2024
This uses pipcl.py's new `entry_points` support. Note that direct installation with `setup.py install` does not implement this. tests/test_general.py: test_cli() - basic test of command-line `pymupdf` command. Addresses #3199.
julian-smith-artifex-com
added
Fixed in next release
fix developed
release schedule to be determined
labels
Feb 29, 2024
Fixed in 1.23.26. |
Thanks, Julian! Really appreciate all the good work on (Py-) MuPDF! Regards.
…On Mon, Feb 26, 2024 at 7:28 PM Julian Smith ***@***.***> wrote:
Thanks for this, i didn't know about entry_points before.
In my tree i have added support for entry_points to pipcl.py and modified
setup.py, so that installation gives a pymupdf command that runs fitz/
*main*.py.
Depending on internal review, it might get included in the next release.
Thanks again.
—
Reply to this email directly, view it on GitHub
<#3199 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJW2VYOYDZPI367QXWAPZDTYVUEAXAVCNFSM6AAAAABDVNBWBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRVGQZDONJXHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Currently, PyMuPDF is not pipx-installable because it does not provide any console commands:
To make, e.g., fitz, directly available from the command-line we need to add entry_points to setuptools’ configuration [1]:
This would require modifying the pipcl.Package class.
It could alternatively be added to pyproject.toml [2]:
[1] https://setuptools.pypa.io/en/latest/userguide/entry_point.html
[2] https://packaging.python.org/en/latest/specifications/pyproject-toml/#entry-points
The text was updated successfully, but these errors were encountered: