Skip to content
This repository was archived by the owner on Oct 27, 2022. It is now read-only.

Commit 2b3b6e0

Browse files
committed
Merge branch 'develop'
2 parents 4cc6b33 + 0c2e003 commit 2b3b6e0

File tree

9 files changed

+71
-13
lines changed

9 files changed

+71
-13
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ env:
77
- DJANGO=1.9
88
- DJANGO=1.10
99
install:
10-
- pip install -q Django==$DJANGO --use-mirrors
11-
- pip install -q -e . --use-mirrors
10+
- pip install -q Django==$DJANGO
11+
- python setup.py -q install
1212
script:
1313
- python setup.py test

CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Change Log
2+
3+
This project uses [Semantic Versioning](http://semver.org/).
4+
5+
## [0.1.1] -- 2016-08-13
6+
7+
### Fixed
8+
- Removed migration dependencies.
9+
- Cleaned up TravisCI configuration.
10+
11+
12+
## 0.1.0 -- 2016-08-13
13+
14+
Initial release.
15+
16+
17+
[0.1.1]: https://github.com/mrogaski/django-discord-bind/compare/0.1.0...0.1.1

discord_bind/migrations/0001_initial.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Generated by Django 1.10 on 2016-08-12 04:43
2+
# Generated by Django 1.10 on 2016-08-13 12:50
33
from __future__ import unicode_literals
44

55
from django.conf import settings
@@ -11,10 +11,7 @@ class Migration(migrations.Migration):
1111

1212
initial = True
1313

14-
dependencies = [
15-
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
16-
('auth', '0008_alter_user_username_max_length'),
17-
]
14+
dependencies = []
1815

1916
operations = [
2017
migrations.CreateModel(

discord_bind/tests/test_models.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
"""
2626
from __future__ import unicode_literals
2727

28-
from unittest.mock import patch, Mock
28+
try:
29+
from unittest.mock import patch, Mock
30+
except ImportError:
31+
from mock import patch, Mock
2932

3033
from django.test import TestCase
3134
from django.contrib.auth.models import User, Group

discord_bind/views.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030

3131
from django.conf import settings
3232
from django.http import HttpResponseRedirect
33-
from django.urls import reverse
33+
try:
34+
from django.urls import reverse
35+
except ImportError:
36+
from django.core.urlresolvers import reverse
3437
from django.contrib.auth.decorators import login_required
3538
from django.utils.timezone import make_aware
3639
from django.db.models import Q

manage.py

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/usr/bin/env python
2+
"""
3+
4+
The MIT License (MIT)
5+
6+
Copyright (c) 2016 Mark Rogaski
7+
8+
Permission is hereby granted, free of charge, to any person obtaining a copy
9+
of this software and associated documentation files (the "Software"), to deal
10+
in the Software without restriction, including without limitation the rights
11+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
copies of the Software, and to permit persons to whom the Software is
13+
furnished to do so, subject to the following conditions:
14+
15+
The above copyright notice and this permission notice shall be included in all
16+
copies or substantial portions of the Software.
17+
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24+
SOFTWARE.
25+
26+
"""
27+
28+
import os
29+
import sys
30+
31+
if __name__ == "__main__":
32+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_settings")
33+
34+
from django.core.management import execute_from_command_line
35+
36+
execute_from_command_line(sys.argv)

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Django>=1.9
22
django-setuptest>=0.2.1
33
requests>=2.11.0
4-
requests-oauthlib>=0.6.2
4+
requests-oauthlib>=0.6.2

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
setup(
3838
name='django-discord-bind',
39-
version='0.1.0',
39+
version='0.1.1',
4040
packages=find_packages(),
4141
include_package_data=True,
4242
license='MIT License', # example license
@@ -68,6 +68,7 @@
6868
],
6969
tests_require=[
7070
"django-setuptest >= 0.2.1",
71+
"mock"
7172
],
7273
test_suite='setuptest.setuptest.SetupTestSuite',
7374
)

test_settings.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,18 @@
2626

2727
DATABASES = {
2828
'default': {
29+
'NAME': 'test.db',
2930
'ENGINE': 'django.db.backends.sqlite3',
3031
}
3132
}
3233

3334
INSTALLED_APPS = (
34-
'django.contrib.admin',
3535
'django.contrib.auth',
3636
'django.contrib.contenttypes',
3737
'django.contrib.sessions',
3838
'django.contrib.messages',
39-
'django.contrib.staticfiles',
4039
'discord_bind',
4140
)
4241

42+
SECRET_KEY = 'vn5v8g+q3q*ll)a3kh10wlj#(tc=738cklg9(z3***kw%qhnv-'
43+
ROOT_URLCONF='discord_bind.urls'

0 commit comments

Comments
 (0)