-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
1,269 additions
and
1,767 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#! /usr/bin/env bash | ||
|
||
# Install Dependencies | ||
poetry install --with dev | ||
uv sync | ||
|
||
# Install pre-commit hooks | ||
poetry run pre-commit install --install-hooks | ||
uv run pre-commit install --install-hooks |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: 'Setup Python Environment' | ||
description: 'Set up Python environment for the given Python version' | ||
|
||
inputs: | ||
python-version: | ||
description: 'Python version for setup-python' | ||
required: true | ||
default: '3.12' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
|
||
- name: Install uv | ||
run: pipx install uv | ||
env: | ||
UV_VERSION: '0.4.2' | ||
shell: bash | ||
|
||
- name: Install Python dependencies | ||
run: uv sync --frozen | ||
shell: bash |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ You can contribute in many ways: | |
|
||
## Report Bugs | ||
|
||
Report bugs at <https://github.com/fpgmaas/cookiecutter-poetry/issues | ||
Report bugs at <https://github.com/fpgmaas/cookiecutter-uv/issues | ||
|
||
If you are reporting a bug, please include: | ||
|
||
|
@@ -33,7 +33,7 @@ Cookiecutter PyPackage could always use more documentation, whether as part of t | |
|
||
## Submit Feedback | ||
|
||
The best way to send feedback is to file an issue at <https://github.com/fpgmaas/cookiecutter-poetry/issues. | ||
The best way to send feedback is to file an issue at <https://github.com/fpgmaas/cookiecutter-uv/issues. | ||
|
||
If you are proposing a new feature: | ||
|
||
|
@@ -43,42 +43,34 @@ If you are proposing a new feature: | |
|
||
# Get Started! | ||
|
||
Ready to contribute? Here\'s how to set up `cookiecutter-poetry` for local development. | ||
Please note this documentation assumes you already have `poetry` and `git` installed and ready to go. | ||
Ready to contribute? Here\'s how to set up `cookiecutter-uv` for local development. | ||
Please note this documentation assumes you already have `uv` and `git` installed and ready to go. | ||
|
||
1. Fork the `cookiecutter-poetry` repo on GitHub. | ||
1. Fork the `cookiecutter-uv` repo on GitHub. | ||
|
||
2. Clone your fork locally: | ||
|
||
```bash | ||
cd <directory_in_which_repo_should_be_created | ||
git clone [email protected]:YOUR_NAME/cookiecutter-poetry.git | ||
git clone [email protected]:YOUR_NAME/cookiecutter-uv.git | ||
``` | ||
|
||
3. Now we need to install the environment. | ||
Navigate into the project directory: | ||
|
||
```bash | ||
cd cookiecutter-poetry | ||
``` | ||
|
||
If you are using `pyenv`, select a version to use locally. | ||
(See installed versions with `pyenv versions`) | ||
|
||
```bash | ||
pyenv local <x.y.z | ||
cd cookiecutter-uv | ||
``` | ||
|
||
Then, install and activate the environment with: | ||
|
||
```bash | ||
poetry install | ||
poetry shell | ||
uv sync | ||
``` | ||
|
||
4. Install pre-commit to run linters/formatters at commit time: | ||
|
||
poetry run pre-commit install | ||
uv run pre-commit install | ||
|
||
5. Create a branch for local development: | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
include cookiecutter.json | ||
recursive-include hooks * | ||
recursive-include {{cookiecutter.project_name}} * |
Oops, something went wrong.