From f0ad2d628bd66975a04f01e2be945fe0c16a493b Mon Sep 17 00:00:00 2001 From: Qi Zhao Date: Wed, 28 Aug 2024 01:38:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20setuptools?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 1 - pyproject.toml | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4a24d33..6426069 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,6 @@ jobs: - name: Install dependencies run: | pip install --upgrade pip - pip install setuptools -U pip install .[dev] - name: Lint with flake8 diff --git a/pyproject.toml b/pyproject.toml index f095698..f3713b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,7 @@ [build-system] requires = [ - "setuptools >= 42", + "setuptools >= 66.0; python_version >= '3.12'", + "setuptools <= 60.9.0; python_version < '3.12'", "wheel" ] build-backend = "setuptools.build_meta" \ No newline at end of file