-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
545 additions
and
3,278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,9 @@ pip-delete-this-directory.txt | |
# Pycharm project files | ||
.idea/ | ||
|
||
# PyTest cache | ||
.cache/ | ||
|
||
# Tox | ||
.tox/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,38 @@ | ||
--- | ||
language: python | ||
python: 3.5 | ||
sudo: false | ||
install: pip install tox | ||
script: tox | ||
cache: pip | ||
matrix: | ||
exclude: | ||
- python: "3.3" | ||
env: DJANGO=">=1.9,<1.10" DRF=">=3.3,<3.4" | ||
- python: "3.3" | ||
env: DJANGO=">=1.9,<1.10" DRF=">=3.4,<3.5" | ||
- python: "3.3" | ||
env: DJANGO=">=1.10,<1.11" DRF=">=3.4,<3.5" | ||
python: | ||
- "2.7" | ||
- "3.3" | ||
- "3.4" | ||
- "3.5" | ||
env: | ||
- TOXENV=py27-django17-drf31 | ||
- TOXENV=py27-django17-drf32 | ||
- TOXENV=py33-django17-drf31 | ||
- TOXENV=py33-django17-drf32 | ||
- TOXENV=py34-django17-drf31 | ||
- TOXENV=py34-django17-drf32 | ||
- TOXENV=py27-django18-drf31 | ||
- TOXENV=py27-django18-drf32 | ||
- TOXENV=py27-django18-drf33 | ||
- TOXENV=py33-django18-drf31 | ||
- TOXENV=py33-django18-drf32 | ||
- TOXENV=py33-django18-drf33 | ||
- TOXENV=py34-django18-drf31 | ||
- TOXENV=py34-django18-drf32 | ||
- TOXENV=py34-django18-drf33 | ||
- TOXENV=py27-django19-drf31 | ||
- TOXENV=py27-django19-drf32 | ||
- TOXENV=py27-django19-drf33 | ||
- TOXENV=py34-django19-drf31 | ||
- TOXENV=py34-django19-drf32 | ||
- TOXENV=py34-django19-drf33 | ||
- TOXENV=py35-django19-drf31 | ||
- TOXENV=py35-django19-drf32 | ||
- TOXENV=py35-django19-drf33 | ||
- DJANGO=">=1.8,<1.9" DRF=">=3.1,<3.2" | ||
- DJANGO=">=1.8,<1.9" DRF=">=3.2,<3.3" | ||
- DJANGO=">=1.8,<1.9" DRF=">=3.3,<3.4" | ||
- DJANGO=">=1.8,<1.9" DRF=">=3.4,<3.5" | ||
|
||
- DJANGO=">=1.9,<1.10" DRF=">=3.3,<3.4" | ||
- DJANGO=">=1.9,<1.10" DRF=">=3.4,<3.5" | ||
|
||
- DJANGO=">=1.10,<1.11" DRF=">=3.4,<3.5" | ||
before_install: | ||
# Force an upgrade of py to avoid VersionConflict | ||
- pip install --upgrade py | ||
- pip install codecov | ||
install: | ||
- pip install Django${DJANGO} djangorestframework${DRF} | ||
- python setup.py install | ||
script: | ||
- coverage run setup.py -v test | ||
after_success: | ||
- codecov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.5 on 2016-05-02 08:26 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Author', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('created_at', models.DateTimeField(auto_now_add=True)), | ||
('modified_at', models.DateTimeField(auto_now=True)), | ||
('name', models.CharField(max_length=50)), | ||
('email', models.EmailField(max_length=254)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='AuthorBio', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('created_at', models.DateTimeField(auto_now_add=True)), | ||
('modified_at', models.DateTimeField(auto_now=True)), | ||
('body', models.TextField()), | ||
('author', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='bio', to='example.Author')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Blog', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('created_at', models.DateTimeField(auto_now_add=True)), | ||
('modified_at', models.DateTimeField(auto_now=True)), | ||
('name', models.CharField(max_length=100)), | ||
('tagline', models.TextField()), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Comment', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('created_at', models.DateTimeField(auto_now_add=True)), | ||
('modified_at', models.DateTimeField(auto_now=True)), | ||
('body', models.TextField()), | ||
('author', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='example.Author')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Entry', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('created_at', models.DateTimeField(auto_now_add=True)), | ||
('modified_at', models.DateTimeField(auto_now=True)), | ||
('headline', models.CharField(max_length=255)), | ||
('body_text', models.TextField(null=True)), | ||
('pub_date', models.DateField(null=True)), | ||
('mod_date', models.DateField(null=True)), | ||
('n_comments', models.IntegerField(default=0)), | ||
('n_pingbacks', models.IntegerField(default=0)), | ||
('rating', models.IntegerField(default=0)), | ||
('authors', models.ManyToManyField(to='example.Author')), | ||
('blog', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='example.Blog')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.AddField( | ||
model_name='comment', | ||
name='entry', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='example.Entry'), | ||
), | ||
] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.