diff --git a/.github/workflows/sqlite_build.yaml b/.github/workflows/sqlite_build.yaml index 231d7f5..8153b3d 100644 --- a/.github/workflows/sqlite_build.yaml +++ b/.github/workflows/sqlite_build.yaml @@ -9,7 +9,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, windows-latest, ubuntu-latest] - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.8', 'pypy-3.9'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.8', 'pypy-3.9', 'pypy3.10'] steps: - name: Checkout diff --git a/requirements.txt b/requirements.txt index 4364251..759e0ec 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ -billiard==4.2.0 +billiard==4.2.1 click==8.1.7 -msgpack==1.0.8 -pyzmq==26.0.3 -tornado==6.4.1 +msgpack==1.1.0 +pyzmq==26.2.0 +tornado==6.4.2 diff --git a/requirements_dev.txt b/requirements_dev.txt index 1f972cb..65512fa 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,7 +1,7 @@ -coverage==7.5.3 +coverage pip build wheel -pytest==8.2.2 +pytest setuptools twine diff --git a/setup.cfg b/setup.cfg index 5addfc7..c1c9de3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = sqlite_rx -version = 1.2.1 +version = 1.2.2 description = Python SQLite Client and Server long_description = file: README.md long_description_content_type = text/markdown @@ -21,6 +21,7 @@ classifiers = Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 Programming Language :: Python :: 3.12 + Programming Language :: Python :: 3.13 Operating System :: POSIX :: Linux Operating System :: Unix Operating System :: Microsoft :: Windows @@ -47,13 +48,13 @@ include_package_data = True scripts = bin/curve-keygen install_requires = - billiard==4.2.0 - msgpack==1.0.8 - pyzmq==26.0.3 - tornado==6.4.1 + billiard==4.2.1 + msgpack==1.1.0 + pyzmq==26.2.0 + tornado==6.4.2 test_require = - pytest==8.2.2 - coverage==7.3.2 + pytest + coverage python_requires = >=3.8 [options.packages.find] @@ -68,7 +69,7 @@ console_scripts = [options.extras_require] cli = click==8.1.7 - rich==13.7.1 + rich==13.9.3 pygments==2.18.0 [coverage:run] diff --git a/setup.py b/setup.py index f0d690d..0030574 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() -VERSION = '1.2.1' +VERSION = '1.2.2' DISTNAME = 'sqlite_rx' LICENSE = 'MIT License' AUTHOR = 'Abhishek Singh' @@ -25,15 +25,15 @@ PACKAGES = ['sqlite_rx'] -INSTALL_REQUIRES = ['msgpack==1.0.8', - 'pyzmq==26.0.3', - 'tornado==6.4.1', - 'billiard==4.2.0'] +INSTALL_REQUIRES = ['msgpack==1.1.0', + 'pyzmq==26.2.0', + 'tornado==6.4.2', + 'billiard==4.2.1'] -CLI_REQUIRES = ['click==8.1.7', 'rich==13.7.1', 'pygments==2.18.0'] +CLI_REQUIRES = ['click==8.1.7', 'rich==13.9.3', 'pygments==2.18.0'] -TEST_REQUIRE = ['pytest==8.2.2', - 'coverage==7.5.3'] +TEST_REQUIRE = ['pytest', + 'coverage'] classifiers = [ 'Topic :: Database :: Database Engines/Servers', @@ -49,6 +49,7 @@ 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', 'Operating System :: POSIX :: Linux', 'Operating System :: Unix', 'Operating System :: Microsoft :: Windows', diff --git a/sqlite_rx/server.py b/sqlite_rx/server.py index b7ef77a..7e0e814 100644 --- a/sqlite_rx/server.py +++ b/sqlite_rx/server.py @@ -4,6 +4,7 @@ import socket import sqlite3 import sys +import threading import traceback import zlib from signal import SIGTERM, SIGINT, signal @@ -190,8 +191,9 @@ def run(self): LOG.info("SQLiteServer version %s", get_version()) LOG.info("SQLiteServer (Tornado) i/o loop started..") + LOG.info("Backup thread %s", self.back_up_recurring_thread) - if self.back_up_recurring_thread: + if self.back_up_recurring_thread and not self.back_up_recurring_thread.is_alive(): self.back_up_recurring_thread.start() LOG.info("Ready to accept client connections on %s", self._bind_address)