Skip to content

Commit 1b3df9a

Browse files
committed
chore: update package name to banjo-utils
1 parent 811b9fc commit 1b3df9a

20 files changed

Lines changed: 89 additions & 91 deletions

File tree

.github/workflows/release.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
permissions:
99
contents: write
10+
packages: write
1011

1112
jobs:
1213
generate-release:
@@ -23,7 +24,7 @@ jobs:
2324
id: release
2425
shell: bash
2526
run: |
26-
RELEASE_VERSION=${GITHUB_REF:11}
27+
RELEASE_VERSION=${GITHUB_REF:10}
2728
2829
IS_PRERELEASE=false
2930
if [[ "$RELEASE_VERSION" == *dev* ]]; then
@@ -46,7 +47,7 @@ jobs:
4647
args: -vv --latest --no-exec --github-repo ${{ github.repository }} --strip all
4748
env:
4849
GIT_CLIFF__REMOTE__GITHUB__OWNER: toggle-corp
49-
GIT_CLIFF__REMOTE__GITHUB__REPO: toggle-django-utils
50+
GIT_CLIFF__REMOTE__GITHUB__REPO: banjo-utils
5051

5152
- name: Create Github Release
5253
uses: softprops/action-gh-release@v2

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[submodule "fugit"]
22
path = fugit
33
url = https://github.com/toggle-corp/fugit.git
4-
branch = v0.1.1
4+
branch = v0.1.6

README.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# toggle-django-utils
1+
# Banjo utils
22

33
Reusable Django utilities and management commands for Toggle projects.
44

@@ -17,36 +17,33 @@ Reusable Django utilities and management commands for Toggle projects.
1717

1818
**Using [uv](https://github.com/astral-sh/uv):**
1919
```bash
20-
uv pip install "git+ssh://git@github.com/toggle-corp/toggle-django-utils.git@main"
20+
uv pip install "git+https://github.com/toggle-corp/banjo-utils.git@v0.1.0"
2121
```
2222

2323
Or add to your `pyproject.toml`:
2424
```toml
2525
[project]
2626
dependencies = [
27-
"toggle-django-utils",
27+
"banjo-utils",
2828
]
2929

3030
[tool.uv.sources]
31-
toggle-django-utils = { git = "https://github.com/toggle-corp/toggle-django-utils", branch = "main" }
31+
banjo-utils = { git = "https://github.com/toggle-corp/banjo-utils", tag = "v0.1.0" }
3232
```
3333

3434
---
3535

3636
## Setup in Django
3737

38-
1. **Add to `INSTALLED_APPS` in your Django project's `settings.py`:**
38+
- **Add to `INSTALLED_APPS` in your Django project's `settings.py`:**
3939

4040
```python
4141
INSTALLED_APPS = [
4242
# ... your other apps ...
43-
"toggle_django_utils",
43+
"banjo_utils",
4444
]
4545
```
4646

47-
2. (Optional) If your `settings.py` uses custom configs, ensure `"toggle_django_utils"` remains in the app list.
48-
49-
5047
---
5148

5249
## Usage
@@ -57,10 +54,10 @@ python manage.py wait_for_resources --db --redis
5754
```
5855

5956
**Command options:**
60-
- `--db`      Wait for database
61-
- `--redis`   Wait for Redis server
62-
- `--minio`   Wait for Minio (S3 storage)
63-
- `--timeout`   Set max wait time (seconds)
57+
- `--db`: Wait for database
58+
- `--redis`: Wait for Redis server
59+
- `--minio`: Wait for Minio (S3 storage)
60+
- `--timeout`: Set max wait time (seconds)
6461

6562
**Examples:**
6663
```bash

TODOS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- We can use something like this inside <settings.py>
22

33
```
4-
TOGGLE_DJANGO_UTILS_CONFIG = {
4+
BANJO_UTILS_CONFIG = {
55
"WAIT_FOR_RESOURCES": {
66
"ALIAS": {
77
"dev": ["db", "redis", "minio"],

example/main/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"django.contrib.contenttypes",
1414
"django.contrib.sessions",
1515
"django.contrib.messages",
16-
"toggle_django_utils",
16+
"banjo_utils",
1717
]
1818

1919
MIDDLEWARE = [

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ requires = [
55
]
66

77
[project]
8-
name = "toggle-django-utils"
8+
name = "banjo-utils"
99
version = "0.1.0"
1010
description = "Shared Django utilities for Toggle projects"
1111
readme = "README.md"
@@ -36,12 +36,12 @@ test = [
3636
]
3737

3838
[project.urls]
39-
Homepage = "https://github.com/toggle-corp/toggle-django-utils"
40-
Repository = "https://github.com/toggle-corp/toggle-django-utils"
41-
Issues = "https://github.com/toggle-corp/toggle-django-utils/issues"
39+
Homepage = "https://github.com/toggle-corp/banjo-utils"
40+
Repository = "https://github.com/toggle-corp/banjo-utils"
41+
Issues = "https://github.com/toggle-corp/banjo-utils/issues"
4242

4343
[tool.hatch.build.targets.wheel]
44-
packages = ["src/toggle_django_utils"]
44+
packages = ["src/banjo_utils"]
4545

4646
[tool.ruff.lint.per-file-ignores]
4747
"__init__.py" = ["E402"]

src/banjo_utils/apps.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from django.apps import AppConfig
2+
3+
4+
class BanjoUtilsConfig(AppConfig):
5+
name = "banjo_utils"
6+
verbose_name = "Banjo Utils"
7+
default_auto_field = "django.db.models.BigAutoField"
File renamed without changes.

0 commit comments

Comments
 (0)