Skip to content

Commit d4aca1d

Browse files
authored
Merge pull request #71 from m1kc/next
Major release: 3.0
2 parents 84a4569 + 2228bf1 commit d4aca1d

29 files changed

Lines changed: 419 additions & 1047 deletions

.github/workflows/audit.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Dependency audit
2+
run-name: Checking dependencies vulnerabilities
3+
on: [push]
4+
jobs:
5+
audit:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- name: Set up Python 3.9
10+
uses: actions/setup-python@v4
11+
with:
12+
python-version: 3.9
13+
- run: pip install uv pip-audit-extra
14+
- run: uv export --format requirements-txt | pip-audit-extra --fail-level CRITICAL --severity HIGH

DEVELOPMENT.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,13 @@
55
```sh
66
pipx install git+https://github.com/m1kc/django-spinproject.git@rc --force
77
# pip install --user --upgrade 'git+https://github.com/m1kc/django-spinproject.git@master'
8-
# poetry add 'git+https://github.com/m1kc/django-spinproject.git@master'
8+
# uv add 'git+https://github.com/m1kc/django-spinproject.git@master'
99
```
1010

1111
## Publish a release
1212

1313
1. Bump version in pyproject.toml. Create a commit with message `v1.x.x`;
1414
2. Create a tag named `v1.x.x` (using gitg), `git push --tags`;
15-
3. `poetry build`
16-
4. `poetry publish`
15+
3. `uv build`
16+
4. `uv publish --token <private-token> dist/<filenames>`
1717
5. Write release notes ("Auto-generate" for changelog link, `git log --oneline --graph` to generate commit list).
18-
19-
## Authenticate with PyPI
20-
21-
```sh
22-
poetry config pypi-token.pypi <private-token>
23-
```

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ FOLDER=qqqq
44

55
projectenv: project
66
cd ${FOLDER}
7-
poetry add django django-environ whitenoise
8-
poetry shell
7+
uv add django django-environ whitenoise
8+
uv run python3
99

1010
project: clean
1111
./django_spinproject/bin/spinproject.py ${FOLDER}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Opinionated version of `django-admin startproject` that intends to go further an
66
* 🔧 **settings.py**: slightly modified to also understand environment variables and `.env` files. This functionality requires the `django-environ` package. Also, app logger is mostly pre-configured for you.
77
* 🔑 **Minimal login/logout pages** so you can set this up without reading the guide again.
88
* 🔒 **Support for marking PostgreSQL databases as read-only** to prevent accidental modification of critical data.
9-
* 🧰 `script/bootstrap` and other [scripts to rule them all](https://github.blog/2015-06-30-scripts-to-rule-them-all/) so your fellow developers and maintainers don't ask you how to run this thing. Current versions of these scripts optimized for use with [poetry](https://python-poetry.org/), but you can easily adapt them for any Python package manager.
9+
* 🧰 `script/bootstrap` and other [scripts to rule them all](https://github.blog/2015-06-30-scripts-to-rule-them-all/) so your fellow developers and maintainers don't ask you how to run this thing. Current versions of these scripts optimized for use with [uv](https://docs.astral.sh/uv), but you can easily adapt them for any Python package manager.
1010
* 🏗️ **Dockerfile and .dockerignore**: one day your app will go to production, and we've got you covered.
1111
* 🏛️ **Gitlab CI config**.
1212
* ⚕️ **Pre-configured linter** so you can find some common problems automagically.

django_spinproject/bin/enhance-dockerfile.py

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

django_spinproject/bin/enhance-dockerignore.py

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

0 commit comments

Comments
 (0)