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

small modernizing for Django 3.0 #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions disqus/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json

from django.utils.six.moves.urllib.parse import urlencode
from django.utils.six.moves.urllib.request import urlopen
from six.moves.urllib.parse import urlencode
from six.moves.urllib.request import urlopen
from django.core.management.base import CommandError


Expand Down
6 changes: 3 additions & 3 deletions disqus/api.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import json

from django.utils.six.moves.urllib.parse import urlencode
from django.utils.six.moves.urllib.error import URLError
from django.utils.six.moves.urllib.request import (
from six.moves.urllib.parse import urlencode
from six.moves.urllib.error import URLError
from six.moves.urllib.request import (
ProxyHandler,
Request,
urlopen,
Expand Down
4 changes: 2 additions & 2 deletions disqus/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
import mock

from disqus.api import DisqusClient, DisqusException
from django.utils.six.moves.urllib.error import URLError
from django.utils.six.moves.urllib.parse import parse_qs, urlparse
from six.moves.urllib.error import URLError
from six.moves.urllib.parse import parse_qs, urlparse
from django.template import Context, Template
from disqus.templatetags.disqus_tags import (
set_disqus_developer,
Expand Down
4 changes: 2 additions & 2 deletions runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
apps.populate(settings.INSTALLED_APPS)


from django.test.simple import DjangoTestSuiteRunner
test_runner = DjangoTestSuiteRunner(verbosity=1, interactive=True)
from django.test.runner import DiscoverRunner
test_runner = DiscoverRunner(verbosity=1, interactive=True)


def runtests(*test_args):
Expand Down
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='django-disqus',
version='0.5',
version='0.6',
description='Export comments and integrate DISQUS into your Django website',
author='Arthur Koziel',
author_email='[email protected]',
Expand All @@ -22,12 +22,14 @@
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.6',
],
include_package_data=True,
packages=find_packages(),
zip_safe=False,
install_requires=[
'Django>=1.4',
'mock>=1.0.1',
'Django>=3.0.3',
'mock>=4.0.1',
'six>=1.14.0'
],
)