Skip to content

Commit 0d72fff

Browse files
authored
Merge pull request #69 from ambitioninc/develop
3.1.0
2 parents 8ad42ad + 3731608 commit 0d72fff

File tree

10 files changed

+41
-20
lines changed

10 files changed

+41
-20
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@ jobs:
1818
# AttributeError: module 'collections' has no attribute 'Callable'
1919
# https://github.com/nose-devs/nose/issues/1099
2020
django:
21-
- 'Django~=2.2.0'
22-
- 'Django~=3.0.0'
23-
- 'Django~=3.1.0'
2421
- 'Django~=3.2.0'
2522
- 'Django~=4.0.0'
2623
- 'Django~=4.1.0'
24+
- 'Django~=4.2.0'
2725
experimental: [false]
2826
# include:
2927
# - python: '3.9'
@@ -38,6 +36,8 @@ jobs:
3836
django: 'Django~=4.0.0'
3937
- python: '3.7'
4038
django: 'Django~=4.1.0'
39+
- python: '3.7'
40+
django: 'Django~=4.2.0'
4141
services:
4242
postgres:
4343
image: postgres:latest
@@ -53,14 +53,14 @@ jobs:
5353
--health-timeout 5s
5454
--health-retries 5
5555
steps:
56-
- uses: actions/checkout@v2
57-
- uses: actions/setup-python@v2
56+
- uses: actions/checkout@v3
57+
- uses: actions/setup-python@v3
5858
with:
5959
python-version: ${{ matrix.python }}
6060
- name: Setup
6161
run: |
6262
python --version
63-
pip install --upgrade pip wheel
63+
pip install --upgrade pip wheel setuptools
6464
pip install -r requirements/requirements.txt
6565
pip install -r requirements/requirements-testing.txt
6666
pip install "${{ matrix.django }}"
@@ -69,7 +69,7 @@ jobs:
6969
env:
7070
DB_SETTINGS: >-
7171
{
72-
"ENGINE":"django.db.backends.postgresql_psycopg2",
72+
"ENGINE":"django.db.backends.postgresql",
7373
"NAME":"db_mutex",
7474
"USER":"postgres",
7575
"PASSWORD":"postgres",

db_mutex/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
# flake8: noqa
22
from .exceptions import DBMutexError, DBMutexTimeoutError
33
from .version import __version__
4-
5-
default_app_config = 'db_mutex.apps.DBMutexConfig'

db_mutex/migrations/0001_initial.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
from __future__ import unicode_literals
3-
42
from django.db import models, migrations
53

64

db_mutex/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.0.0'
1+
__version__ = '3.1.0'

docs/release_notes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Release Notes
22
=============
33

4+
v3.1.0
5+
------
6+
* Django 4.2
7+
* Drop django 2
8+
49
v3.0.0
510
------
611
* Django 3.2. 4.0, 4.1

manage.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#!/usr/bin/env python
22
import sys
33

4+
# Show warnings about django deprecations - uncomment for version upgrade testing
5+
import warnings
6+
from django.utils.deprecation import RemovedInNextVersionWarning
7+
warnings.filterwarnings('always', category=DeprecationWarning)
8+
warnings.filterwarnings('always', category=PendingDeprecationWarning)
9+
warnings.filterwarnings('always', category=RemovedInNextVersionWarning)
10+
411
from settings import configure_settings
512

613

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
coverage
2-
#coveralls
32
django-dynamic-fixture
43
django-nose
54
freezegun
6-
mock
75
psycopg2
86
flake8

requirements/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Django>=2.2
1+
Django>=3.2

settings.py

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,41 @@ def configure_settings():
3838
TEST_RUNNER='django_nose.NoseTestSuiteRunner',
3939
SECRET_KEY='*',
4040
NOSE_ARGS=['--nocapture', '--nologcapture', '--verbosity=1'],
41-
MIDDLEWARE_CLASSES=(),
4241
DATABASES={
4342
'default': db_config,
4443
},
4544
INSTALLED_APPS=(
4645
'django.contrib.auth',
4746
'django.contrib.contenttypes',
4847
'django.contrib.sessions',
48+
'django.contrib.messages',
4949
'django.contrib.admin',
5050
'db_mutex',
5151
'db_mutex.tests',
5252
'django_nose',
5353
),
5454
DEBUG=False,
55+
DEFAULT_AUTO_FIELD='django.db.models.AutoField',
5556
CACHES={
5657
'default': {
5758
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
5859
'LOCATION': 'unique-snowflake'
5960
}
60-
}
61+
},
62+
MIDDLEWARE = (
63+
'django.contrib.auth.middleware.AuthenticationMiddleware',
64+
'django.contrib.messages.middleware.MessageMiddleware',
65+
'django.contrib.sessions.middleware.SessionMiddleware'
66+
),
67+
TEMPLATES = [{
68+
'BACKEND': 'django.template.backends.django.DjangoTemplates',
69+
'APP_DIRS': True,
70+
'OPTIONS': {
71+
'context_processors': [
72+
'django.contrib.auth.context_processors.auth',
73+
'django.contrib.messages.context_processors.messages',
74+
'django.template.context_processors.request',
75+
]
76+
}
77+
}],
6178
)

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,10 @@ def get_lines(file_path):
4545
'License :: OSI Approved :: MIT License',
4646
'Operating System :: OS Independent',
4747
'Framework :: Django',
48-
'Framework :: Django :: 2.2',
49-
'Framework :: Django :: 3.0',
50-
'Framework :: Django :: 3.1',
5148
'Framework :: Django :: 3.2',
5249
'Framework :: Django :: 4.0',
5350
'Framework :: Django :: 4.1',
51+
'Framework :: Django :: 4.2',
5452
],
5553
license='MIT',
5654
install_requires=install_requires,

0 commit comments

Comments
 (0)