GH-180: Adds CLI entry point and migrate build system to Hatch#212
Open
cr2007 wants to merge 4 commits intooriginalankur:mainfrom
Open
GH-180: Adds CLI entry point and migrate build system to Hatch#212cr2007 wants to merge 4 commits intooriginalankur:mainfrom
cr2007 wants to merge 4 commits intooriginalankur:mainfrom
Conversation
Remove packages that are pulled in transitively by core dependencies and no longer need to be declared explicitly. This simplifies pyproject.toml and shrinks uv.lock, including dropping 'scipy' and related scientific stack entries. Addresses: originalankur#180 Signed-off-by: CSK <73425927+cr2007@users.noreply.github.com>
Move script logic into a main() function and call it from `if __name__ == "__main__"`. Switch build system from setuptools to hatchling and configure a console script entry point `maptoposter` pointing to `create_map_poster:main`. This enables installing the project with a proper CLI command. Addresses: originalankur#180 Signed-off-by: CSK <73425927+cr2007@users.noreply.github.com>
Author
|
Updating the README steps. Will mark it as ready once it has been added. |
- Reorganized installation instructions for clarity and flow 1. `uv` recommended usage with `uvx` and CLI install 2. Local installation options with `uv run`, `uv sync`, and pip+venv - Updated usage section to prioritize the `maptoposter` CLI first followed by `uv run` and manual Python execution - Improved formatting, examples, and explanatory text for better readability Addresses: originalankur#180 Signed-off-by: CSK <73425927+cr2007@users.noreply.github.com>
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.
This PR refactors the script entry point and modernizes the project
packaging setup.
Fixes #180
Changes
main()function increate_map_poster.py.maptoposter) viaproject.scripts.setuptoolstohatchling.pyproject.tomlandrequirements.txtby removing transitive dependencies.uv.lockto reflect the new dependency set.Usage
You can now run the tool directly without cloning the repo using
uvx:Or install it as a reusable CLI tool:
This makes the project easier to install and use as a standalone CLI utility.