Skip to content

Commit

Permalink
Merge pull request #5 from antonmyronyuk/py-311
Browse files Browse the repository at this point in the history
Add python 3.11 support
  • Loading branch information
antonmyronyuk authored Oct 28, 2022
2 parents 2109996 + 18d487d commit 79ae44c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
timeout-minutes: 10
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

steps:
- name: Checkout repository code
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This library is released under the terms of the Apache 2.0 license. See [License

## Library Prerequisites

1. python >= 3.6.0
1. python >= 3.7.0
1. An Active Viber account on a platform which supports Public Accounts/ bots (iOS/Android). This account will automatically be set as the account administrator during the account creation process.
1. Active Public Account/bot - Create an account [here](https://partners.viber.com/account/create-bot-account).
1. Account authentication token - unique account identifier used to validate your account in all API requests. Once your account is created your authentication token will appear in the account’s “edit info” screen (for admins only). Each request posted to Viber by the account will need to contain the token.
Expand Down
1 change: 0 additions & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
pytest
pytest-aiohttp
asynctest
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def readfile(filename) -> str:
packages=['aioviberbot', 'aioviberbot.api', 'aioviberbot.api.viber_requests',
'aioviberbot.api.messages', 'aioviberbot.api.messages.data_types'],
install_requires=['aiohttp'],
tests_require=['pytest', 'pytest-aiohttp', 'asynctest'],
tests_require=['pytest', 'pytest-aiohttp'],
url='https://github.com/antonmyronyuk/aioviberbot',
author='Anton Myronyuk',
author_email='antonmyronyuk@gmail.com',
Expand All @@ -28,13 +28,13 @@ def readfile(filename) -> str:
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'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',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
],
python_requires='>=3.6',
python_requires='>=3.7',
)
2 changes: 1 addition & 1 deletion tests/api/test_api_request_sender.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import json
import logging
from unittest.mock import patch

import aiohttp
import pytest
from asynctest.mock import patch

from aioviberbot.api.api_request_sender import ApiRequestSender
from aioviberbot.api.bot_configuration import BotConfiguration
Expand Down

0 comments on commit 79ae44c

Please sign in to comment.