Skip to content

Commit 1287c9d

Browse files
committed
bazel build zip success.
1 parent c277beb commit 1287c9d

File tree

6 files changed

+29
-16
lines changed

6 files changed

+29
-16
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,8 @@ bazel-bin
4040
bazel-CodeFuse-Query
4141
bazel-out
4242
bazel-testlogs
43+
44+
__pycache__/
45+
*.pyc
46+
*.pyo
47+
*.pyd

BUILD

+2-5
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ pkg_files(
236236
pkg_files(
237237
name = "coref-python-src-extractor-pkg",
238238
srcs = [
239-
"//language/python/extractor:test1",
239+
"//language/python/extractor:coref-python-extractor-bin",
240240
],
241241
attributes = pkg_attributes(
242242
mode = "0755",
@@ -507,10 +507,7 @@ coref_lib_script_pkgs = [
507507
":coref-properties-lib-script-pkg",
508508
":coref-sql-lib-script-pkg",
509509
# ":coref-arkts-lib-script-pkg",
510-
] + select({
511-
":custom_build": [],
512-
"//conditions:default": [":coref-swift-lib-script-pkg"],
513-
})
510+
]
514511

515512
coref_libscript_languages = [
516513
"java",

WORKSPACE

+16-4
Original file line numberDiff line numberDiff line change
@@ -230,28 +230,40 @@ http_archive(
230230
name = "osx_godel_0.3",
231231
build_file = "godel.BUILD",
232232
sha256 = "1e7e0151f1acd1656f4079b7b16dfa4e5da607a1239149a88e9df3b543b23c30",
233-
urls = ["https://antsys-sparrow-data.cn-shanghai-alipay-office.oss-alipay.aliyuncs.com/sparrow/public/osx-godel/godel-multipleinput-20221115.tar.gz"],
233+
urls = [
234+
"https://antsys-sparrow-data.cn-shanghai-alipay-office.oss-alipay.aliyuncs.com/sparrow/public/osx-godel/godel-multipleinput-20221115.tar.gz",
235+
"https://github.com/codefuse-ai/CodeFuse-Query/releases/download/godel_0.3_artifacts/godel-0.3.osx.multipleinput-20221115.tar.gz",
236+
],
234237
)
235238

236239
http_archive(
237240
name = "linux_godel_0.3",
238241
build_file = "godel.BUILD",
239242
sha256 = "4dbc04677b9c785a00c127228368919ba6cee2a1f160e83e497d44fb4820dcd3",
240-
urls = ["https://antsys-sparrow-data.cn-shanghai-alipay-office.oss-alipay.aliyuncs.com/sparrow/public/linux-godel/godel-multipleinput-20221115.tar.gz"],
243+
urls = [
244+
"https://antsys-sparrow-data.cn-shanghai-alipay-office.oss-alipay.aliyuncs.com/sparrow/public/linux-godel/godel-multipleinput-20221115.tar.gz",
245+
"https://github.com/codefuse-ai/CodeFuse-Query/releases/download/godel_0.3_artifacts/godel-0.3.linux.multipleinput-20221115.tar.gz",
246+
],
241247
)
242248

243249
http_archive(
244250
name = "osx_godel_script",
245251
build_file = "godel.BUILD",
246252
sha256 = "4c4189320523ca63d9fb50e37aa0bcbd452109011a8d669d878b91492168e4e0",
247-
urls = ["https://antsys-sparrow-data.cn-shanghai-alipay-office.oss-alipay.aliyuncs.com/sparrow/public/godel-script/osx/godel-script-osx-2ac5184520240812.tar.gz"],
253+
urls = [
254+
"https://antsys-sparrow-data.cn-shanghai-alipay-office.oss-alipay.aliyuncs.com/sparrow/public/godel-script/osx/godel-script-osx-2ac5184520240812.tar.gz",
255+
"https://github.com/codefuse-ai/CodeFuse-Query/releases/download/godel_0.3_artifacts/godel-script-osx-2ac5184520240812.tar.gz",
256+
],
248257
)
249258

250259
http_archive(
251260
name = "linux_godel_script",
252261
build_file = "godel.BUILD",
253262
sha256 = "ac7c0d62b02cb3d7c673dac0c69079e347f727232a56053402ebbab655fd5649",
254-
urls = ["https://antsys-sparrow-data.cn-shanghai-alipay-office.oss-alipay.aliyuncs.com/sparrow/public/godel-script/linux/godel-script-linux-2ac5184520240812.tar.gz"],
263+
urls = [
264+
"https://antsys-sparrow-data.cn-shanghai-alipay-office.oss-alipay.aliyuncs.com/sparrow/public/godel-script/linux/godel-script-linux-2ac5184520240812.tar.gz",
265+
"https://github.com/codefuse-ai/CodeFuse-Query/releases/download/godel_0.3_artifacts/godel-script-linux-2ac5184520240812.tar.gz",
266+
],
255267
)
256268

257269
# Setting up for bazel go dependency

cli/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
psutil==5.9.6
2-
pyinstaller==6.3.0
2+
pyinstaller==6.11.1
33
chardet==5.2.0

language/python/extractor/BUILD

+4-5
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ load("@rules_python//python:defs.bzl", "py_library")
4040
#)
4141

4242
py_library(
43-
name = "test",
43+
name = "coref-python-extractor-src",
4444
srcs = glob(
4545
["src/**/*.py"],
4646
exclude = ["**/tests/**"],
@@ -61,16 +61,15 @@ filegroup(
6161
)
6262

6363
genrule(
64-
name = "test1",
64+
name = "coref-python-extractor-bin",
6565
srcs = [
6666
"//language/python/extractor:install_source",
67-
":test",
67+
":coref-python-extractor-src",
6868
],
6969
outs = ["coref-python-src-extractor"],
7070
cmd = """
7171
chmod -R 755 $$(dirname $(PYTHON3))/../lib/python3.10/site-packages
72-
$(PYTHON3) -m pip install pyinstaller
73-
$(PYTHON3) -m pip install sqlalchemy
72+
$(PYTHON3) -m pip install -r language/python/extractor/requirements.txt
7473
cp language/python/extractor/src/resources/hook-_tkinter.py $$(dirname $(PYTHON3))/../lib/python3.10/site-packages/PyInstaller/hooks/hook-_tkinter.py
7574
$(PYTHON3) $(locations //language/python/extractor:install_source)
7675
cp language/python/extractor/src/dist/coref-python-src-extractor $(RULEDIR)

language/python/extractor/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ SQLAlchemy~=1.4.32
22

33
tqdm~=4.64.0
44
astor~=0.8.1
5-
pyinstaller~=5.3
5+
pyinstaller==6.11.1

0 commit comments

Comments
 (0)