Skip to content

Commit

Permalink
v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GitRon committed Apr 11, 2024
1 parent 9931254 commit 6775d21
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 27 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12"

Expand All @@ -27,7 +27,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'

Expand All @@ -43,7 +43,7 @@ jobs:
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', ]
django-version: ['32', '41', '42', '50', ]
django-version: ['42', '50', ]

exclude:
- python-version: '3.12'
Expand All @@ -60,7 +60,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
Expand All @@ -82,7 +82,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'

Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.3.5
hooks:
# Run the Ruff linter.
- id: ruff
Expand All @@ -12,15 +12,15 @@ repos:
- id: ruff-format

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.15.2
hooks:
- id: pyupgrade
args: [ --py38-plus ]
stages: [ push ]

- repo: https://github.com/adamchainz/django-upgrade
rev: 1.15.0
rev: 1.16.0
hooks:
- id: django-upgrade
args: [--target-version, "3.2"]
args: [--target-version, "4.2"]
stages: [ push ]
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

* *2.0.0* (2024-04-11)
* Dropped Django 3.2 & 4.1 support (via `ambient-package-update`)
* Internal updates via `ambient-package-update`

* *1.1.2* (2023-12-15)
* Improved documentation

Expand Down
2 changes: 1 addition & 1 deletion django_migration_zero/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
Holistic implementation of "migration zero" pattern for Django covering local changes and in-production database adjustments.
"""

__version__ = "1.1.2"
__version__ = "2.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class Command(BaseCommand):
help = "Prepares the database after resetting all migrations." # noqa: A003
help = "Prepares the database after resetting all migrations."

def handle(self, *args, **options):
service = DatabasePreparationService()
Expand Down
2 changes: 1 addition & 1 deletion django_migration_zero/services/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


class ResetMigrationFiles:
help = "Remove all local migrations files and create new initial ones." # noqa: A003
help = "Remove all local migrations files and create new initial ones."

dry_run: bool
exclude_initials: bool
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
# -- Project information -----------------------------------------------------

project = "django-migration-zero"
copyright = "2023, Ambient Innovation: GmbH" # noqa: A001
copyright = "2024, Ambient Innovation: GmbH" # noqa: A001
author = "Ambient Innovation: GmbH <[email protected]>"
version = __version__
release = __version__
Expand Down
1 change: 1 addition & 0 deletions manage.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""

import os
import sys

Expand Down
28 changes: 16 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Intended Audience :: Developers",
Expand Down Expand Up @@ -45,11 +43,12 @@ dev = [
'coverage~=7.3',
'pre-commit~=3.5',
'ruff~=0.1.7',
'sphinx==4.2.0',
'sphinx-rtd-theme==1.0.0',
'm2r2==0.3.1',
'sphinx~=7.1',
'sphinx-rtd-theme~=2.0',
'm2r2==0.3.3.post2',
'mistune<2.0.0',
'ambient-package-update~=23.12.3',
'flit~=3.9',
'ambient-package-update~=24.4.4',
'unittest-parametrize~=1.3',
]

Expand All @@ -64,7 +63,7 @@ name = "django_migration_zero"
'Changelog' = 'https://django-migration-zero.readthedocs.io/en/latest/features/changelog.html'

[tool.ruff]
select = [
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
Expand All @@ -86,11 +85,11 @@ select = [
"PGH", # No all-purpose "# noqa" and eval validation
"PL", # PyLint
]
ignore = [
lint.ignore = [
]

# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = [
lint.fixable = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
Expand All @@ -112,7 +111,7 @@ fixable = [
"PGH", # No all-purpose "# noqa" and eval validation
"PL", # PyLint
]
unfixable = []
lint.unfixable = []

exclude = [
".bzr",
Expand Down Expand Up @@ -169,8 +168,6 @@ isolated_build = True
[testenv]
# Django deprecation overview: https://www.djangoproject.com/download/
deps =
django32: Django==3.2.*
django41: Django==4.1.*
django42: Django==4.2.*
django50: Django==5.0.*
extras = dev,
Expand All @@ -185,3 +182,10 @@ python =
3.11: py311
3.12: py312
"""

[tool.pytest.ini_options]
python_files = [
"tests.py",
"test_*.py",
"*_tests.py",
]
2 changes: 0 additions & 2 deletions pytest.init

This file was deleted.

0 comments on commit 6775d21

Please sign in to comment.