From 433a4c2b9c2c74ce16846e96333ef68db7790021 Mon Sep 17 00:00:00 2001 From: Avasam Date: Thu, 21 Sep 2023 15:58:02 -0400 Subject: [PATCH] Post-merge fixes --- .github/workflows/main.yml | 7 ++++--- isapi/install.py | 3 +-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c4fdb195f..f3ec144ad 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -96,7 +96,7 @@ jobs: dist/*.whl # This job can be run locally with the `format_all.bat` script - formatters: + checkers: runs-on: windows-2019 steps: - uses: actions/checkout@v3 @@ -116,7 +116,8 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + # mypy 1.5 dropped support for python 3.7 + python-version: ['3.8', '3.9', '3.10', '3.11'] steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 @@ -135,6 +136,6 @@ jobs: - uses: actions/checkout@v3 - uses: jakebailey/pyright-action@v1 with: - version: '1.1.311' + version: 'latest' python-version: ${{ matrix.python-version }} diff --git a/isapi/install.py b/isapi/install.py index 7662eb3b6..85dc3613e 100644 --- a/isapi/install.py +++ b/isapi/install.py @@ -41,8 +41,7 @@ _DEFAULT_ENABLE_DIR_BROWSING = False _DEFAULT_ENABLE_DEFAULT_DOC = False -_extensions = [ext for ext, _, _ in importlib.machinery.EXTENSION_SUFFIXES] -is_debug_build = "_d.pyd" in _extensions +is_debug_build = "_d.pyd" in importlib.machinery.EXTENSION_SUFFIXES this_dir = os.path.abspath(os.path.dirname(__file__))