Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Django 1.11 #358

Merged
merged 50 commits into from
Jun 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
2167424
Skip failing tests.
mik3y Jun 24, 2017
68cee67
Bump django-nose.
mik3y Jun 24, 2017
4f5f927
Update to Django 1.8.
mik3y Jun 24, 2017
8092405
Django 1.8 compat: update fixtures.
mik3y Jun 24, 2017
919e36a
Django 1.8 compat: User model updates.
mik3y Jun 24, 2017
9008615
Django 1.8 compat: `last_login` can be null.
mik3y Jun 24, 2017
541ea3e
Django 1.8 compat: `fields` or `exclude` is required.
mik3y Jun 24, 2017
4b4a339
Django 1.8 compat: Delete obsolete middleware.
mik3y Jun 24, 2017
9634b42
Django 1.8 compat: bootstrap-pagination.
mik3y Jun 24, 2017
8703a79
Update redis, django-redis.
mik3y Jun 24, 2017
be7ebd9
Merge test_requirements into requirements, for now.
mik3y Jun 24, 2017
034b26f
setup.py: remove version pinning; sort deps.
mik3y Jun 24, 2017
7117d07
Update changelog.
mik3y Jun 24, 2017
430dd1e
Update travis script.
mik3y Jun 24, 2017
7e4a6df
Update gitignore.
mik3y Jun 24, 2017
fbfe703
Django 1.8 compat: Update django-crispy-forms.
mik3y Jun 24, 2017
9566e48
Update to Django 1.9.
mik3y Jun 24, 2017
5eb1d58
Django 1.9 compat: remove old logging handler.
mik3y Jun 24, 2017
1e90cb0
Django 1.9 compat: importlib.
mik3y Jun 24, 2017
993efc8
Django 1.9 compat: update `django-imagekit`.
mik3y Jun 24, 2017
8484ab6
Django 1.9 compat: `import_by_path -> import_string`
mik3y Jun 24, 2017
411c36b
Django 1.9 compat: `django-jsonfield`.
mik3y Jun 24, 2017
45c2d38
Django 1.9 compat: `get_models`.
mik3y Jun 24, 2017
5d62485
Django 1.9 compat: handle extra kwarg.
mik3y Jun 24, 2017
241eff6
Django 1.9 compat: `request.REQUEST` deprecated.
mik3y Jun 24, 2017
ac5a01c
Django 1.9 compat: new url patterns.
mik3y Jun 24, 2017
20f66f7
Require `django-nose`; add `rednose`.
mik3y Jun 24, 2017
ca91135
Django 1.9 compat: ignore url group for optional path component.
mik3y Jun 24, 2017
bac30a7
Django 1.9 compat: ditch `django-socialregistration`.
mik3y Jun 24, 2017
c1f77d5
Temporarily disable Twitter, Foursquare, Untappd plugins.
mik3y Jun 24, 2017
cc6f62e
Django 1.9 compat: template settings.
mik3y Jun 24, 2017
21577cc
Django 1.9 compat: form errors.
mik3y Jun 24, 2017
c241b27
Update changelog.
mik3y Jun 24, 2017
661ec08
Update to Django 1.10
mik3y Jun 24, 2017
653b4d4
Django 1.10 compat: update `django-registration`
mik3y Jun 24, 2017
eb11b5b
Django 1.10 compat: `render_to_response -> render`
mik3y Jun 24, 2017
300dd55
Django 1.10 compat: context processor settings.
mik3y Jun 24, 2017
4151f95
Django 1.10 compat: `django-bootstrap-pagination`
mik3y Jun 24, 2017
02d6987
Django 1.10 compat: fix static/media serving.
mik3y Jun 24, 2017
64cdecf
Update changelog.
mik3y Jun 24, 2017
c624247
Django 1.10 compat: don't load contenttypes in fixtures.
mik3y Jun 25, 2017
ae59036
Update to Django 1.11
mik3y Jun 25, 2017
f8fe6f4
Django 1.11 compat: context must be a dict.
mik3y Jun 25, 2017
a435479
Upgrade old dependencies.
mik3y Jun 25, 2017
695de12
Update changelog.
mik3y Jun 25, 2017
f14535c
Re-enable tests.
mik3y Jun 25, 2017
013367f
Lint fixes from autopep8.
mik3y Jun 25, 2017
7b30433
Manual lint fixes.
mik3y Jun 25, 2017
e7742a9
Update max line length.
mik3y Jun 25, 2017
cecea0a
Make flake8 config available to travis.
mik3y Jun 25, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*.egg
*.egg-info
.coverage
.noseids

### docs
docs/build
Expand Down
17 changes: 7 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
language: python
python:
- "2.7"
sudo: false

install:
- pip install -r requirements.txt
- pip install -r test_requirements.txt
- pip install coverage coveralls
cache: pip

services:
- redis-server
Expand All @@ -17,14 +15,13 @@ before_script:
- mkdir -p ~/kegbot-data/static
- mkdir -p ~/.kegbot/
- cp deploy/travis/local_settings.py ~/.kegbot/
- pip freeze
- flake8 --version

script:
- kegbot test --traverse-namespace --first-package-wins --with-coverage --cover-package=pykeg
install:
- pip install -r requirements.txt
- pip install .

after_success:
- coveralls
script:
- kegbot test --traverse-namespace --first-package-wins

deploy:
provider: pypi
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include README.md
include LICENSE.txt
include pykeg/setup.cfg
recursive-include pykeg *.html *.css *.js *.png
recursive-include deploy *
45 changes: 23 additions & 22 deletions bin/kegbot
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,30 @@ from pykeg.core.util import get_version
from pykeg.util import bugreport

if sys.version_info < (2, 7):
sys.stderr.write('Error: Kegbot needs Python 2.7 or newer.\n\n'
'Current version: %s\n' % sys.version)
sys.exit(1)
sys.stderr.write('Error: Kegbot needs Python 2.7 or newer.\n\n'
'Current version: %s\n' % sys.version)
sys.exit(1)

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pykeg.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pykeg.settings")

# Override some special commands.
if len(sys.argv) > 1:
cmd = sys.argv[1]
if cmd == 'version':
# Hack: Django's `version` command cannot be overridden the usual way.
print 'kegbot-server {}'.format(get_version())
sys.exit(0)
elif cmd == 'run_gunicorn':
# run_gunicorn was deprecated upstream.
cmd = 'gunicorn pykeg.web.wsgi:application {}'.format(' '.join(sys.argv[2:]))
sys.stderr.write('Warning: run_gunicorn is deprecated, call `{}` instead.\n'.format(cmd))
ret = subprocess.call(cmd, shell=True)
sys.exit(ret)
elif cmd == 'bugreport':
ret = bugreport.take_bugreport()
sys.exit(ret)
# Override some special commands.
if len(sys.argv) > 1:
cmd = sys.argv[1]
if cmd == 'version':
# Hack: Django's `version` command cannot be overridden the usual way.
print 'kegbot-server {}'.format(get_version())
sys.exit(0)
elif cmd == 'run_gunicorn':
# run_gunicorn was deprecated upstream.
cmd = 'gunicorn pykeg.web.wsgi:application {}'.format(' '.join(sys.argv[2:]))
sys.stderr.write(
'Warning: run_gunicorn is deprecated, call `{}` instead.\n'.format(cmd))
ret = subprocess.call(cmd, shell=True)
sys.exit(ret)
elif cmd == 'bugreport':
ret = bugreport.take_bugreport()
sys.exit(ret)

django.setup()
management.execute_from_command_line()
django.setup()
management.execute_from_command_line()
Loading