Browse Source

Attempt to add back Python 3.5 support.

Jelmer Vernooij 4 years ago
parent
commit
5b0b0823f7
4 changed files with 12 additions and 3 deletions
  1. 1 0
      .travis.yml
  2. 8 0
      appveyor.yml
  3. 2 2
      dulwich/objects.py
  4. 1 1
      setup.py

+ 1 - 0
.travis.yml

@@ -4,6 +4,7 @@ cache: pip
 
 
 python:
+  - 3.5
   - 3.6
   - 3.7
   - 3.8

+ 8 - 0
appveyor.yml

@@ -7,6 +7,14 @@ environment:
 
   matrix:
 
+    - PYTHON: "C:\\Python35"
+      PYTHON_VERSION: "3.5.x"
+      PYTHON_ARCH: "32"
+
+    - PYTHON: "C:\\Python35-x64"
+      PYTHON_VERSION: "3.5.x"
+      PYTHON_ARCH: "64"
+
     - PYTHON: "C:\\Python36"
       PYTHON_VERSION: "3.6.x"
       PYTHON_ARCH: "32"

+ 2 - 2
dulwich/objects.py

@@ -258,8 +258,8 @@ class ShaFile(object):
 
     __slots__ = ('_chunked_text', '_sha', '_needs_serialization')
 
-    type_name: bytes
-    type_num: int
+    type_name = None  # type: bytes
+    type_num = None  # type: int
 
     @staticmethod
     def _parse_legacy_object_header(magic, f):

+ 1 - 1
setup.py

@@ -103,7 +103,7 @@ setup(name='dulwich',
       classifiers=[
           'Development Status :: 4 - Beta',
           'License :: OSI Approved :: Apache Software License',
-          'Programming Language :: Python :: 3.4',
+          'Programming Language :: Python :: 3.5',
           'Programming Language :: Python :: 3.6',
           'Programming Language :: Python :: 3.7',
           'Programming Language :: Python :: 3.8',