This is an automated email from the ASF dual-hosted git repository.

jiacai2050 pushed a commit to branch chore-asf-release
in repository https://gitbox.apache.org/repos/asf/horaedb-client-py.git

commit 4a0aab8fb8f39f39cc8de7e3515108fba3d9cfb6
Author: jiacai2050 <[email protected]>
AuthorDate: Tue Nov 26 10:25:31 2024 +0800

    chore: fix asf header
---
 .asf.yaml                                |  2 +-
 .github/workflows/ci.yml                 | 17 ++++++++++++++++-
 .github/workflows/release.yml            | 17 ++++++++++++++++-
 .gitignore                               |  2 ++
 Cargo.toml                               | 17 +++++++++++++++++
 Makefile                                 | 22 +++++++++++++++++++++-
 NOTICE                                   |  5 +++++
 README.md                                | 10 +++++-----
 build.rs                                 | 18 ++++++++++++++++--
 etc/license.template                     |  1 -
 examples/read_write.py                   | 17 ++++++++++++++++-
 ceresdb_client.pyi => horaedb_client.pyi | 17 +++++++++++++++++
 licenserc.toml                           | 18 ++++++++++++++++++
 pyproject.toml                           | 17 +++++++++++++++++
 rust-toolchain                           |  1 -
 rustfmt.toml                             | 19 +++++++++++++++++--
 src/client.rs                            | 17 ++++++++++++++++-
 src/lib.rs                               | 17 ++++++++++++++++-
 src/model.rs                             | 17 ++++++++++++++++-
 19 files changed, 232 insertions(+), 19 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index aa6324b..f2ad0eb 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -6,7 +6,7 @@
 # "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
+#   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
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 10a6259..141e8ea 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,4 +1,19 @@
-# Copyright 2022 HoraeDB Project Authors. Licensed under Apache-2.0.
+# 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.
 
 name: CI
 
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 4935446..514a977 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,4 +1,19 @@
-# Copyright 2022 HoraeDB Project Authors. Licensed under Apache-2.0.
+# 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.
 
 name: Release
 
diff --git a/.gitignore b/.gitignore
index 0a538ae..ee3beb2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,5 @@ __pycache__/
 .idea
 .python-version
 dist
+.env
+env
\ No newline at end of file
diff --git a/Cargo.toml b/Cargo.toml
index 39f97c6..3567076 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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]
 name    = "horaedb-client-py"
 version = "1.0.0"
diff --git a/Makefile b/Makefile
index 963607d..fdc6022 100644
--- a/Makefile
+++ b/Makefile
@@ -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.
+
 SHELL = /bin/bash
 
 install-deps:
@@ -6,8 +23,11 @@ install-deps:
 build:
        maturin build --release
 
-fmt:
+lint: check-header
        cargo fmt -- --check
 
 clippy:
        cargo clippy --all-targets --all-features -- -D warnings
+
+check-header:
+       hawkeye check
diff --git a/NOTICE b/NOTICE
new file mode 100644
index 0000000..cd5de63
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,5 @@
+Apache HoraeDB (Incubating)
+Copyright 2024 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
diff --git a/README.md b/README.md
index dfe60ba..7018bff 100644
--- a/README.md
+++ b/README.md
@@ -1,12 +1,12 @@
 # Apache HoraeDB (Incubating) Python Client
 
 ![License](https://img.shields.io/badge/license-Apache--2.0-green.svg)
-[![CI](https://github.com/apache/incubator-horaedb-client-py/actions/workflows/ci.yml/badge.svg)](https://github.com/apache/incubator-horaedb-client-py/actions/workflows/ci.yml)
-[![OpenIssue](https://img.shields.io/github/issues/apache/incubator-horaedb-client-py)](https://github.com/apache/incubator-horaedb-client-py/issues)
+[![CI](https://github.com/apache/horaedb-client-py/actions/workflows/ci.yml/badge.svg)](https://github.com/apache/horaedb-client-py/actions/workflows/ci.yml)
+[![OpenIssue](https://img.shields.io/github/issues/apache/horaedb-client-py)](https://github.com/apache/horaedb-client-py/issues)
 
 ## Introduction
 
-Python client for [Apache HoraeDB 
(Incubating)](https://github.com/apache/incubator-horaedb).
+Python client for [Apache HoraeDB 
(Incubating)](https://github.com/apache/horaedb).
 
 > [!IMPORTANT]
 > Apache HoraeDB (incubating) is an effort undergoing incubation at the Apache
@@ -19,7 +19,7 @@ Python client for [Apache HoraeDB 
(Incubating)](https://github.com/apache/incuba
 - [x] Query
 - [x] Write
 
-An 
[example](https://github.com/apache/incubator-horaedb-client-py/blob/main/examples/read_write.py)
 is provided to show how to access HoraeDB.
+An 
[example](https://github.com/apache/horaedb-client-py/blob/main/examples/read_write.py)
 is provided to show how to access HoraeDB.
 
 ## Installation
 
@@ -31,7 +31,7 @@ pip install horaedb-client
 
 Any contribution is welcome!
 
-Read our [Contributing 
Guide](https://github.com/apache/incubator-horaedb/blob/main/CONTRIBUTING.md) 
and make your first contribution!
+Read our [Contributing 
Guide](https://github.com/apache/horaedb/blob/main/CONTRIBUTING.md) and make 
your first contribution!
 
 ## License
 
diff --git a/build.rs b/build.rs
index 13dd7a0..f1aa625 100644
--- a/build.rs
+++ b/build.rs
@@ -1,5 +1,19 @@
-// Copyright 2022 HoraeDB Project Authors. Licensed under Apache-2.0.
-use std::env;
+// 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.
 
 fn main() {
     let target = env::var("TARGET").unwrap();
diff --git a/etc/license.template b/etc/license.template
deleted file mode 100644
index 420ef61..0000000
--- a/etc/license.template
+++ /dev/null
@@ -1 +0,0 @@
-// Copyright {\d+} HoraeDB Project Authors. Licensed under Apache-2.0.
diff --git a/examples/read_write.py b/examples/read_write.py
index 64c3e9d..21a4ef5 100644
--- a/examples/read_write.py
+++ b/examples/read_write.py
@@ -1,4 +1,19 @@
-# Copyright 2022 HoraeDB Project Authors. Licensed under Apache-2.0.
+# 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.
 
 import asyncio
 import datetime
diff --git a/ceresdb_client.pyi b/horaedb_client.pyi
similarity index 80%
rename from ceresdb_client.pyi
rename to horaedb_client.pyi
index 20550e6..b0474d9 100644
--- a/ceresdb_client.pyi
+++ b/horaedb_client.pyi
@@ -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.
+
 import enum
 from typing import Any, List, Optional
 
diff --git a/licenserc.toml b/licenserc.toml
new file mode 100644
index 0000000..af3e8ed
--- /dev/null
+++ b/licenserc.toml
@@ -0,0 +1,18 @@
+# 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.
+
+headerPath = "Apache-2.0-ASF.txt"
diff --git a/pyproject.toml b/pyproject.toml
index 2d4fbb9..1842fc6 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -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.
+
 [project]
 name            = "horaedb-client"
 version         = "1.0.0"
diff --git a/rust-toolchain b/rust-toolchain
deleted file mode 100644
index 3f36906..0000000
--- a/rust-toolchain
+++ /dev/null
@@ -1 +0,0 @@
-nightly-2023-02-02
diff --git a/rustfmt.toml b/rustfmt.toml
index b751d34..c8a04da 100644
--- a/rustfmt.toml
+++ b/rustfmt.toml
@@ -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.
+
 # https://github.com/rust-lang/rustfmt/blob/master/Configurations.md
 
 # Break comments to fit on the line
@@ -10,5 +27,3 @@ format_code_in_doc_comments = true
 reorder_impl_items = true
 # Discard existing import groups, and create three groups for std, external 
crates, crates
 group_imports = "StdExternalCrate"
-
-license_template_path = "etc/license.template"
diff --git a/src/client.rs b/src/client.rs
index 2c53fdd..a2527c2 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -1,4 +1,19 @@
-// Copyright 2022 HoraeDB Project Authors. Licensed under Apache-2.0.
+// 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.
 
 use std::{fmt::Debug, sync::Arc, time::Duration};
 
diff --git a/src/lib.rs b/src/lib.rs
index 70d9ea7..0cb1c6f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,4 +1,19 @@
-// Copyright 2022 HoraeDB Project Authors. Licensed under Apache-2.0.
+// 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.
 
 mod client;
 // Due to clippy's bug, see 
https://github.com/rust-lang/rust-clippy/issues/8971.
diff --git a/src/model.rs b/src/model.rs
index f062f96..8ded5a3 100644
--- a/src/model.rs
+++ b/src/model.rs
@@ -1,4 +1,19 @@
-// Copyright 2022 HoraeDB Project Authors. Licensed under Apache-2.0.
+// 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.
 
 //! Read/Write request and response, and useful tools for them.
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to