File tree Expand file tree Collapse file tree 3 files changed +35
-4
lines changed Expand file tree Collapse file tree 3 files changed +35
-4
lines changed Original file line number Diff line number Diff line change 1
- load ("@rules_pkg//:mappings.bzl" , "pkg_filegroup" , "pkg_files" )
1
+ load ("@rules_pkg//pkg:mappings.bzl" , "pkg_filegroup" , "pkg_files" )
2
+ load ("@semmle_code//:dist.bzl" , "dist" , "pack_zip" )
3
+ load ("//:defs.bzl" , "codeql_platform" )
2
4
3
5
package (default_visibility = ["//visibility:public" ])
4
6
@@ -28,3 +30,32 @@ pkg_filegroup(
28
30
"//python/downgrades" ,
29
31
],
30
32
)
33
+
34
+ pkg_files (
35
+ name = "codeql-extractor-yml" ,
36
+ srcs = ["codeql-extractor.yml" ],
37
+ strip_prefix = None ,
38
+ )
39
+
40
+ dist (
41
+ name = "extractor-generic" ,
42
+ srcs = [
43
+ ":codeql-extractor-yml" ,
44
+ ":dbscheme-group" ,
45
+ "//python/downgrades" ,
46
+ "//python/extractor" ,
47
+ "//python/tools" ,
48
+ ],
49
+ prefix = "python" ,
50
+ visibility = ["//visibility:public" ],
51
+ )
52
+
53
+ pack_zip (
54
+ name = "extractor-arch" ,
55
+ srcs = [
56
+ "//python/extractor/tsg-python" ,
57
+ ],
58
+ package_file_name = "extractor-" + codeql_platform + ".zip" ,
59
+ prefix = "python/tools/" + codeql_platform ,
60
+ visibility = ["//visibility:public" ],
61
+ )
Original file line number Diff line number Diff line change 1
- load ("//:dist.bzl" , "pack_zip" )
1
+ load ("@semmle_code //:dist.bzl" , "pack_zip" )
2
2
3
3
py_binary (
4
4
name = "make-zips-py" ,
@@ -33,7 +33,7 @@ genrule(
33
33
)
34
34
35
35
pack_zip (
36
- name = "extractor-python " ,
36
+ name = "extractor" ,
37
37
srcs = [
38
38
"LICENSE-PSF.md" , # because we distribute imp.py
39
39
"convert_setup.py" ,
Original file line number Diff line number Diff line change 1
1
load ("@tsg_python_crate_index//:defs.bzl" , "aliases" , "all_crate_deps" )
2
- load ("//:common.bzl" , "codeql_rust_binary" )
2
+ load ("@semmle_code //:common.bzl" , "codeql_rust_binary" )
3
3
4
4
codeql_rust_binary (
5
5
name = "tsg-python" ,
You can’t perform that action at this time.
0 commit comments