Skip to content

Commit f8cd537

Browse files
authored
Support python3.13, Update workflow (#55)
1 parent 8aad2aa commit f8cd537

File tree

7 files changed

+13
-22
lines changed

7 files changed

+13
-22
lines changed

.github/workflows/actions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ jobs:
3030
Write-Output $VERSION
3131
Write-Output "tag_name=$VERSION" >> $env:GITHUB_OUTPUT
3232
- name: Set up QEMU
33-
uses: docker/setup-qemu-action@v1.2.0
33+
uses: docker/setup-qemu-action@v3
3434
if: ${{ startsWith( matrix.os, 'ubuntu' ) }}
3535
with:
3636
image: tonistiigi/binfmt:latest
3737
platforms: all
3838
- name: Build wheels
39-
uses: pypa/cibuildwheel@v2.16.2
39+
uses: pypa/cibuildwheel@v2.21.3
4040
with:
4141
package-dir: .
4242
output-dir: wheelhouse
4343
config-file: pyproject.toml
4444
- name: Release wheels
45-
uses: softprops/action-gh-release@v1
45+
uses: softprops/action-gh-release@v2
4646
with:
4747
files: wheelhouse/*.whl
4848
generate_release_notes: true

.github/workflows/test.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,18 @@ jobs:
1515
matrix:
1616
use-numpy:
1717
- 0
18+
- 1
1819
python-version:
19-
# - "3.5" ,In this old version, example have a syntax error:E999
20-
- "3.6"
21-
- "3.7"
2220
- "3.8"
2321
- "3.9"
2422
- "3.10"
2523
- "3.11"
2624
- "3.12"
2725
- "3.13"
28-
- "pypy-3.6"
29-
- "pypy-3.7"
30-
- "pypy-3.8"
3126
- "pypy-3.9"
3227
- "pypy-3.10"
3328
proton-version:
3429
- "latest"
35-
include:
36-
- proton-version: "latest"
37-
python-version: "3.8"
38-
use-numpy: 1
3930

4031
name: ${{ matrix.python-version }} PROTON=${{ matrix.proton-version }} NUMPY=${{ matrix.use-numpy }}
4132
steps:

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This project provides python driver to interact with Timeplus Proton or Timeplus
1111

1212
Installation
1313
------------
14-
Timeplus Python Driver currently supports the following versions of Python: 3.8, 3.9, 3.10, 3.11 and 3.12.
14+
Timeplus Python Driver currently supports the following versions of Python: 3.8, 3.9, 3.10, 3.11, 3.12 and 3.13.
1515

1616
Installing with pip
1717
We recommend creating a virtual environment when installing Python dependencies. For more information on setting up a virtual environment, see the `Python documentation <https://docs.python.org/3.9/tutorial/venv.html>`_.

example/descriptive_pipeline/server/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121

2222
class Pipeline(BaseModel):
23-
name: str
23+
name: str # noqa
2424
sqls: list[str] # noqa
2525

2626

proton_driver/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from .dbapi import connect
44

55

6-
VERSION = (0, 2, 10)
6+
VERSION = (0, 2, 11)
77
__version__ = '.'.join(str(x) for x in VERSION)
88

99
__all__ = ['Client', 'connect']

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@ def read_version():
9595

9696
'Programming Language :: SQL',
9797
'Programming Language :: Python :: 3',
98-
'Programming Language :: Python :: 3.5',
99-
'Programming Language :: Python :: 3.6',
100-
'Programming Language :: Python :: 3.7',
10198
'Programming Language :: Python :: 3.8',
10299
'Programming Language :: Python :: 3.9',
103100
'Programming Language :: Python :: 3.10',
101+
'Programming Language :: Python :: 3.11',
102+
'Programming Language :: Python :: 3.12',
103+
'Programming Language :: Python :: 3.13',
104104
'Programming Language :: Python :: Implementation :: PyPy',
105105

106106
'Topic :: Database',
@@ -114,7 +114,7 @@ def read_version():
114114
keywords='Proton db database cloud analytics',
115115

116116
packages=find_packages('.', exclude=['tests*']),
117-
python_requires='>=3.4, <4',
117+
python_requires='>=3.8, <4',
118118
install_requires=[
119119
'pytz',
120120
'tzlocal',

tests/test_query_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ def test_last_query_after_execute_with_progress(self):
7272
self.assertEqual(last_query.elapsed, 0)
7373

7474
def test_last_query_progress_total_rows(self):
75-
self.client.execute('SELECT max(number) FROM numbers(10) LIMIT 10')
75+
self.client.execute('SELECT number FROM numbers(10) LIMIT 10')
7676

7777
last_query = self.client.last_query
7878
self.assertIsNotNone(last_query)
7979
self.assertIsNotNone(last_query.profile_info)
80-
self.assertEqual(last_query.profile_info.rows_before_limit, 1)
80+
self.assertEqual(last_query.profile_info.rows_before_limit, 10)
8181

8282
self.assertIsNotNone(last_query.progress)
8383
self.assertEqual(last_query.progress.rows, 10)

0 commit comments

Comments
 (0)