Commit fab231f0 authored by Dmitry Shelepnev's avatar Dmitry Shelepnev
Browse files

Updates (requirements, travis.ci) - Remove support python 3.3 and django <1.10

parent 7a57b70a
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
language: python
python:
#    - 3.3
    - 3.4
    - 3.5
    - 3.6
env:
#    - DJANGO='django>=1.8,<1.9'
#    - DJANGO='django>=1.9,<1.10'
#    - DJANGO='django>=1.10,<1.11'
    - DJANGO='django>=1.10,<1.11'
    - DJANGO='django>=1.11,<2.0'
    - DJANGO='django>=2.0'

+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ class FB2Base(BookFile):
            if len(res) == 0:
                res = tree.xpath('/fb:FictionBook/fb:body//fb:image', namespaces=self.__namespaces)
            cover_id = res[0].get('{' + Namespace.XLINK + '}href')[1:]
            print(cover_id)
            #print(cover_id)
            res = tree.xpath('/fb:FictionBook/fb:binary[@id="%s"]' % cover_id, namespaces=self.__namespaces)
            content = base64.b64decode(res[0].text)
            return content
+2 −2
Original line number Diff line number Diff line
import base64
from django.utils.deprecation import MiddlewareMixin

from django.http import HttpResponse
from django.contrib import auth
from django.utils import translation
from django.middleware.cache import FetchFromCacheMiddleware as DjangoFetchFromCacheMiddleware
from django.utils.deprecation import MiddlewareMixin

from constance import config

@@ -50,6 +49,7 @@ class BasicAuthMiddleware(object):

        return self.unauthed()


class SOPDSLocaleMiddleware(MiddlewareMixin):

    def process_request(self, request):
+0 −3
Original line number Diff line number Diff line
# -*- coding: utf-8 -*-

from django.urls import reverse
from django.test import TestCase, Client
from django.utils.translation import ugettext as _


class DownloadsTestCase(TestCase):
    fixtures = ['testdb.json']
+1 −2
Original line number Diff line number Diff line
Django==1.8 ; python_version == '3.3'
Django>=1.8 ; python_version >= '3.4'
Django>=1.10 ; python_version >= '3.4'
Pillow>=2.9.0
apscheduler>=3.3.0
django-constance[database]>=1.3
Loading