From a636602397a5a00f5a98370b0d9dd80d1a170efb Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Thu, 28 Nov 2024 10:43:58 +0000 Subject: [PATCH] More attempted fixes --- .github/workflows/release.yml | 4 ++-- pyproject.toml | 10 ++++++++++ setup.py | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 pyproject.toml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3ee7a0c..8d902ae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,9 +32,9 @@ jobs: platforms: all - name: Build wheels - run: uvx --python 3.12 cibuildwheel@2.22.0 --output-dir dist + run: uvx cibuildwheel@2.22.0 --output-dir dist env: - CIBW_BEFORE_BUILD: pip install Cython==3.0.11 && pip install -e . && python build.py + CIBW_BEFORE_BUILD: pip install --upgrade Cython==3.0.11 && pip install -e . && python build.py CIBW_TEST_REQUIRES: pytest CIBW_TEST_COMMAND: pytest --showlocals {package}/tests CIBW_SKIP: "{pp*}" diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..226b26f --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,10 @@ +[project] +requires-python = ">= 3.8" + +[build-system] +requires = [ + "setuptools>=42", + "Cython", +] + +build-backend = "setuptools.build_meta" \ No newline at end of file diff --git a/setup.py b/setup.py index d8c47d0..6950557 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ packages=["tree_sitter_languages"], package_data={"tree_sitter_languages": ["languages.so", "languages.dll"]}, install_requires=["tree-sitter<0.22.0"], - python_requires=">=3.8.1", + python_requires=">=3.8", project_urls={ "Documentation": "https://github.com/Textualize/py-tree-sitter-languages", "Source": "https://github.com/Textualize/py-tree-sitter-languages",