Skip to content

Commit

Permalink
Updates to docs, remove support for 1.8 and below.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstegelman committed Jan 3, 2016
1 parent 306495a commit d72710a
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 53 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -2,6 +2,12 @@
Changelog
=========

1.1.0
-----

- Django 1.9 support
- Drop support for below 1.8

1.0.4
-----

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Expand Up @@ -4,7 +4,7 @@ License

The MIT License (MIT)

Copyright (c) 2012 - 2015 Derek Stegelman
Copyright (c) 2012 - 2016 Derek Stegelman

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -10,7 +10,7 @@ http://django-downtime.readthedocs.org
Install
-------

Django supports versions 1.4 to 1.8 on Python 2.7 and 3.4.
Django supports versions 1.8 and 1.9 on Python 2 and 3.

To install django-downtime::

Expand Down
6 changes: 3 additions & 3 deletions docs/source/conf.py
Expand Up @@ -41,16 +41,16 @@

# General information about the project.
project = u'Django Downtime'
copyright = u'2012 - 2015, Derek Stegelman'
copyright = u'2012 - 2016, Derek Stegelman'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '1.0.4'
version = '1.1.0'
# The full version, including alpha/beta/rc tags.
release = '1.0.4'
release = '1.1.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/installation.rst
Expand Up @@ -2,7 +2,7 @@
Installation
============

Django Downtime supports Django 1.4 - 1.8 and Python 2.7 and 3.4.
Django Downtime supports Django 1.8 - 1.9 and Python 2 and 3.


To install django-downtime::
Expand Down
62 changes: 20 additions & 42 deletions runtests.py
Expand Up @@ -6,48 +6,26 @@

DIRNAME = os.path.dirname(__file__)

if django.VERSION[1] < 4:
# If the version is NOT django 4 or greater
# then remove the TZ setting.

settings.configure(DEBUG=True,
DATABASES={
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
},
INSTALLED_APPS=('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.admin',
'downtime',))
else:
settings.configure(DEBUG=True,
DATABASES={
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
},
INSTALLED_APPS=('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.admin',
'downtime',),
USE_TZ=True)


try:
# Django 1.7 needs this, but other versions dont.
django.setup()
except AttributeError:
pass
try:
from django.test.simple import DjangoTestSuiteRunner
test_runner = DjangoTestSuiteRunner(verbosity=1)
except ImportError:
from django.test.runner import DiscoverRunner
test_runner = DiscoverRunner(verbosity=1)
settings.configure(DEBUG=True,
DATABASES={
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
},
INSTALLED_APPS=('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.admin',
'downtime',),
USE_TZ=True)



django.setup()

from django.test.runner import DiscoverRunner
test_runner = DiscoverRunner(verbosity=1)

failures = test_runner.run_tests(['downtime', ])
if failures:
sys.exit(failures)
sys.exit(failures)
7 changes: 2 additions & 5 deletions setup.py
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

version = '1.0.4'
version = '1.1.0'

setup(name='django-downtime',
version=version,
Expand All @@ -13,11 +13,8 @@
"Natural Language :: English",
"Operating System :: OS Independent",
"Framework :: Django",
"Framework :: Django :: 1.4",
"Framework :: Django :: 1.5",
"Framework :: Django :: 1.6",
"Framework :: Django :: 1.7",
"Framework :: Django :: 1.8",
"Framework :: Django :: 1.9",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Programming Language :: Python",
Expand Down

0 comments on commit d72710a

Please sign in to comment.