Skip to content

🔖 bump version 2024.27 -> 2024.28 #131

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

Merged
merged 3 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

## [2024.28]

### Added

- Template is linted and bootstrapped after generation.
Expand Down Expand Up @@ -300,7 +302,7 @@ Initial release! 🎉

- Josh Thomas <[email protected]> (maintainer)

[unreleased]: https://github.com/westerveltco/django-twc-package/compare/v2024.27...HEAD
[unreleased]: https://github.com/westerveltco/django-twc-package/compare/v2024.28...HEAD
[2024.1]: https://github.com/westerveltco/django-twc-package/releases/tag/v2024.1
[2024.2]: https://github.com/westerveltco/django-twc-package/releases/tag/v2024.2
[2024.3]: https://github.com/westerveltco/django-twc-package/releases/tag/v2024.3
Expand Down Expand Up @@ -328,3 +330,4 @@ Initial release! 🎉
[2024.25]: https://github.com/westerveltco/django-twc-package/releases/tag/v2024.25
[2024.26]: https://github.com/westerveltco/django-twc-package/releases/tag/v2024.26
[2024.27]: https://github.com/westerveltco/django-twc-package/releases/tag/v2024.27
[2024.28]: https://github.com/westerveltco/django-twc-package/releases/tag/v2024.28
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024.27
2024.28
2 changes: 1 addition & 1 deletion copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _min_copier_version: "9.1.0"
_subdirectory: src/django_twc_package

template_version:
default: "2024.27"
default: "2024.28"
when: false

# ----------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion examples/calver_inc/.copier/package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: 680f24f
_commit: v2024.27-15-g8755ecc
_src_path: .
author_email: [email protected]
author_name: John Doe
Expand Down
15 changes: 5 additions & 10 deletions examples/calver_inc/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
uses: ./.github/workflows/test.yml

pypi:
if: ${{ github.event_name == 'release' }}
runs-on: ubuntu-latest
needs: test
environment: release
Expand All @@ -22,19 +21,15 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
python-version: "3.13"
allow-prereleases: true

- name: Install dependencies
run: |
python -m pip install -U pip uv
python -m uv pip install --system hatch
enable-cache: true
version: "0.4.x"

- name: Build package
run: |
hatch build
uv build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
66 changes: 32 additions & 34 deletions examples/calver_inc/.github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ concurrency:
env:
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"
PY_MAX_VERSION: "3.13"
PY_MIN_VERSION: "3.8"
UV_VERSION: "0.4.x"

jobs:
generate-matrix:
Expand All @@ -22,19 +25,18 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
python-version: "3.8"
allow-prereleases: true
enable-cache: true
version: ${{ env.UV_VERSION }}

- name: Install dependencies
run: |
python -m pip install -U pip uv
python -m uv pip install --system nox
- name: Install Python
run: uv python install ${{ env.PY_MIN_VERSION }}

- id: set-matrix
run: |
echo "matrix=$(python -m nox -l --json | jq -c '[.[] | select(.name == "tests") | {"python-version": .python, "django-version": .call_spec.django}] | {include: .}')" >> $GITHUB_OUTPUT
uv run nox --session "gha_matrix"

test:
name: Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }}
Expand All @@ -46,19 +48,18 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
python-version: "${{ matrix.python-version }}"
allow-prereleases: true
enable-cache: true
version: ${{ env.UV_VERSION }}

- name: Install dependencies
run: |
python -m pip install -U pip uv
python -m uv pip install --system nox
- name: Install Python
run: uv python install ${{ matrix.python-version }}

- name: Run tests
run: |
python -m nox --session "tests(python='${{ matrix.python-version }}', django='${{ matrix.django-version }}')"
uv run nox --session "tests(python='${{ matrix.python-version }}', django='${{ matrix.django-version }}')"

tests:
runs-on: ubuntu-latest
Expand All @@ -76,36 +77,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
python-version: "3.13"
allow-prereleases: true
enable-cache: true
version: ${{ env.UV_VERSION }}

- name: Install dependencies
run: |
python -m pip install -U pip uv
python -m uv pip install --system nox
- name: Install Python
run: uv python install ${{ env.PY_MAX_VERSION }}

- name: Run mypy
run: |
python -m nox --session "mypy"
uv run nox --session "types"

coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
python-version: "3.8"
allow-prereleases: true
enable-cache: true
version: ${{ env.UV_VERSION }}

- name: Install dependencies
run: |
python -m pip install -U pip uv
python -m uv pip install --system nox
- name: Install Python
run: uv python install ${{ env.PY_MIN_VERSION }}

- name: Run coverage
- name: Run mypy
run: |
python -m nox --session "coverage"
uv run nox --session "coverage"
36 changes: 36 additions & 0 deletions examples/calver_inc/.just/copier.just
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
set unstable := true

justfile := justfile_directory() + "/.just/copier.just"

[private]
default:
@just --list --justfile {{ justfile }}

[private]
fmt:
@just --fmt --justfile {{ justfile }}

# Create a copier answers file
[no-cd]
copy TEMPLATE_PATH DESTINATION_PATH=".":
uv run copier copy --trust {{ TEMPLATE_PATH }} {{ DESTINATION_PATH }}

# Recopy the project from the original template
[no-cd]
recopy ANSWERS_FILE *ARGS:
uv run copier recopy --trust --answers-file {{ ANSWERS_FILE }} {{ ARGS }}

# Loop through all answers files and recopy the project using copier
[no-cd]
@recopy-all *ARGS:
for file in `ls .copier/`; do just copier recopy .copier/$file "{{ ARGS }}"; done

# Update the project using a copier answers file
[no-cd]
update ANSWERS_FILE *ARGS:
uv run copier update --trust --answers-file {{ ANSWERS_FILE }} {{ ARGS }}

# Loop through all answers files and update the project using copier
[no-cd]
@update-all *ARGS:
for file in `ls .copier/`; do just copier update .copier/$file "{{ ARGS }}"; done
31 changes: 31 additions & 0 deletions examples/calver_inc/.just/documentation.just
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
set unstable := true

justfile := justfile_directory() + "/.just/documentation.just"

[private]
default:
@just --list --justfile {{ justfile }}

[private]
fmt:
@just --fmt --justfile {{ justfile }}

# Build documentation using Sphinx
[no-cd]
build LOCATION="docs/_build/html": cog
uv run --extra docs sphinx-build docs {{ LOCATION }}

# Serve documentation locally
[no-cd]
serve PORT="8000": cog
#!/usr/bin/env sh
HOST="localhost"
if [ -f "/.dockerenv" ]; then
HOST="0.0.0.0"
fi
uv run --extra docs sphinx-autobuild docs docs/_build/html --host "$HOST" --port {{ PORT }}

[no-cd]
[private]
cog:
uv run --extra docs cog -r docs/development/just.md
16 changes: 5 additions & 11 deletions examples/calver_inc/.readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,18 @@
version: 2

build:
jobs:
pre_build:
- asdf plugin add just && asdf install just latest && asdf global just latest
- just _cog
os: ubuntu-22.04
tools:
python: "3.13"
commands:
- asdf plugin add just && asdf install just latest && asdf global just latest
- asdf plugin add uv && asdf install uv latest && asdf global uv latest
- just docs cog
- uv run --extra docs sphinx-build docs $READTHEDOCS_OUTPUT/html

sphinx:
configuration: docs/conf.py

formats:
- pdf
- epub

python:
install:
- method: pip
path: .
extra_requirements:
- docs
4 changes: 2 additions & 2 deletions examples/calver_month/.copier/package.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: 7c259a0
_commit: v2024.27-15-g5095ee1
_src_path: .
author_email: [email protected]
author_name: John Doe
current_version: 2024.8.1
current_version: 2024.10.1
django_versions:
- '4.2'
- '5.0'
Expand Down
15 changes: 5 additions & 10 deletions examples/calver_month/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
uses: ./.github/workflows/test.yml

pypi:
if: ${{ github.event_name == 'release' }}
runs-on: ubuntu-latest
needs: test
environment: release
Expand All @@ -22,19 +21,15 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
python-version: "3.13"
allow-prereleases: true

- name: Install dependencies
run: |
python -m pip install -U pip uv
python -m uv pip install --system hatch
enable-cache: true
version: "0.4.x"

- name: Build package
run: |
hatch build
uv build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Loading