From 78fcceb46310142e99b50b78d69394c421de2563 Mon Sep 17 00:00:00 2001 From: benefactarch Date: Thu, 24 Aug 2023 18:34:30 -0400 Subject: [PATCH] fix: tests - windows --- .github/workflows/build.yaml | 2 +- .github/workflows/test.yml | 2 +- pyproject.toml | 14 ++++++-------- src/hatch_cython/plugin.py | 2 +- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 055f141..bb2e419 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -29,7 +29,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.10", "3.11"] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3413167..23e9630 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.10", "3.11"] steps: - uses: actions/checkout@v3 diff --git a/pyproject.toml b/pyproject.toml index 3a55523..45dc098 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,9 +16,6 @@ authors = [ classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: Implementation :: CPython", @@ -26,7 +23,8 @@ classifiers = [ ] dependencies = [ "Cython", - "hatchling" + "hatchling", + "setuptools", ] [project.urls] @@ -55,14 +53,14 @@ cov = [ ] [[tool.hatch.envs.all.matrix]] -python = ["3.7", "3.8", "3.9", "3.10", "3.11"] +python = ["3.10", "3.11"] [tool.hatch.envs.lint] detached = true dependencies = [ - "black>=23.1.0", - "mypy>=1.0.0", - "ruff>=0.0.243", + "black", + "mypy", + "ruff", ] [tool.hatch.envs.lint.scripts] typing = "mypy --install-types --non-interactive {args:src/hatch_cython tests}" diff --git a/src/hatch_cython/plugin.py b/src/hatch_cython/plugin.py index e9bd275..623e08d 100644 --- a/src/hatch_cython/plugin.py +++ b/src/hatch_cython/plugin.py @@ -161,7 +161,7 @@ def initialize(self, version: str, build_data: dict): setup_file = os.path.join(temp, "setup.py") with open(setup_file, "w") as f: setup = setup_py( - *self.normalized_included_files, + *self.included_files, compile_args=compile_args, directives={ "binding": binding,