Skip to content

Commit ac12197

Browse files
committed
IGNITE-17023 Remove Python 3.6, add 3.10.
This closes #52
1 parent a1a920e commit ac12197

17 files changed

Lines changed: 31 additions & 30 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ junit*.xml
1313
pyignite.egg-info
1414
ignite-log-*
1515
__pycache__
16+
venv

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ addons:
2323

2424
env:
2525
global:
26-
- IGNITE_VERSION=2.12.0
26+
- IGNITE_VERSION=2.13.0
2727
- IGNITE_HOME=/opt/ignite
2828

2929
before_install:
@@ -34,9 +34,6 @@ before_install:
3434

3535
jobs:
3636
include:
37-
- python: '3.6'
38-
arch: amd64
39-
env: TOXENV=py36
4037
- python: '3.7'
4138
arch: amd64
4239
env: TOXENV=py37
@@ -49,6 +46,9 @@ jobs:
4946
- python: '3.9'
5047
arch: amd64
5148
env: TOXENV=py39
49+
- python: '3.10'
50+
arch: amd64
51+
env: TOXENV=py310
5252

5353
install: pip install tox
5454
script: tox

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Apache Ignite thin (binary protocol) client, written in Python 3.
33

44
## Prerequisites
55

6-
- Python 3.6 or above (3.6, 3.7, 3.8 and 3.9 are tested),
6+
- Python 3.7 or above (3.7, 3.8, 3.9 and 3.10 are tested),
77
- Access to Apache Ignite node, local or remote. The current thin client
88
version was tested on Apache Ignite 2.10 (binary client protocol 1.7.0).
99

@@ -45,12 +45,12 @@ There is an optional C extension to speedup some computational intensive tasks.
4545

4646
***NB!* Docker is required.**
4747

48-
- On Windows MSVC 14.x required, and it should be in path, also python versions 3.6, 3.7, 3.8 and 3.9 both for x86 and
48+
- On Windows MSVC 14.x required, and it should be in path, also python versions 3.7, 3.8, 3.9 and 3.10 both for x86 and
4949
x86-64 should be installed. You can disable some of these versions but you'd need to edit script for that.
5050
- For building `wheels` for Windows, invoke script `.\scripts\BuildWheels.ps1` using PowerShell. Just make sure that
5151
your execution policy allows execution of scripts in your environment.
5252

53-
Ready wheels for `x86` and `x86-64` for different python versions (3.6, 3.7, 3.8 and 3.9) will be
53+
Ready wheels for `x86` and `x86-64` for different python versions (3.7, 3.8, 3.9 and 3.10) will be
5454
located in `distr` directory.
5555

5656
### Updating from older version

docs/readme.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ through a raw TCP socket.
3535
Prerequisites
3636
-------------
3737

38-
- *Python 3.6* or above (3.6, 3.7, 3.8 and 3.9 are tested),
38+
- *Python 3.7* or above (3.7, 3.8, 3.9 and 3.10 are tested),
3939
- Access to *Apache Ignite* node, local or remote. The current thin client
40-
version was tested on *Apache Ignite 2.10.0* (binary client protocol 1.7.0).
40+
version was tested on *Apache Ignite 2.13.0* (binary client protocol 1.7.0).
4141

4242
Installation
4343
------------

docs/source/pyignite.connection.protocol_context.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
limitations under the License.
1515
1616
pyignite.connection.protocol_context package
17-
===========================
17+
============================================
1818

1919
.. automodule:: pyignite.connection.protocol_context
2020
:members:

examples/docker-compose.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,22 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
version: "3"
1617
services:
1718
ignite_0:
1819
image: apacheignite/ignite:latest
1920
ports:
2021
- 10800:10800
2122
restart: always
22-
network_mode: host
2323

2424
ignite_1:
2525
image: apacheignite/ignite:latest
2626
ports:
27-
- 10800:10801
27+
- 10801:10800
2828
restart: always
29-
network_mode: host
3029

3130
ignite_2:
3231
image: apacheignite/ignite:latest
3332
ports:
34-
- 10800:10802
33+
- 10802:10800
3534
restart: always
36-
network_mode: host

examples/readme.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22

33
This directory contains the following example files:
44

5+
- `async_key_value` - asynchronous key-value operations,
6+
- `async_sql` - asynchronous SQL operations,
57
- `binary_basics.py` − basic operations with Complex objects,
6-
- `binary_types.py` - read SQL table as a key-value cache,
78
- `create_binary.py` − create SQL row with key-value operation,
9+
- `expiry_policy.py` - the expiration policy for caches for synchronous and asynchronous operations is demonstrated,
810
- `failover.py` − fail-over connection to Ignite cluster,
911
- `get_and_put.py` − basic key-value operations,
12+
- `get_and_put_complex.py` − key-value operations with different value and key types,
1013
- `migrate_binary.py` − work with Complex object schemas,
14+
- `read_binary.py` − creates caches and fills them with data through SQL queries, demonstrates working with binary objects,
1115
- `scans.py` − cache scan operation,
1216
- `sql.py` − use Ignite SQL,
1317
- `type_hints.py` − type hints.

pyignite/datatypes/standard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import decimal
1919
from io import SEEK_CUR
2020
from math import ceil
21-
from typing import Tuple
21+
from typing import Tuple, Union
2222
import uuid
2323

2424
from pyignite.constants import *
@@ -365,7 +365,7 @@ def build_c_type(cls):
365365
return cls._object_c_type
366366

367367
@classmethod
368-
def from_python_not_null(cls, stream, value: [date, datetime], **kwargs):
368+
def from_python_not_null(cls, stream, value: Union[date, datetime], **kwargs):
369369
if type(value) is date:
370370
value = datetime.combine(value, time())
371371
data_type = cls.build_c_type()

pyignite/monitoring.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ def on_query_success(self, event):
5656
5757
.. note:: Debug logging is also available, standard ``logging`` is used. Just set ``DEBUG`` level to
5858
*pyignite* logger.
59-
|
60-
|
6159
"""
6260
from typing import Optional, Sequence
6361

requirements/docs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33

44
-r install.txt
55
wheel==0.36.2
6-
Sphinx==1.7.5
6+
Sphinx==4.3.2
77
sphinxcontrib-fulltoc==1.2.0

0 commit comments

Comments
 (0)