Skip to content
This repository has been archived by the owner on Sep 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #267 from Weirdo914/issue/246
Browse files Browse the repository at this point in the history
[requirements] Update dependencies & python version used. #246
  • Loading branch information
nemesifier committed Jan 15, 2020
2 parents 79f96a1 + 83432a3 commit c869612
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 16 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ language: python
cache: pip

python:
- "3.5"
- "3.6"
- "3.7"

services:
- mysql

addons:
postgresql: "9.4"
postgresql: "9.5"

branches:
only:
Expand All @@ -22,8 +22,12 @@ env:
- DJANGO="django>=2.2,<2.3" DATABASE_URL='postgres://postgres@127.0.0.1/freeradius_test'
- DJANGO="django>=2.1,<2.2" DATABASE_URL='mysql://root@127.0.0.1/freeradius_test'
- DJANGO="django>=2.1,<2.2" DATABASE_URL='postgres://postgres@127.0.0.1/freeradius_test'
- DJANGO="django>=3.0,<3.1" DATABASE_URL='mysql://root@127.0.0.1/freeradius_test'
- DJANGO="django>=3.0,<3.1" DATABASE_URL='postgres://postgres@127.0.0.1/freeradius_test'
- SAMPLE_APP=1 DJANGO="django>=2.1,<2.2" DATABASE_URL='mysql://root@127.0.0.1/freeradius_test'
- SAMPLE_APP=1 DJANGO="django>=3.0,<3.1" DATABASE_URL='mysql://root@127.0.0.1/freeradius_test'
- DJANGO="django>=2.0,<2.1" DATABASE_URL='sqlite:///django-freeradius.db'
- DJANGO="django>=3.0,<3.1" DATABASE_URL='sqlite:///django-freeradius.db'

before_install:
- pip install -U pip wheel
Expand All @@ -42,7 +46,7 @@ before_script:
openwisp-utils-qa-checks --migration-path "./django_freeradius/migrations ./tests/sample_radius/migrations"
--skip-checkmakemigrations
- |
if [[ $TRAVIS_PYTHON_VERSION == 3.5 && $SAMPLE_APP != "1" ]]; then
if [[ $SAMPLE_APP != "1" ]]; then
openwisp-utils-qa-checks \
--skip-isort \
--skip-flake8 \
Expand Down
2 changes: 1 addition & 1 deletion django_freeradius/api/urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django.conf.urls import url

from . import views
from .. import settings as app_settings
from . import views

urlpatterns = [
url(r'^authorize/$', views.authorize, name='authorize'),
Expand Down
2 changes: 1 addition & 1 deletion django_freeradius/base/admin.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import swapper
from django.contrib import messages
from django.contrib.admin import ModelAdmin, StackedInline
from django.contrib.admin.templatetags.admin_static import static
from django.contrib.admin.utils import model_ngettext
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.core.exceptions import PermissionDenied
from django.templatetags.static import static
from django.utils.translation import ugettext_lazy as _
from openwisp_utils.admin import ReadOnlyAdmin, TimeReadonlyAdminMixin

Expand Down
2 changes: 1 addition & 1 deletion django_freeradius/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from django.contrib.auth import get_user_model
from django.test import TestCase

from . import CreateRadiusObjectsMixin, PostParamsMixin
from .. import settings as app_settings
from ..models import RadiusUserGroup
from . import CreateRadiusObjectsMixin, PostParamsMixin
from .base.test_api import (
BaseTestApi, BaseTestApiReject, BaseTestAutoGroupname, BaseTestAutoGroupnameDisabled,
)
Expand Down
2 changes: 1 addition & 1 deletion django_freeradius/tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

from django.test import TestCase

from . import CallCommandMixin, CreateRadiusObjectsMixin, FileMixin
from ..models import RadiusAccounting, RadiusBatch, RadiusPostAuth
from . import CallCommandMixin, CreateRadiusObjectsMixin, FileMixin
from .base.test_commands import BaseTestCommands


Expand Down
4 changes: 2 additions & 2 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ sphinx_rtd_theme
freezegun
django-extensions
django-rest-auth>=0.9.3,<0.12.0
django-allauth>=0.39.0,<0.39.1
openwisp-utils[qa]>=0.3.2
django-allauth>=0.41.0,<0.42.0
openwisp-utils[qa]>=0.4.0
9 changes: 4 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
django>=2.0,<2.3
django>=2.0,<3.1
swapper>=1.1.0,<1.2.0
# minimum version will have to be 0.3.0
openwisp-utils>=0.3.2,<0.4.0
openwisp-utils>=0.4.0,<0.5.0
djangorestframework>=3.8.2,<3.12.0
passlib>=1.7.1,<1.8.0
django-filter>=2.1.0,<2.2.0
django-filter>=2.1.0,<2.3.0
djangorestframework-link-header-pagination>=0.1.1,<0.2.0
weasyprint>=43,<51
weasyprint>=43,<52
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def get_install_requires():
'Operating System :: OS Independent',
'Framework :: Django',
'Topic :: System :: Networking',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3',
]
)

0 comments on commit c869612

Please sign in to comment.