From 00f69952c08c579f4b45309114398907ecb4bbaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Schoentgen?= Date: Tue, 17 Sep 2024 09:24:59 +0200 Subject: [PATCH] fix: PyPy release --- .github/workflows/build-and-publish.yml | 3 +-- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 93243c0..e15bb7d 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -64,8 +64,7 @@ jobs: python-version: "3.12" - name: Build source distribution run: | - # FIXME: setuptools was removed starting with Python 3.12 - pip install --upgrade --force setuptools + python -m pip install "." python setup.py sdist - name: Store the source distribution uses: actions/upload-artifact@v4 diff --git a/setup.py b/setup.py index d909424..d90a120 100755 --- a/setup.py +++ b/setup.py @@ -14,8 +14,8 @@ "readme_renderer", ] install_requires = [ - # https://github.com/pypa/distutils/issues/283 - "setuptools<72.2.0", + "setuptools>=66.1.0", + 'setuptools<72.2.0; implementation_name == "pypy"', # https://github.com/pypa/distutils/issues/283 ] MARISA_ROOT_DIR = "marisa-trie"