Skip to content

Commit

Permalink
bump template to 2024.22 (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuadavidthomas authored Aug 1, 2024
1 parent 883967f commit 19a7daa
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .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: v2024.17
_commit: v2024.22
_src_path: gh:westerveltco/django-twc-package
author_email: [email protected]
author_name: Josh Thomas
Expand Down
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @westerveltco/oss
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ updates:
interval: weekly
timezone: America/Chicago
labels:
- dependabot
- 🤖 dependabot
groups:
gha:
patterns:
Expand Down
32 changes: 5 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,12 @@ on:
release:
types: [released]

jobs:
check:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4

- name: Check most recent test run on `main`
id: latest-test-result
run: |
echo "result=$(gh run list \
--branch=main \
--workflow=test.yml \
--json headBranch,workflowName,conclusion \
--jq '.[] | select(.headBranch=="main" and .conclusion=="success") | .conclusion' \
| head -n 1)" >> $GITHUB_OUTPUT
permissions:
contents: write

- name: OK
if: ${{ (contains(steps.latest-test-result.outputs.result, 'success')) }}
run: exit 0

- name: Fail
if: ${{ !contains(steps.latest-test-result.outputs.result, 'success') }}
run: exit 1
jobs:
test:
uses: ./.github/workflows/test.yml

pypi:
if: ${{ github.event_name == 'release' }}
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/

## [Unreleased]

### Changed

- Bumped `django-twc-package` template version to v2024.22.

## [0.13.0]

### Added
Expand Down
3 changes: 3 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ set dotenv-load := true

bootstrap:
@just pup
@just install

install:
python -m uv pip install --editable '.[dev]'

pup:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- Python 3.8, 3.9, 3.10, 3.11, 3.12
- Django 4.2, 5.0

## Getting Started
## Installation

1. Install the package from PyPI:

Expand All @@ -30,7 +30,7 @@ INSTALLED_APPS = [
]
```

## Usage
## Getting Started

## Documentation

Expand Down
1 change: 0 additions & 1 deletion src/django_twc_toolbox/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import annotations

__version__ = "0.13.0"
__template_version__ = "2024.17"
File renamed without changes.
6 changes: 3 additions & 3 deletions src/django_twc_toolbox/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
from django.contrib.admin.options import BaseModelAdmin
from django.http import HttpRequest

from django_twc_toolbox._types import ChildModelT
from django_twc_toolbox._types import ListOrTuple
from django_twc_toolbox._types import ParentModelT
from ._typing import ChildModelT
from ._typing import ListOrTuple
from ._typing import ParentModelT

if sys.version_info >= (3, 12):
from typing import override
Expand Down
2 changes: 1 addition & 1 deletion src/django_twc_toolbox/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from django.conf import settings

from ._types import override
from ._typing import override

DJANGO_TWC_TOOLBOX_SETTINGS_NAME = "DJANGO_TWC_TOOLBOX"

Expand Down
2 changes: 1 addition & 1 deletion src/django_twc_toolbox/paginator.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from django.db.models.query import QuerySet
from django.utils.functional import cached_property

from ._types import override
from ._typing import override

if TYPE_CHECKING:
from typing import Any
Expand Down

0 comments on commit 19a7daa

Please sign in to comment.