From c1892743a60b79cbac2186e829086f07b3136f1e Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Thu, 28 Nov 2024 11:47:10 +0000 Subject: [PATCH] Configure skips --- .github/workflows/release.yml | 2 +- build.py | 108 ++++++++++++++++++---------------- 2 files changed, 57 insertions(+), 53 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 896d2bf..3cfea04 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: CIBW_BEFORE_BUILD: pip install -e . && python build.py CIBW_TEST_REQUIRES: pytest CIBW_TEST_COMMAND: pytest --showlocals {package}/tests - CIBW_SKIP: "{pp*}" + CIBW_SKIP: "{cp36-*,cp37-*,pp*}" # Skip Python 3.6 and 3.7, as well as PyPy CIBW_ARCHS_MACOS: x86_64 arm64 CIBW_ARCHS_LINUX: auto aarch64 # CIBW_BUILD_VERBOSITY: 3 diff --git a/build.py b/build.py index e05a6e6..d5d6e93 100644 --- a/build.py +++ b/build.py @@ -28,8 +28,12 @@ # https://serverfault.com/a/713065 os.mkdir(clone_directory) subprocess.check_call(["git", "init"], cwd=clone_directory) - subprocess.check_call(["git", "remote", "add", "origin", url], cwd=clone_directory) - subprocess.check_call(["git", "fetch", "--depth=1", "origin", commit], cwd=clone_directory) + subprocess.check_call( + ["git", "remote", "add", "origin", url], cwd=clone_directory + ) + subprocess.check_call( + ["git", "fetch", "--depth=1", "origin", commit], cwd=clone_directory + ) subprocess.check_call(["git", "checkout", commit], cwd=clone_directory) print() @@ -43,54 +47,54 @@ Language.build_library( languages_filename, [ - 'vendor/tree-sitter-bash', - 'vendor/tree-sitter-c', - 'vendor/tree-sitter-c-sharp', - 'vendor/tree-sitter-commonlisp', - 'vendor/tree-sitter-cpp', - 'vendor/tree-sitter-css', - 'vendor/tree-sitter-dockerfile', - 'vendor/tree-sitter-dot', - 'vendor/tree-sitter-elisp', - 'vendor/tree-sitter-elixir', - 'vendor/tree-sitter-elm', - 'vendor/tree-sitter-embedded-template', - 'vendor/tree-sitter-erlang', - 'vendor/tree-sitter-fixed-form-fortran', - 'vendor/tree-sitter-fortran', - 'vendor/tree-sitter-go', - 'vendor/tree-sitter-go-mod', - 'vendor/tree-sitter-hack', - 'vendor/tree-sitter-haskell', - 'vendor/tree-sitter-hcl', - 'vendor/tree-sitter-html', - 'vendor/tree-sitter-java', - 'vendor/tree-sitter-javascript', - 'vendor/tree-sitter-jsdoc', - 'vendor/tree-sitter-json', - 'vendor/tree-sitter-julia', - 'vendor/tree-sitter-kotlin', - 'vendor/tree-sitter-lua', - 'vendor/tree-sitter-make', - 'vendor/tree-sitter-markdown', - 'vendor/tree-sitter-objc', - 'vendor/tree-sitter-ocaml/ocaml', - 'vendor/tree-sitter-perl', - 'vendor/tree-sitter-php', - 'vendor/tree-sitter-python', - 'vendor/tree-sitter-ql', - 'vendor/tree-sitter-r', - 'vendor/tree-sitter-regex', - 'vendor/tree-sitter-rst', - 'vendor/tree-sitter-ruby', - 'vendor/tree-sitter-rust', - 'vendor/tree-sitter-scala', - 'vendor/tree-sitter-sql', - 'vendor/tree-sitter-sqlite', - 'vendor/tree-sitter-toml', - 'vendor/tree-sitter-tsq', - 'vendor/tree-sitter-typescript/tsx', - 'vendor/tree-sitter-typescript/typescript', - 'vendor/tree-sitter-yaml', - ] + "vendor/tree-sitter-bash", + "vendor/tree-sitter-c", + "vendor/tree-sitter-c-sharp", + "vendor/tree-sitter-commonlisp", + "vendor/tree-sitter-cpp", + "vendor/tree-sitter-css", + "vendor/tree-sitter-dockerfile", + "vendor/tree-sitter-dot", + "vendor/tree-sitter-elisp", + "vendor/tree-sitter-elixir", + "vendor/tree-sitter-elm", + "vendor/tree-sitter-embedded-template", + "vendor/tree-sitter-erlang", + "vendor/tree-sitter-fixed-form-fortran", + "vendor/tree-sitter-fortran", + "vendor/tree-sitter-go", + "vendor/tree-sitter-go-mod", + "vendor/tree-sitter-hack", + "vendor/tree-sitter-haskell", + "vendor/tree-sitter-hcl", + "vendor/tree-sitter-html", + "vendor/tree-sitter-java", + "vendor/tree-sitter-javascript", + "vendor/tree-sitter-jsdoc", + "vendor/tree-sitter-json", + "vendor/tree-sitter-julia", + "vendor/tree-sitter-kotlin", + "vendor/tree-sitter-lua", + "vendor/tree-sitter-make", + "vendor/tree-sitter-markdown", + "vendor/tree-sitter-objc", + "vendor/tree-sitter-ocaml/ocaml", + "vendor/tree-sitter-perl", + "vendor/tree-sitter-php", + "vendor/tree-sitter-python", + "vendor/tree-sitter-ql", + "vendor/tree-sitter-r", + "vendor/tree-sitter-regex", + "vendor/tree-sitter-rst", + "vendor/tree-sitter-ruby", + "vendor/tree-sitter-rust", + "vendor/tree-sitter-scala", + "vendor/tree-sitter-sql", + "vendor/tree-sitter-sqlite", + "vendor/tree-sitter-toml", + "vendor/tree-sitter-tsq", + "vendor/tree-sitter-typescript/tsx", + "vendor/tree-sitter-typescript/typescript", + "vendor/tree-sitter-yaml", + ], )