Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies: Add support for Python 3.12 #133

Merged
merged 4 commits into from
Nov 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

services:
rabbitmq:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
rabbitmq: [latest]
include:
- python-version: '3.8'
Expand Down
12 changes: 9 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ repos:
types: [python]

- repo: https://github.com/PyCQA/pylint
rev: pylint-2.5.2
rev: 'v2.17.7'
hooks:
- id: pylint
additional_dependencies:
Expand All @@ -41,7 +41,7 @@ repos:
"deprecation",
"aio-pika~=6.6,<6.8.2",
"pamqp~=2.0",
"pyyaml~=5.1",
"pyyaml~=6.0",
"pytest~=5.4",
"pytest-notebook",
"pika",
Expand All @@ -53,10 +53,16 @@ repos:
"--disable=duplicate-code",
"--disable=import-outside-toplevel",
"--disable=missing-docstring",
"--disable=bad-continuation",
"--disable=locally-disabled",
"--disable=too-few-public-methods",
"--disable=too-many-arguments",
"--disable=too-many-instance-attributes",
"--disable=unspecified-encoding",
"--disable=consider-using-with",
"--disable=no-else-raise",
"--disable=raise-missing-from",
"--disable=not-async-context-manager",
"--disable=superfluous-parens",
"--disable=use-list-literal",
]
exclude: *exclude_files
6 changes: 5 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: '3.8'

python:
version: 3.8
install:
- method: pip
path: .
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Features
* Generic communicator interface with native support for RabbitMQ
* Supports task queues, broadcasts and RPC
* Support for both thread and coroutine based communication
* Python 3.7+ compatible.
* Python 3.8+ compatible.


Getting Started
Expand Down
2 changes: 1 addition & 1 deletion docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Installation
Python
------

KiwiPy supports Python versions 3.7 and above.
KiwiPy supports Python versions 3.8 and above.

RabbitMQ
--------
Expand Down
1 change: 1 addition & 0 deletions kiwipy/rmq/communicator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
# pylint: disable=cyclic-import
import asyncio
from functools import partial
import copy
Expand Down
1 change: 1 addition & 0 deletions kiwipy/rmq/tasks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
# pylint: disable=cyclic-import
import asyncio
import collections
import contextlib
Expand Down
2 changes: 1 addition & 1 deletion kiwipy/rmq/threadcomms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
# pylint: disable=cyclic-import
import asyncio
from contextlib import contextmanager
import concurrent.futures
Expand Down Expand Up @@ -132,7 +133,6 @@ def __init__(
"replacement and the class should be reinstantiated if it's been closed."
)
def start(self):
# pylint: disable=no-self-use
raise DeprecationWarning(
'This method was deprecated in v0.6.0 and will be removed in 0.7.0. There is no '
"replacement and the class should be reinstantiated if it's been closed."
Expand Down
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
keywords='communication messaging rpc broadcast',
install_requires=['shortuuid', 'async_generator', 'pytray>=0.2.2, <0.4.0', 'deprecation'],
python_requires='>=3.7',
python_requires='>=3.8',
extras_require={
'docs': [
'docutils',
Expand All @@ -40,7 +40,7 @@
'sphinx',
'sphinx-autobuild',
],
'pre-commit': ['pre-commit~=2.2', 'pylint==2.5.2'],
'pre-commit': ['pre-commit~=2.2'],
'rmq': ['aio-pika~=6.6,<6.8.2', 'pamqp~=2.0', 'pyyaml~=6.0'],
'tests': [
'coverage',
Expand All @@ -49,7 +49,7 @@
'pytest-cov',
'pytest~=6.0',
'pytest-asyncio~=0.12,<0.17',
'pytest-notebook>=0.8.1',
'pytest-notebook>=0.9.0',
'pytest-benchmark',
'pika',
'msgpack',
Expand Down
Loading