Skip to content

Commit

Permalink
Merge pull request #84 from codefuse-ai/fix-bazel
Browse files Browse the repository at this point in the history
Build all modules in public env
  • Loading branch information
ValKmjolnir authored Dec 23, 2024
2 parents 13dd654 + 34b2cfc commit 4338680
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 17 deletions.
5 changes: 1 addition & 4 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -705,10 +705,7 @@ pkg_tar(
deps = [
":sparrow-cli-pkg",
":coref-cfamily-src-extractor-pkg",
] + select({
":custom_build": [],
"//conditions:default": [":coref-swift-src-extractor-pkg"],
}),
],
)

# buildifier(
Expand Down
2 changes: 1 addition & 1 deletion cli/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ genrule(
],
cmd = """
chmod -R 755 $$(dirname $(PYTHON3))/../lib/python3.10/site-packages
$(PYTHON3) -m pip install -r cli/requirements.txt -i https://pypi.antfin-inc.com/simple
$(PYTHON3) -m pip install -r cli/requirements.txt
$(PYTHON3) -m PyInstaller ./cli/sparrow-cli.spec --distpath $(RULEDIR) --workpath ./pyinstaller-build -y --clean
mv $(RULEDIR)/cli/* $(RULEDIR)/
rmdir $(RULEDIR)/cli
Expand Down
2 changes: 0 additions & 2 deletions language/cfamily/extractor/Tools/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
-i https://pypi.antfin-inc.com/simple

dataclasses==0.6
Jinja2==3.0.3
jinja2-strcase==0.0.2
6 changes: 3 additions & 3 deletions language/properties/extractor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ load("//:junit5.bzl", "java_junit5_test")
java_import(
name = "lombok_jar",
jars = [
"@maven//:v1/http/mvn.dev.alipay.net/artifactory/content/groups/public/org/projectlombok/lombok/1.18.16/lombok-1.18.16.jar",
"@maven//:v1/https/maven.aliyun.com/repository/public/org/projectlombok/lombok/1.18.16/lombok-1.18.16.jar",
],
)

Expand All @@ -21,8 +21,8 @@ java_plugin(
java_import(
name = "picocli_jar",
jars = [
"@maven//:v1/http/mvn.dev.alipay.net/artifactory/content/groups/public/info/picocli/picocli/4.6.1/picocli-4.6.1.jar",
"@maven//:v1/http/mvn.dev.alipay.net/artifactory/content/groups/public/info/picocli/picocli-codegen/4.6.1/picocli-codegen-4.6.1.jar",
"@maven//:v1/https/maven.aliyun.com/repository/public/info/picocli/picocli/4.6.1/picocli-4.6.1.jar",
"@maven//:v1/https/maven.aliyun.com/repository/public/info/picocli/picocli-codegen/4.6.1/picocli-codegen-4.6.1.jar",
],
)

Expand Down
4 changes: 2 additions & 2 deletions language/python/extractor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ genrule(
outs = ["coref-python-src-extractor"],
cmd = """
chmod -R 755 $$(dirname $(PYTHON3))/../lib/python3.10/site-packages
$(PYTHON3) -m pip install pyinstaller -i https://pypi.antfin-inc.com/simple
$(PYTHON3) -m pip install sqlalchemy -i https://pypi.antfin-inc.com/simple
$(PYTHON3) -m pip install pyinstaller
$(PYTHON3) -m pip install sqlalchemy
cp language/python/extractor/src/resources/hook-_tkinter.py $$(dirname $(PYTHON3))/../lib/python3.10/site-packages/PyInstaller/hooks/hook-_tkinter.py
$(PYTHON3) $(locations //language/python/extractor:install_source)
cp language/python/extractor/src/dist/coref-python-src-extractor $(RULEDIR)
Expand Down
1 change: 0 additions & 1 deletion language/python/extractor/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
-i https://pypi.antfin-inc.com/simple
SQLAlchemy~=1.4.32

tqdm~=4.64.0
Expand Down
6 changes: 3 additions & 3 deletions language/sql/extractor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ load("//:junit5.bzl", "java_junit5_test")
java_import(
name = "lombok_jar",
jars = [
"@maven//:v1/http/mvn.dev.alipay.net/artifactory/content/groups/public/org/projectlombok/lombok/1.18.16/lombok-1.18.16.jar",
"@maven//:v1/https/maven.aliyun.com/repository/public/org/projectlombok/lombok/1.18.16/lombok-1.18.16.jar",
],
)

Expand All @@ -21,8 +21,8 @@ java_plugin(
java_import(
name = "picocli_jar",
jars = [
"@maven//:v1/http/mvn.dev.alipay.net/artifactory/content/groups/public/info/picocli/picocli/4.6.1/picocli-4.6.1.jar",
"@maven//:v1/http/mvn.dev.alipay.net/artifactory/content/groups/public/info/picocli/picocli-codegen/4.6.1/picocli-codegen-4.6.1.jar",
"@maven//:v1/https/maven.aliyun.com/repository/public/info/picocli/picocli/4.6.1/picocli-4.6.1.jar",
"@maven//:v1/https/maven.aliyun.com/repository/public/info/picocli/picocli-codegen/4.6.1/picocli-codegen-4.6.1.jar",
],
)

Expand Down
2 changes: 1 addition & 1 deletion language/xml/extractor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
java_import(
name = "lombok_jar",
jars = [
"@maven//:v1/http/mvn.dev.alipay.net/artifactory/content/groups/public/org/projectlombok/lombok/1.18.16/lombok-1.18.16.jar",
"@maven//:v1/https/maven.aliyun.com/repository/public/org/projectlombok/lombok/1.18.16/lombok-1.18.16.jar",
],
)

Expand Down

0 comments on commit 4338680

Please sign in to comment.