You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by iv...@apache.org on 2021/04/16 08:46:39 UTC
[ignite-python-thin-client] branch master updated: IGNITE-14564 Add
LICENSE and NOTICE files to all artifacts - Fixes #34.
This is an automated email from the ASF dual-hosted git repository.
ivandasch pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-python-thin-client.git
The following commit(s) were added to refs/heads/master by this push:
new 8b1e61c IGNITE-14564 Add LICENSE and NOTICE files to all artifacts - Fixes #34.
8b1e61c is described below
commit 8b1e61c87e423058a23112ceade542465d8f710f
Author: Ivan Daschinsky <iv...@apache.org>
AuthorDate: Fri Apr 16 11:46:01 2021 +0300
IGNITE-14564 Add LICENSE and NOTICE files to all artifacts - Fixes #34.
---
MANIFEST.in | 13 ++++++++-
NOTICE | 5 ++++
examples/docker-compose.yml | 36 +++++++++++++++++++++++++
examples/readme.md | 6 +++++
setup.py | 1 +
tests/affinity/test_affinity_request_routing.py | 2 +-
6 files changed, 61 insertions(+), 2 deletions(-)
diff --git a/MANIFEST.in b/MANIFEST.in
index 783a2fe..3f62aea 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,2 +1,13 @@
-recursive-include requirements *
+graft requirements
+graft examples
+graft docs
+recursive-exclude docs/generated *
+graft tests
+recursive-exclude tests/config *.xml
+recursive-exclude tests/logs *
+global-exclude *.py[cod]
+global-exclude *__pycache__*
+include tox.ini
include README.md
+include LICENSE
+include NOTICE
diff --git a/NOTICE b/NOTICE
new file mode 100644
index 0000000..feeebfd
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,5 @@
+Apache Ignite binary client Python API
+Copyright 2021 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
diff --git a/examples/docker-compose.yml b/examples/docker-compose.yml
new file mode 100644
index 0000000..76c91b3
--- /dev/null
+++ b/examples/docker-compose.yml
@@ -0,0 +1,36 @@
+# 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.
+
+services:
+ ignite_0:
+ image: apacheignite/ignite:latest
+ ports:
+ - 10800:10800
+ restart: always
+ network_mode: host
+
+ ignite_1:
+ image: apacheignite/ignite:latest
+ ports:
+ - 10800:10801
+ restart: always
+ network_mode: host
+
+ ignite_2:
+ image: apacheignite/ignite:latest
+ ports:
+ - 10800:10802
+ restart: always
+ network_mode: host
diff --git a/examples/readme.md b/examples/readme.md
index 3caf6c1..8fd4848 100644
--- a/examples/readme.md
+++ b/examples/readme.md
@@ -15,3 +15,9 @@ This directory contains the following example files:
For the explanation of the examples please refer to the
[Examples of usage](https://apache-ignite-binary-protocol-client.readthedocs.io/en/latest/examples.html)
section of the `pyignite` documentation.
+
+You can start Apache Ignite locally for running examples using `docker` and `docker-compose`
+```bash
+cd ./examples
+docker-compose up
+```
diff --git a/setup.py b/setup.py
index 4c2ab22..7a3cb70 100644
--- a/setup.py
+++ b/setup.py
@@ -121,6 +121,7 @@ def run_setup(with_binary=True):
'docs': requirements['docs'],
},
license="Apache License 2.0",
+ license_files=('LICENSE', 'NOTICE'),
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
diff --git a/tests/affinity/test_affinity_request_routing.py b/tests/affinity/test_affinity_request_routing.py
index 9c94aa4..90c71b2 100644
--- a/tests/affinity/test_affinity_request_routing.py
+++ b/tests/affinity/test_affinity_request_routing.py
@@ -413,7 +413,7 @@ async def test_new_registered_cache_affinity_async(async_client):
async with create_caches_async(async_client) as caches:
key = 12
test_cache = random.choice(caches)
- test_cache.put(key, key)
+ await test_cache.put(key, key)
await wait_for_affinity_distribution_async(test_cache, key, 3)
caches.append(await async_client.create_cache('new_cache'))