mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
Cleanup and mptt update to support Django 1.8.
This commit is contained in:
parent
9beb2c3995
commit
457bef787a
5 changed files with 26 additions and 21 deletions
|
@ -1,10 +1,15 @@
|
|||
Changelog
|
||||
=========
|
||||
|
||||
|
||||
|
||||
2.9 (DEV)
|
||||
----------------
|
||||
|
||||
* Fully Django 1.7 support
|
||||
* Full Django 1.7 support
|
||||
* Full Django 1.8 support
|
||||
* New Django migrations, with fallback to South migrations if South is
|
||||
installed.
|
||||
* Added i18n support and several languages
|
||||
* More settings can be overrridden, like the jQuery URL, site name and wether
|
||||
you want to enable Gthub Gist.
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
# -----------------------------------------------------------------------------
|
||||
|
||||
# Project dependencies
|
||||
django==1.7.1
|
||||
django-mptt==0.6.1
|
||||
django==1.8.3
|
||||
django-mptt==0.7.4
|
||||
pygments==2.0.1
|
||||
requests==2.5.1
|
||||
|
||||
|
|
10
runtests.py
10
runtests.py
|
@ -26,8 +26,6 @@ if not settings.configured:
|
|||
)
|
||||
|
||||
def runtests(*test_args):
|
||||
from django.test.simple import DjangoTestSuiteRunner
|
||||
|
||||
# New Django 1.7 app registry
|
||||
try:
|
||||
from django import setup
|
||||
|
@ -35,7 +33,13 @@ def runtests(*test_args):
|
|||
except ImportError:
|
||||
pass
|
||||
|
||||
test_runner = DjangoTestSuiteRunner(verbosity=1)
|
||||
# New Django 1.8 test runner
|
||||
try:
|
||||
from django.test.runner import DiscoverRunner as TestRunner
|
||||
except ImportError:
|
||||
from django.test.simple import DjangoTestSuiteRunner as TestRunner
|
||||
|
||||
test_runner = TestRunner(verbosity=1)
|
||||
failures = test_runner.run_tests(['dpaste', ])
|
||||
if failures:
|
||||
sys.exit(failures)
|
||||
|
|
2
setup.py
2
setup.py
|
@ -50,7 +50,7 @@ setup(
|
|||
include_package_data=True,
|
||||
install_requires=[
|
||||
'django>=1.4',
|
||||
'django-mptt>=0.6.0',
|
||||
'django-mptt>=0.7.4',
|
||||
'pygments>=1.6',
|
||||
'requests>=2.0.0',
|
||||
],
|
||||
|
|
20
tox.ini
20
tox.ini
|
@ -2,26 +2,22 @@
|
|||
toxworkdir=/tmp/tox/dpaste
|
||||
envlist=
|
||||
py27-django-1.4,
|
||||
py27-django-1.6,
|
||||
py27-django-1.7,
|
||||
py33-django-1.7,
|
||||
py34-django-1.7,
|
||||
py27-django-latest,
|
||||
py34-django-latest
|
||||
|
||||
[testenv]
|
||||
commands=
|
||||
python runtests.py
|
||||
|
||||
[testenv:py27-django-1.4]
|
||||
deps=django==1.4.16
|
||||
|
||||
[testenv:py27-django-1.6]
|
||||
deps=django==1.6.8
|
||||
deps=django==1.4.21
|
||||
|
||||
[testenv:py27-django-1.7]
|
||||
deps=django==1.7.1
|
||||
deps=django==1.7.9
|
||||
|
||||
[testenv:py33-django-1.7]
|
||||
deps=django==1.7.1
|
||||
[testenv:py27-django-latest]
|
||||
deps=django==1.8.3
|
||||
|
||||
[testenv:py34-django-1.7]
|
||||
deps=django==1.7.1
|
||||
[testenv:py34-django-latest]
|
||||
deps=django==1.8.3
|
||||
|
|
Loading…
Reference in a new issue