Skip to content

Commit fee3ee8

Browse files
author
Pete Wildsmith
committed
Merge pull request #10 from dabapps/1.0.0
release 1.0
2 parents d4a7d50 + 2f364d9 commit fee3ee8

File tree

8 files changed

+49
-9
lines changed

8 files changed

+49
-9
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ sudo: false
33
python:
44
- '2.7'
55
- '3.4'
6+
env:
7+
- DJANGO_VERSION=1.7
8+
- DJANGO_VERSION=1.8
69
install:
710
- pip install -r test-requirements.txt
11+
- pip install -U django==$DJANGO_VERSION
812
script: python manage.py test
913
deploy:
1014
provider: pypi

django_dbq/__init__.py

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

django_dbq/fields.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from uuidfield import UUIDField
2+
from django.db.models import SubfieldBase
3+
from django.utils import six
4+
5+
6+
class UUIDField(six.with_metaclass(SubfieldBase, UUIDField)):
7+
pass

django_dbq/migrations/0001_initial.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
import jsonfield.fields
66
import uuid
77

8+
try:
9+
from django.db.models import UUIDField
10+
except ImportError:
11+
from django_dbq.fields import UUIDField
12+
813

914
class Migration(migrations.Migration):
1015

@@ -15,7 +20,7 @@ class Migration(migrations.Migration):
1520
migrations.CreateModel(
1621
name='Job',
1722
fields=[
18-
('id', models.UUIDField(serialize=False, editable=False, default=uuid.uuid4, primary_key=True)),
23+
('id', UUIDField(serialize=False, editable=False, default=uuid.uuid4, primary_key=True)),
1924
('created', models.DateTimeField(db_index=True, auto_now_add=True)),
2025
('modified', models.DateTimeField(auto_now=True)),
2126
('name', models.CharField(max_length=100)),
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.db import models, migrations
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('django_dbq', '0001_initial'),
11+
]
12+
13+
operations = [
14+
migrations.AlterModelOptions(
15+
name='job',
16+
options={'ordering': ['created']},
17+
),
18+
]

django_dbq/models.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
import logging
88
import uuid
99

10+
try:
11+
from django.db.models import UUIDField
12+
except ImportError:
13+
from django_dbq.fields import UUIDField
14+
1015

1116
logger = logging.getLogger(__name__)
1217

@@ -56,7 +61,7 @@ class Job(models.Model):
5661

5762
STATES = Choices("NEW", "READY", "PROCESSING", "FAILED", "COMPLETE")
5863

59-
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
64+
id = UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
6065
created = models.DateTimeField(auto_now_add=True, db_index=True)
6166
modified = models.DateTimeField(auto_now=True)
6267
name = models.CharField(max_length=100)

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
django-model-utils==1.5.0
1+
django-model-utils==2.3.1
2+
django-uuidfield==0.5.0
23
jsonfield==1.0.3
34
Django>=1.8
45
simplesignals==0.3.0

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
author_email = '[email protected]'
1717
license = 'BSD'
1818
install_requires = [
19-
'django-model-utils==1.5.0',
20-
'django-uuidfield==0.4.0',
21-
'jsonfield==0.9.20',
22-
'Django>=1.6',
23-
'simplesignals==0.3.0'
19+
"django-model-utils==2.3.1",
20+
"django-uuidfield==0.5.0",
21+
"jsonfield==1.0.3",
22+
"Django>=1.7",
23+
"simplesignals==0.3.0",
2424
]
2525

2626
long_description = """Simple database-backed job queue system"""

0 commit comments

Comments
 (0)