Skip to content

Commit

Permalink
fix(license): fix license issue (apache#1446)
Browse files Browse the repository at this point in the history
Closes apache#1445
Closes apache#1444 
Closes apache#1443 
Closes apache#1440
  • Loading branch information
chaokunyang authored Apr 3, 2024
1 parent 700181a commit 7bb21d0
Show file tree
Hide file tree
Showing 28 changed files with 436 additions and 2,422 deletions.
17 changes: 17 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

# Must be first. Enables build:windows, build:linux, build:macos, build:freebsd, build:openbsd
build --enable_platform_specific_config
###############################################################################
Expand Down
17 changes: 17 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

[flake8]
exclude =
python/build/
Expand Down
17 changes: 17 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

load("@com_github_grpc_grpc//bazel:cython_library.bzl", "pyx_library")


Expand Down
22 changes: 13 additions & 9 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ The text of each license is the standard Apache 2.0 license.
* ray (https://github.com/ray-project/ray)
Files:
ci/format.sh
bazel/fury_deps_setup.bzl
bazel/grpc-cython-copts.patch
bazel/grpc-python.patch

* tensorflow (https://github.com/tensorflow/tensorflow)
Files:
bazel/arrow/pyarrow_configure.bzl


================================================================
Expand All @@ -69,6 +76,10 @@ The text of each license is also included in licenses/LICENSE-[project].txt.
java/fury-core/src/main/java/org/apache/fury/type/Generics.java
java/fury-core/src/test/java/org/apache/fury/type/GenericsTest.java

* v8 (https://chromium.googlesource.com/v8/v8.git)
Files:
javascript/packages/hps/src/v8-fast-api-calls.h


================================================================
MIT licenses
Expand All @@ -80,16 +91,9 @@ The text of each license is also included in licenses/LICENSE-[project].txt
Files:
javascript/packages/fury/lib/murmurHash3.ts


================================================================
Node.js licenses
================================================================
The following components are provided under the Node.js License. See project link for details.
The text of each license is also included in licenses/LICENSE-[project].txt.

* node (https://github.com/nodejs/node)
* cython-abseil-sample (https://github.com/messense/cython-abseil-sample)
Files:
javascript/packages/hps/src/v8-fast-api-calls.h
python/pyfury/includes/libabsl.pxd


================================================================
Expand Down
19 changes: 18 additions & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

workspace(name = "fury")

load("//bazel:fury_deps_setup.bzl", "setup_deps")
Expand All @@ -10,4 +27,4 @@ load("//bazel/arrow:pyarrow_configure.bzl", "pyarrow_configure")
bazel_skylib_workspace()
python_configure(name="local_config_python")
pyarrow_configure(name="local_config_pyarrow")
grpc_deps()
grpc_deps()
17 changes: 17 additions & 0 deletions bazel/arrow/BUILD.tpl.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

package(default_visibility = ["//visibility:public"])

load("@rules_cc//cc:defs.bzl", "cc_library", "cc_import")
Expand Down
4 changes: 3 additions & 1 deletion bazel/fury_deps_setup.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is derived from https://github.com/ray-project/ray/blob/7fb3feb25e2c19616944f16b026b7f5052451e8d/bazel/ray_deps_setup.bzl

load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")

Expand Down Expand Up @@ -158,4 +160,4 @@ def setup_deps():
urls = [
"https://github.com/abseil/abseil-cpp/archive/20230125.3.tar.gz",
],
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class DisallowedList {
DEFAULT_DISALLOWED_LIST_SET =
new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8))
.lines()
.filter(line -> !line.isEmpty() && !line.startsWith("#"))
.collect(Collectors.toSet());
} else {
throw new IllegalStateException(
Expand Down
17 changes: 17 additions & 0 deletions java/fury-core/src/main/resources/fury/disallowed.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

bsh.Interpreter
bsh.XThis
ch.qos.logback.core.db.DriverManagerConnectionSource
Expand Down
19 changes: 19 additions & 0 deletions javascript/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

const stylistic = require("@stylistic/eslint-plugin");

const customized = stylistic.configs.customize({
Expand Down
19 changes: 18 additions & 1 deletion javascript/packages/hps/binding.gyp
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

{
"targets": [
{
Expand All @@ -12,4 +29,4 @@
"cflags": ["-g"]
}
]
}
}
Loading

0 comments on commit 7bb21d0

Please sign in to comment.