Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GitRon committed Dec 5, 2023
1 parent 8cb1492 commit 9cf3432
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 13 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:

- name: Run pre-commit hooks
run: pre-commit run --all-files --hook-stage push


validate_migrations:
name: Validate migrations
Expand All @@ -37,15 +36,14 @@ jobs:

- name: Validate migration integrity
run: python manage.py makemigrations --check --dry-run


tests:
name: Python ${{ matrix.python-version }}, django ${{ matrix.django-version }}
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', ]
django-version: ['32', '41', '42', ]
django-version: ['32', '41', '42', '50', ]

exclude:
- python-version: '3.12'
Expand All @@ -54,6 +52,10 @@ jobs:
django-version: 32
- python-version: '3.10'
django-version: 32
- python-version: '3.8'
django-version: 50
- python-version: '3.9'
django-version: 50

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -95,4 +97,4 @@ jobs:
- name: Combine coverage and fail if it's <100%
run: |
python -m coverage html --skip-covered --skip-empty
python -m coverage report --fail-under=100
python -m coverage report --fail-under=100.0
2 changes: 1 addition & 1 deletion .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.3
rev: v0.1.6
hooks:
# Run the Ruff linter.
- id: ruff
Expand Down
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

* *1.1.0* (2023-12-05)
* Added Django 5.0 support

* *1.0.6* (2023-11-06)
* Added "Alternatives" section to docs

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![PyPI release](https://img.shields.io/pypi/v/django-migration-zero.svg)](https://pypi.org/project/django-migration-zero/)
[![Downloads](https://static.pepy.tech/badge/django-migration-zero)](https://pepy.tech/project/django-migration-zero)
[![Coverage](https://img.shields.io/badge/Coverage-100%25-success)](https://github.com/ambient-innovation/django-migration-zero/actions?workflow=CI)
[![Coverage](https://img.shields.io/badge/Coverage-100.0%25-success)](https://github.com/ambient-innovation/django-migration-zero/actions?workflow=CI)
[![Linting](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Coding Style](https://img.shields.io/badge/code%20style-Ruff-000000.svg)](https://github.com/astral-sh/ruff)
[![Documentation Status](https://readthedocs.org/projects/django-migration-zero/badge/?version=latest)](https://django-migration-zero.readthedocs.io/en/latest/?badge=latest)
Expand Down Expand Up @@ -89,7 +89,7 @@ logs in your console.
### Setup package for development

- Create a Python virtualenv and activate it
- Install "pip-tools" with `pip install pip-tools`
- Install "pip-tools" with `pip install -U pip-tools`
- Compile the requirements with `pip-compile --extra dev, -o requirements.txt pyproject.toml --resolver=backtracking`
- Sync the dependencies with your virtualenv with `pip-sync`

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.0.6"
__version__ = "1.1.0"
15 changes: 10 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ classifiers = [
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
Expand All @@ -37,17 +38,18 @@ dependencies = [

[project.optional-dependencies]
dev = [
'freezegun~=1.2',
'pytest-django~=4.5',
'pytest-mock~=3.10',
'typer~=0.9',
'freezegun~=1.3',
'pytest-django~=4.7',
'pytest-mock~=3.12',
'coverage~=7.3',
'pre-commit~=3.5',
'ruff~=0.1',
'ruff~=0.1.7',
'sphinx==4.2.0',
'sphinx-rtd-theme==1.0.0',
'm2r2==0.3.1',
'mistune<2.0.0',
'ambient-package-update~=23.10.7',
'ambient-package-update~=23.12.3',
'unittest-parametrize~=1.3',
]

Expand All @@ -72,6 +74,7 @@ select = [
"A", # flake8-builtins
"DTZ", # flake8-datetimez
"DJ", # flake8-django
"TD", # flake8-to-do
"RUF100", # Removes unnecessary "#noqa" comments
"YTT", # Avoid non-future-prove usages of "sys"
# "FBT", # Protects you from the "boolean trap bug"
Expand All @@ -97,6 +100,7 @@ fixable = [
"A", # flake8-builtins
"DTZ", # flake8-datetimez
"DJ", # flake8-django
"TD", # flake8-to-do
"RUF100", # Removes unnecessary "#noqa" comments
"YTT", # Avoid non-future-prove usages of "sys"
# "FBT", # Protects you from the "boolean trap bug"
Expand Down Expand Up @@ -168,6 +172,7 @@ deps =
django32: Django==3.2.*
django41: Django==4.1.*
django42: Django==4.2.*
django50: Django==5.0.*
extras = dev,
commands =
coverage run -m pytest --ds settings tests
Expand Down

0 comments on commit 9cf3432

Please sign in to comment.