You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by du...@apache.org on 2019/10/22 04:53:14 UTC
[rocketmq-client-python] branch ctypes updated: style(client) add
apache 2 license header to source file
This is an automated email from the ASF dual-hosted git repository.
duhengforever pushed a commit to branch ctypes
in repository https://gitbox.apache.org/repos/asf/rocketmq-client-python.git
The following commit(s) were added to refs/heads/ctypes by this push:
new 2ca8a79 style(client) add apache 2 license header to source file
new 1a5063f Merge pull request #56 from duhenglucky/license
2ca8a79 is described below
commit 2ca8a79b99c5329e0e3e7880772f08959378133f
Author: duhenglucky <du...@gmail.com>
AuthorDate: Tue Oct 22 10:40:45 2019 +0800
style(client) add apache 2 license header to source file
---
.bumpversion.cfg | 16 ++++++++++++++++
README.md | 3 +--
changelog | 7 -------
ci/Dockerfile | 16 ++++++++++++++++
dev-requirements.txt | 15 +++++++++++++++
manylinux.sh | 15 +++++++++++++++
pytest.ini | 14 ++++++++++++++
rocketmq/__init__.py | 18 ++++++++++++++++++
rocketmq/client.py | 17 +++++++++++++++++
rocketmq/consts.py | 17 +++++++++++++++++
rocketmq/exceptions.py | 17 +++++++++++++++++
rocketmq/ffi.py | 17 +++++++++++++++++
setup.cfg | 14 ++++++++++++++
setup.py | 17 +++++++++++++++++
tests/conftest.py | 17 +++++++++++++++++
tests/test_consumer.py | 17 +++++++++++++++++
tests/test_producer.py | 17 +++++++++++++++++
17 files changed, 245 insertions(+), 9 deletions(-)
diff --git a/.bumpversion.cfg b/.bumpversion.cfg
index 885d39d..daf3a98 100644
--- a/.bumpversion.cfg
+++ b/.bumpversion.cfg
@@ -1,3 +1,19 @@
+#
+# 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.
+#
[bumpversion]
files = setup.py
commit = True
diff --git a/README.md b/README.md
index b7e7497..2c9c0e1 100644
--- a/README.md
+++ b/README.md
@@ -82,5 +82,4 @@ consumer.shutdown()
```
## License
-
-This work is released under the MIT license. A copy of the license is provided in the [LICENSE](./LICENSE) file.
+[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) Copyright (C) Apache Software Foundation
diff --git a/changelog b/changelog
deleted file mode 100755
index e474814..0000000
--- a/changelog
+++ /dev/null
@@ -1,7 +0,0 @@
-version 1.0.0 @2018.10.16
- * Initialize version of python client.
- * Export python APIs Based on CPP SDK using boost-python.
- * Support sending message in synchronous mode.
- * Support consuming message using push model.
- * Support python 2.7.X under linux platform.
-
diff --git a/ci/Dockerfile b/ci/Dockerfile
index ccbc51f..68e862e 100644
--- a/ci/Dockerfile
+++ b/ci/Dockerfile
@@ -1,3 +1,19 @@
+#
+# 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.
+#
FROM quay.io/pypa/manylinux1_x86_64:latest
RUN yum install -y wget curl gcc libtool unzip automake autoconf bzip2-devel && ln -s `which cmake28` /usr/bin/cmake
diff --git a/dev-requirements.txt b/dev-requirements.txt
index c04f831..08d8b97 100644
--- a/dev-requirements.txt
+++ b/dev-requirements.txt
@@ -1,3 +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.
+
pytest
pytest-timeout
pytest-faulthandler
diff --git a/manylinux.sh b/manylinux.sh
index f08dd7b..5bfac7f 100755
--- a/manylinux.sh
+++ b/manylinux.sh
@@ -1,5 +1,20 @@
#!/bin/bash
+# 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.
+
cp /usr/local/lib/librocketmq.so /io/rocketmq/librocketmq.so
# Build wheels
diff --git a/pytest.ini b/pytest.ini
index 826fdbb..800dfe6 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -1,3 +1,17 @@
+# 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.
[pytest]
testpaths = tests
timeout = 600
diff --git a/rocketmq/__init__.py b/rocketmq/__init__.py
index e69de29..2922526 100644
--- a/rocketmq/__init__.py
+++ b/rocketmq/__init__.py
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+#
+# 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.
\ No newline at end of file
diff --git a/rocketmq/client.py b/rocketmq/client.py
index 5f87080..3186d8f 100644
--- a/rocketmq/client.py
+++ b/rocketmq/client.py
@@ -1,4 +1,21 @@
# -*- coding: utf-8 -*-
+#
+# 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 sys
import ctypes
from ctypes import c_void_p, c_int, POINTER
diff --git a/rocketmq/consts.py b/rocketmq/consts.py
index 508d3c9..41b1b66 100644
--- a/rocketmq/consts.py
+++ b/rocketmq/consts.py
@@ -1,4 +1,21 @@
# -*- coding: utf-8 -*-
+#
+# 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.
from enum import Enum
diff --git a/rocketmq/exceptions.py b/rocketmq/exceptions.py
index 5beb83f..8b6d283 100644
--- a/rocketmq/exceptions.py
+++ b/rocketmq/exceptions.py
@@ -1,4 +1,21 @@
# -*- coding: utf-8 -*-
+#
+# 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 re
from .ffi import dll, _CStatus
diff --git a/rocketmq/ffi.py b/rocketmq/ffi.py
index d7710a6..033ec51 100644
--- a/rocketmq/ffi.py
+++ b/rocketmq/ffi.py
@@ -1,4 +1,21 @@
# -*- coding: utf-8 -*-
+#
+# 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 os
import sys
import ctypes
diff --git a/setup.cfg b/setup.cfg
index b7ac983..85298f9 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,3 +1,17 @@
+# 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.
[aliases]
release = sdist bdist_wheel
diff --git a/setup.py b/setup.py
index d2c52a6..08e6c4b 100755
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,22 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
+#
+# 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 os
import sys
import struct
diff --git a/tests/conftest.py b/tests/conftest.py
index 7a76032..ded4f2e 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,4 +1,21 @@
# -*- coding: utf-8 -*-
+#
+# 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 pytest
from rocketmq.client import Producer, PushConsumer, PullConsumer
diff --git a/tests/test_consumer.py b/tests/test_consumer.py
index fb408ab..3241701 100644
--- a/tests/test_consumer.py
+++ b/tests/test_consumer.py
@@ -1,4 +1,21 @@
# -*- coding: utf-8 -*-
+#
+# 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 time
import threading
diff --git a/tests/test_producer.py b/tests/test_producer.py
index 60b244c..2e740ff 100644
--- a/tests/test_producer.py
+++ b/tests/test_producer.py
@@ -1,4 +1,21 @@
# -*- coding: utf-8 -*-
+#
+# 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 time
import threading