This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree 10 files changed +30
-37
lines changed
10 files changed +30
-37
lines changed Original file line number Diff line number Diff line change @@ -8,18 +8,15 @@ python:
8
8
9
9
env :
10
10
matrix :
11
- - DJANGO=2.0
12
- - DJANGO=2.1
13
11
- DJANGO=2.2
12
+ - DJANGO=3.0
13
+ - DJANGO=3.1
14
14
- DJANGO=master
15
15
16
16
addons :
17
17
postgresql : ' 9.6'
18
18
19
19
matrix :
20
- exclude :
21
- - { python: "3.7", env: DJANGO=2.0 }
22
-
23
20
include :
24
21
- { python: "3.6", env: TOXENV=flake8 }
25
22
Original file line number Diff line number Diff line change 1
1
include README.md
2
2
include LICENSE
3
+ recursive-include requirements *
Original file line number Diff line number Diff line change 7
7
from django .core .serializers .json import DjangoJSONEncoder
8
8
from django .db import models
9
9
from django .db .models import Count , Q
10
- from django .utils .encoding import python_2_unicode_compatible
11
10
from python3_utils import compare_on_attr
12
11
from six .moves import reduce
13
12
@@ -27,7 +26,6 @@ def get_queryset(self):
27
26
return super (ActiveEntityKindManager , self ).get_queryset ().filter (is_active = True )
28
27
29
28
30
- @python_2_unicode_compatible
31
29
class EntityKind (BaseActivatableModel ):
32
30
"""
33
31
A kind for an Entity that is useful for filtering based on different types of entities.
@@ -242,7 +240,6 @@ def get_queryset(self):
242
240
243
241
244
242
@compare_on_attr ()
245
- @python_2_unicode_compatible
246
243
class Entity (BaseActivatableModel ):
247
244
"""
248
245
Describes an entity and its relevant metadata. Also defines if the entity is active. Filtering functions
Original file line number Diff line number Diff line change 1
1
from django .db import models
2
- from django .utils .encoding import python_2_unicode_compatible
3
2
4
3
from entity .config import EntityConfig , register_entity
5
4
from entity .models import Entity
@@ -13,7 +12,6 @@ class Meta:
13
12
objects = ManagerUtilsManager ()
14
13
15
14
16
- @python_2_unicode_compatible
17
15
class TeamGroup (BaseEntityModel ):
18
16
"""
19
17
A grouping of teams.
@@ -24,7 +22,6 @@ def __str__(self):
24
22
return self .name
25
23
26
24
27
- @python_2_unicode_compatible
28
25
class Competitor (BaseEntityModel ):
29
26
"""
30
27
An enclosing group for competitors
@@ -47,7 +44,6 @@ class Team(BaseEntityModel):
47
44
team_group = models .ForeignKey (TeamGroup , null = True , on_delete = models .CASCADE )
48
45
49
46
50
- @python_2_unicode_compatible
51
47
class Account (BaseEntityModel ):
52
48
"""
53
49
An account entity model
Original file line number Diff line number Diff line change 1
- __version__ = '4.2 .0'
1
+ __version__ = '5.0 .0'
Original file line number Diff line number Diff line change 1
1
## Release Notes
2
2
3
+ - 5.0.0:
4
+ - Django 3.0, Django 3.1
5
+ - Drop Django 2.0, 2.1 support
3
6
- 4.2.0:
4
7
- Python 3.7, Django 2.2
5
8
- 4.1.1:
Original file line number Diff line number Diff line change 1
1
coverage==4.5.1
2
2
django-nose==1.4.5
3
- django-dynamic-fixture==2.0.0
3
+ django-dynamic-fixture
4
4
mock==2.0.0
5
- psycopg2= =2.7.7
5
+ psycopg2> =2.7.7
Original file line number Diff line number Diff line change
1
+ Django >= 2.2
2
+ django-activatable-model >= 2.0.0
3
+ django-manager-utils >= 2.0.0
4
+ jsonfield >= 0.9.20
5
+ python3-utils >= 0.3
6
+ wrapt >= 1.10.5
Original file line number Diff line number Diff line change @@ -18,21 +18,13 @@ def get_version():
18
18
raise RuntimeError ('Unable to find version string in {0}.' .format (VERSION_FILE ))
19
19
20
20
21
- install_requires = [
22
- 'Django>=2.0,<3.0' ,
23
- 'django-activatable-model>=1.2.1' ,
24
- 'django-manager-utils>=1.4.0' ,
25
- 'jsonfield>=0.9.20' ,
26
- 'python3-utils>=0.3' ,
27
- 'wrapt>=1.10.5'
28
- ]
29
-
30
- tests_require = [
31
- 'django-dynamic-fixture' ,
32
- 'django-nose>=1.4' ,
33
- 'mock>=1.0.1' ,
34
- 'psycopg2' ,
35
- ]
21
+ def get_lines (file_path ):
22
+ return open (file_path , 'r' ).read ().split ('\n ' )
23
+
24
+
25
+ install_requires = get_lines ('requirements/requirements.txt' )
26
+ tests_require = get_lines ('requirements/requirements-testing.txt' )
27
+
36
28
37
29
setup (
38
30
name = 'django-entity' ,
@@ -48,6 +40,7 @@ def get_version():
48
40
'Programming Language :: Python' ,
49
41
'Programming Language :: Python :: 3.6' ,
50
42
'Programming Language :: Python :: 3.7' ,
43
+ 'Programming Language :: Python :: 3.8' ,
51
44
'Intended Audience :: Developers' ,
52
45
'License :: OSI Approved :: MIT License' ,
53
46
'Operating System :: OS Independent' ,
Original file line number Diff line number Diff line change 1
1
[tox]
2
2
envlist =
3
3
flake8
4
- py{36}-django20
5
- py{36,37}-django21
6
4
py{36,37}-django22
5
+ py{36,37}-django30
6
+ py{36,37}-django31
7
7
py{36,37}-djangomaster
8
8
9
9
[testenv]
10
10
setenv =
11
11
DB = postgres
12
12
deps =
13
- django20 : Django>=2.0,<2.1
14
- django21 : Django>=2.1,<2.2
15
- django22 : Django>=2.2,<2.3
13
+ django22 : Django>=2.2,<3.0
14
+ django30 : Django>=3.0,<3.1
15
+ django31 : Django>=3.1,<3.2
16
16
djangomaster: https://github.com/django/django/archive/master.tar.gz
17
17
-rrequirements/requirements-testing.txt
18
18
commands =
@@ -25,7 +25,7 @@ commands = flake8 entity
25
25
26
26
[travis:env]
27
27
DJANGO =
28
- 2.0: django20
29
- 2.1: django21
30
28
2.2: django22
29
+ 3.0: django30
30
+ 3.1: django31
31
31
master: djangomaster
You can’t perform that action at this time.
0 commit comments