Add rename script for project initialization#47
Conversation
- Create a Python-based `rename` script in `scripts/rename.py` to handle project renaming. - Replace shell commands in `make project` target with the new `rename` script. - Update `pyproject.toml` to register the `rename` script. - Improve `uv` target in `Makefile` to check for existing installation. The script automates: - Renaming the `templates` directory. - Updating metadata in `pyproject.toml`, `mkdocs.yml`, `docs/README.md`, `.github/CODEOWNERS`, and `.github/FUNDING.yml`. - Global search and replace of 'templates' placeholder in source files.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- Moved `new.py` to `scripts/new.py`. - Updated `[project.scripts]` in `pyproject.toml` to point `new` to `scripts.new:main`.
I have added a new
renamePython script that automates the process of renaming the project and updating its metadata. This replaces the previous shell-based approach in theMakefilewith a more robust and cross-platform solution.Key changes:
scripts/rename.py: A new script usingClickthat handles directory renaming, metadata updates in various configuration files, and a global search-and-replace for the 'templates' placeholder.pyproject.toml: Added therenamescript to[project.scripts].Makefile: Updated theprojecttarget to useuv run renameand improved theuvtarget to be more resilient.templates.), paths (templates/), and configuration strings ("templates").The changes have been verified with
make lintandmake test, and addressed feedback from a code review.PR created automatically by Jules for task 15608891695709788367 started by @amrabed