Skip to content

Commit d6c8538

Browse files
committed
✨ hatch-pip-compile
1 parent ef6baca commit d6c8538

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+250
-593
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fetch-depth: 2
1717
ref: main
1818
- name: Setup Node.js
19-
uses: actions/setup-node@v3
19+
uses: actions/setup-node@v4
2020
- name: Release
2121
run: |
2222
npm install --prefix .github/semantic_release/

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ cookiecutter gh:juftin/cookiecutter-python
1818
- [hatch] for managing the project's virtual environment and development tools
1919
- [ruff] for code formatting and linting
2020
- [mypy] for type checking
21-
- [pip-tools] for dependency management + lockfile
21+
- [hatch-pip-compile] for dependency management + lockfiles
2222
- [pre-commit] for managing git hooks
2323
- [GitHub Actions] for CI/CD
2424
- [MkDocs] and [mkdocs-material] for documentation
@@ -85,22 +85,22 @@ hatch run docs:serve
8585
Once the server is running, you can view the documentation at
8686
[localhost:8080/contributing] or see a preview at [juftin.com/cookiecutter-python/contributing].
8787

88-
[pre-commit]: https://pre-commit.com/
89-
[gitmoji]: https://gitmoji.dev/
88+
[pre-commit]: https://github.com/pre-commit/pre-commit
89+
[gitmoji]: https://gitmoji.dev
9090
[semantic-release]: https://github.com/semantic-release/semantic-release
9191
[Cookiecutter]: https://github.com/cookiecutter/cookiecutter
92-
[hatch]: https://hatch.pypa.io/latest/
93-
[MkDocs]: https://www.mkdocs.org/
94-
[mkdocs-material]: https://squidfunk.github.io/mkdocs-material/
92+
[hatch]: https://github.com/pypa/hatch
93+
[MkDocs]: https://github.com/mkdocs/mkdocs
94+
[mkdocs-material]: https://github.com/squidfunk/mkdocs-material
9595
[Github Actions]: https://github.com/features/actions
9696
[Github Pages]: https://pages.github.com/
9797
[juftin]: https://github.com/juftin
98-
[pipx]: https://pypa.github.io/pipx/
98+
[pipx]: https://github.com/pypa/pipx
9999
[PyPI]: https://pypi.org/
100100
[Docker Hub]: https://hub.docker.com/
101-
[pip-tools]: https://pip-tools.readthedocs.io/en/latest/
101+
[hatch-pip-compile]: https://github.com/juftin/hatch-pip-compile
102102
[GitHub CLI]: https://cli.github.com/
103103
[localhost:8080/contributing]: http://localhost:8080/contributing
104-
[ruff]: https://docs.astral.sh/ruff/
105-
[mypy]: https://mypy.readthedocs.io/
104+
[ruff]: https://github.com/astral/ruff/
105+
[mypy]: https://github.com/python/mypy
106106
[juftin.com/cookiecutter-python/contributing]: https://juftin.com/cookiecutter-python/contributing/

cookiecutter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"full_name": "Justin Flannery",
99
"email": "[email protected]",
1010
"github_username": "juftin",
11-
"default_python_version": ["3.12", "3.11", "3.10", "3.9", "3.8"],
11+
"default_python_version": ["3.11", "3.12", "3.10", "3.9", "3.8"],
1212
"default_branch": ["main", "master"],
1313
"license": ["MIT", "Apache-2.0", "GPL-3.0", "UNLICENSED"],
1414
"development_status": [

docs/index.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ cookiecutter gh:juftin/cookiecutter-python
1818
- [hatch] for managing the project's virtual environment and development tools
1919
- [ruff] for code formatting and linting
2020
- [mypy] for type checking
21-
- [pip-tools] for dependency management + lockfile
21+
- [hatch-pip-compile] for dependency management + lockfiles
2222
- [pre-commit] for managing git hooks
2323
- [GitHub Actions] for CI/CD
2424
- [MkDocs] and [mkdocs-material] for documentation
@@ -83,23 +83,24 @@ hatch run docs:serve
8383
```
8484

8585
Once the server is running, you can view the documentation at
86-
[localhost:8080/contributing].
86+
[localhost:8080/contributing] or see a preview at [juftin.com/cookiecutter-python/contributing].
8787

88-
[pre-commit]: https://pre-commit.com/
89-
[gitmoji]: https://gitmoji.dev/
88+
[pre-commit]: https://github.com/pre-commit/pre-commit
89+
[gitmoji]: https://gitmoji.dev
9090
[semantic-release]: https://github.com/semantic-release/semantic-release
9191
[Cookiecutter]: https://github.com/cookiecutter/cookiecutter
92-
[hatch]: https://hatch.pypa.io/latest/
93-
[MkDocs]: https://www.mkdocs.org/
94-
[mkdocs-material]: https://squidfunk.github.io/mkdocs-material/
92+
[hatch]: https://github.com/pypa/hatch
93+
[MkDocs]: https://github.com/mkdocs/mkdocs
94+
[mkdocs-material]: https://github.com/squidfunk/mkdocs-material
9595
[Github Actions]: https://github.com/features/actions
9696
[Github Pages]: https://pages.github.com/
9797
[juftin]: https://github.com/juftin
98-
[pipx]: https://pypa.github.io/pipx/
98+
[pipx]: https://github.com/pypa/pipx
9999
[PyPI]: https://pypi.org/
100100
[Docker Hub]: https://hub.docker.com/
101-
[pip-tools]: https://pip-tools.readthedocs.io/en/latest/
101+
[hatch-pip-compile]: https://github.com/juftin/hatch-pip-compile
102102
[GitHub CLI]: https://cli.github.com/
103103
[localhost:8080/contributing]: http://localhost:8080/contributing
104-
[ruff]: https://docs.astral.sh/ruff/
105-
[mypy]: https://mypy.readthedocs.io/
104+
[ruff]: https://github.com/astral/ruff/
105+
[mypy]: https://github.com/python/mypy
106+
[juftin.com/cookiecutter-python/contributing]: https://juftin.com/cookiecutter-python/contributing/

tests/example-project/.github/semantic_release/release_notes.hbs

Lines changed: 0 additions & 93 deletions
This file was deleted.

tests/example-project/.github/workflows/docker.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
- name: Set up Python
2424
uses: actions/setup-python@v4
2525
with:
26-
python-version: "3.12"
27-
- name: Install Dependencies
26+
python-version: "3.11"
27+
- name: Install Hatch
2828
run: |
29-
python -m pip install --upgrade pip
29+
python -m pip install -q --upgrade pip wheel
3030
python -m pip install -q hatch pre-commit
3131
hatch --version
3232
- name: Declare Version Variable

tests/example-project/.github/workflows/lint.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@ jobs:
1515
- name: Set up Python Environment
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: "3.12"
19-
- name: Install Python Dependencies
18+
python-version: "3.11"
19+
- name: Install Hatch
2020
run: |
21-
python -m pip install --upgrade pip
21+
python -m pip install --upgrade pip wheel
2222
python -m pip install -q hatch pre-commit
23-
hatch env create
2423
hatch --version
2524
- name: Lint
2625
id: lint

tests/example-project/.github/workflows/publish.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Python
1919
uses: actions/setup-python@v4
2020
with:
21-
python-version: "3.12"
21+
python-version: "3.11"
2222
- name: Install Hatch
2323
run: |
2424
python -m pip install --upgrade pip
@@ -28,7 +28,7 @@ jobs:
2828
run: |
2929
hatch build
3030
- name: Publish package on PyPI
31-
uses: pypa/[email protected].10
31+
uses: pypa/[email protected].11
3232
with:
3333
user: __token__
3434
password: ${{ secrets.PYPI_TOKEN }}
@@ -45,10 +45,10 @@ jobs:
4545
- name: Set up Python
4646
uses: actions/setup-python@v4
4747
with:
48-
python-version: "3.12"
48+
python-version: "3.11"
4949
- name: Install Hatch
5050
run: |
51-
python -m pip install --upgrade pip
51+
python -m pip install -q --upgrade pip wheel
5252
python -m pip install -q hatch pre-commit
5353
hatch --version
5454
- name: Set up QEMU

tests/example-project/.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
fetch-depth: 2
2222
ref: main
2323
- name: Setup Node.js
24-
uses: actions/setup-node@v3
24+
uses: actions/setup-node@v4
2525
- name: Set up Python
2626
uses: actions/setup-python@v4
2727
with:
28-
python-version: "3.12"
28+
python-version: "3.11"
2929
- name: Install Hatch
3030
run: |
3131
python -m pip install --upgrade pip
@@ -56,10 +56,10 @@ jobs:
5656
- name: Set up Python Environment
5757
uses: actions/setup-python@v4
5858
with:
59-
python-version: "3.12"
59+
python-version: "3.11"
6060
- name: Install Hatch
6161
run: |
62-
python -m pip install --upgrade pip
62+
python -m pip install --upgrade pip wheel
6363
python -m pip install -q hatch pre-commit
6464
hatch --version
6565
- name: Set Up GitHub Actions User

tests/example-project/.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
python-version: ${{ matrix.python }}
4343
- name: Install Hatch
4444
run: |
45-
python -m pip install --upgrade pip
45+
python -m pip install -q --upgrade pip wheel
4646
python -m pip install -q hatch pre-commit
4747
hatch --version
4848
- name: Test Suite

0 commit comments

Comments
 (0)