File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ load ("@bazel_skylib//rules:select_file.bzl" , "select_file" )
1
2
load ("@py_dev_requirements//:requirements.bzl" , "requirement" )
2
3
load ("@rules_pkg//pkg:mappings.bzl" , "pkg_files" , "strip_prefix" )
3
4
load ("@rules_pkg//pkg:pkg.bzl" , "pkg_tar" )
@@ -115,6 +116,24 @@ copy_file(
115
116
out = "test/extensions/webextensions-selenium-example-unsigned.zip" ,
116
117
)
117
118
119
+ select_file (
120
+ name = "global-license" ,
121
+ srcs = "//:license" ,
122
+ subpath = "LICENSE" ,
123
+ )
124
+
125
+ copy_file (
126
+ name = "license" ,
127
+ src = ":global-license" ,
128
+ out = "LICENSE" ,
129
+ )
130
+
131
+ copy_file (
132
+ name = "license-wheel" ,
133
+ src = ":global-license" ,
134
+ out = "selenium-%s.dist-info/LICENSE" % SE_VERSION ,
135
+ )
136
+
118
137
py_library (
119
138
name = "selenium" ,
120
139
srcs = glob (
@@ -167,6 +186,7 @@ pkg_files(
167
186
"MANIFEST.in" ,
168
187
"README.rst" ,
169
188
"setup.py" ,
189
+ ":license" ,
170
190
":selenium-pkg" ,
171
191
":selenium-pkginfo" ,
172
192
],
@@ -228,6 +248,7 @@ py_wheel(
228
248
version = SE_VERSION ,
229
249
visibility = ["//visibility:public" ],
230
250
deps = [
251
+ ":license-wheel" ,
231
252
":selenium-pkg" ,
232
253
],
233
254
)
You can’t perform that action at this time.
0 commit comments