-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update for tree-sitter==0.22 with pre-build wheels
- Loading branch information
Showing
10 changed files
with
120 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
git+https://github.com/huggingface/evaluate@main | ||
codebleu>=0.2.0,<1.0.0 | ||
codebleu>=0.5.0,<1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0.0", "wheel", "tree-sitter>=0.20.0,<1.0.0", "requests>=2.0.0,<3.0.0"] | ||
requires = ["setuptools>=61.0.0", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
|
||
|
@@ -9,7 +9,7 @@ description = "Unofficial CodeBLEU implementation that supports Linux, MacOS and | |
readme = "README.md" | ||
license = {text = "MIT License"} | ||
authors = [ | ||
{name = "Konstantin Chernyshev", email = "[email protected]"}, | ||
{name = "Konstantin Chernyshev", email = "kdchernyshev+github@gmail.com"}, | ||
] | ||
keywords = ["codebleu", "code", "bleu", "nlp", "natural language processing", "programming", "evaluate", "evaluation", "code generation", "metrics"] | ||
dynamic = ["version"] | ||
|
@@ -23,7 +23,7 @@ classifiers = [ | |
] | ||
|
||
dependencies = [ | ||
"tree-sitter >=0.20.0,<1.0.0", | ||
"tree-sitter >=0.22.0,<1.0.0", | ||
"setuptools >=61.0.0", # distutils removed in 3.12, but distutils.ccompiler used in tree-sitter | ||
] | ||
|
||
|
@@ -37,7 +37,7 @@ exclude = ["tests", "tests.*", "codebleu.parser.tree-sitter"] | |
|
||
|
||
[tool.setuptools.package-data] | ||
"*" = ["py.typed", "*.txt", "*.so", "*.dylib", "*.dll", "keywords/*"] | ||
"*" = ["py.typed", "*.txt", "keywords/*"] | ||
|
||
|
||
[project.scripts] | ||
|
@@ -47,6 +47,18 @@ codebleu = "codebleu.__main__:main" | |
homepage = "https://github.com/k4black/codebleu" | ||
|
||
[project.optional-dependencies] | ||
all = [ | ||
"tree-sitter-python ~=0.21", | ||
"tree-sitter-go ~=0.21", | ||
"tree-sitter-javascript ~=0.21", | ||
"tree-sitter-ruby ~=0.21", | ||
"tree-sitter-php ~=0.22", | ||
"tree-sitter-java ~=0.21", | ||
"tree-sitter-c-sharp ~=0.21", | ||
"tree-sitter-c ~=0.21", | ||
"tree-sitter-cpp ~=0.22", | ||
"tree-sitter-rust ~=0.21", | ||
] | ||
test = [ | ||
"pytest >=7.0.0,<9.0.0", | ||
"pytest-cov >=4.0.0,<6.0.0", | ||
|