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"