Skip to content

Commit

Permalink
Merge pull request #83 from antonioIrizar/dev
Browse files Browse the repository at this point in the history
Release 1.4.0
  • Loading branch information
antonioIrizar authored Dec 19, 2022
2 parents a78d5c7 + 567a3bd commit 632c467
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 25 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ jobs:
# Maps tcp port 5432 on service container to the host
- 5432:5432
strategy:
max-parallel: 4
max-parallel: 8
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
postgres-version: [10, 11, 12]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
postgres-version: [11, 12, 13, 14]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} ${{ matrix.postgres-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions flake8
pip install tox tox-gh-actions flake8==4.0.1
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8.2-slim
FROM python:3.9-slim

ENV HOMEDIR=/app/ \
TERM=vt100 \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on environments with zero downtime.
In some situations Django Migration system generate migrations to need do a downtime because they are blocking operation
or you write custom migration than can block you database.

Actually this extension only works for backends of PostgresSQL and Postgis.
Actually this extension only works for backends of PostgresSQL and Postgis, versions support 11, 12, 13 and 14.

**Advise**: this extension notify you for common blocking operations on database. Anyway you should review your migrations and understand their.

Expand Down
14 changes: 7 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
version: '3.7'

services:
postgres10:
image: postgres:10-alpine
postgres12:
image: postgres:12-alpine
ports:
- 5432:5432
- 5452:5432
volumes:
- postgres10:/var/lib/postgresql/data
- postgres12:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: root

django-check-migration-wtf-tests:
build: .
environment:
DB_HOST: postgres10
DB_HOST: postgres12
DB_USER: postgres
DB_PASSWORD: root
depends_on:
- postgres10
- postgres12
volumes:
- ".:/app"

volumes:
postgres10:
postgres12:
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Django>=2.2, <3.3
psycopg2-binary>=2.8, <2.9
Django>=2.2, <4.1
psycopg2-binary>=2.9, <2.10
PyGithub>=1.50, <2.0
pytest>=5.4, <5.5
pytest-django>=3.9, <3.10
tox>=3.15, <3.16
pytest>=7.2, <8
pytest-django>=4.5, <5
tox>=4, <5
11 changes: 7 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='django-check-migration-wtf',
version='1.3.1',
version='1.4.0',
packages=find_packages(),
description='A line of description',
long_description=README,
Expand All @@ -21,20 +21,23 @@
'Operating System :: OS Independent',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Framework :: Django',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Framework :: Django :: 3.1',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.1',
],
keywords='django postgres postgresql migrations',
python_requires='>=3.6',
python_requires='>=3.7',
install_requires=[
'Django>=2.2,<3.3',
'Django>=2.2,<4.2',
'PyGithub>=1.50,<2',
]
)
7 changes: 5 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
# and then run "tox" from this directory.

[tox]
envlist = py36-django{22,30,31,32}, py37-django{22,30,31,32}, py38-django{22,30,31,32}, py39-django{22,30,31,32}
envlist = py37-django{22,30,31,32}, py38-django{22,30,31,32,40,41}, py39-django{22,30,31,32,40,41}, py310-django{32,40,41}, py311-django{41}

[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311

[testenv]
deps =
Expand All @@ -25,6 +26,8 @@ deps =
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2

commands =
pytest
Expand Down

0 comments on commit 632c467

Please sign in to comment.