ソースを参照

Install mypy.

Jelmer Vernooij 4 年 前
コミット
a3d7dc4b26
4 ファイル変更16 行追加13 行削除
  1. 4 1
      .github/workflows/pythonpackage.yml
  2. 2 3
      .travis.yml
  3. 8 8
      appveyor.yml
  4. 2 1
      setup.py

+ 4 - 1
.github/workflows/pythonpackage.yml

@@ -21,10 +21,13 @@ jobs:
     - name: Install dependencies
       run: |
         python -m pip install --upgrade pip
-        pip install -U pip coverage codecov flake8 fastimport
+        pip install -U pip coverage codecov flake8 fastimport mypy
     - name: Style checks
       run: |
         python -m flake8
+    - name: Typing checks
+      run: |
+        python -m mypy dulwich
     - name: Build
       run: |
         python setup.py build_ext -i

+ 2 - 3
.travis.yml

@@ -4,11 +4,10 @@ cache: pip
 
 
 python:
-  - 3.5
   - 3.6
   - 3.7
   - 3.8
-  - pypy3.5
+  - pypy3.6
 
 env:
   - PYTHONHASHSEED=random
@@ -35,7 +34,7 @@ matrix:
       env: PURE=true
 
 install:
-  - travis_retry pip install -U pip coverage codecov flake8 $TEST_REQUIRE
+  - travis_retry pip install -U pip coverage codecov flake8 mypy $TEST_REQUIRE
 
 script:
   - if [ $PURE = false ]; then python setup.py build_ext -i; fi

+ 8 - 8
appveyor.yml

@@ -7,14 +7,6 @@ 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"
@@ -23,6 +15,14 @@ environment:
       PYTHON_VERSION: "3.6.x"
       PYTHON_ARCH: "64"
 
+    - PYTHON: "C:\\Python37"
+      PYTHON_VERSION: "3.7.x"
+      PYTHON_ARCH: "32"
+
+    - PYTHON: "C:\\Python37-x64"
+      PYTHON_VERSION: "3.7.x"
+      PYTHON_ARCH: "64"
+
 install:
   # If there is a newer build queued for the same PR, cancel this one.
   # The AppVeyor 'rollout builds' option is supposed to serve the same

+ 2 - 1
setup.py

@@ -104,8 +104,9 @@ setup(name='dulwich',
           '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',
           'Programming Language :: Python :: Implementation :: CPython',
           'Programming Language :: Python :: Implementation :: PyPy',
           'Operating System :: POSIX',