From afca5e306be0bd2e748f689dc987fda785248526 Mon Sep 17 00:00:00 2001 From: Davide Casale Date: Thu, 26 Oct 2023 18:07:18 +0200 Subject: [PATCH] Add support for Python 3.11 (edit setup.py). --- setup.py | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/setup.py b/setup.py index 9951f6e..4abcb5e 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,10 @@ from distutils.core import setup -_version = {} -with open("bfxapi/_version.py", encoding="utf-8") as fp: - exec(fp.read(), _version) #pylint: disable=exec-used +_version = { } + +with open("bfxapi/_version.py", encoding="utf-8") as f: + #pylint: disable-next=exec-used + exec(f.read(), _version) setup( name="bitfinex-api-py", @@ -25,6 +27,7 @@ setup( "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", ], keywords="bitfinex,api,trading", project_urls={ @@ -32,10 +35,16 @@ setup( "Source": "https://github.com/bitfinexcom/bitfinex-api-py", }, packages=[ - "bfxapi", "bfxapi._utils", "bfxapi.types", - "bfxapi.websocket", "bfxapi.websocket._client", "bfxapi.websocket._handlers", - "bfxapi.websocket._event_emitter", - "bfxapi.rest", "bfxapi.rest.endpoints", "bfxapi.rest.middleware", + "bfxapi", + "bfxapi._utils", + "bfxapi.types", + "bfxapi.websocket", + "bfxapi.websocket._client", + "bfxapi.websocket._handlers", + "bfxapi.websocket._event_emitter", + "bfxapi.rest", + "bfxapi.rest.endpoints", + "bfxapi.rest.middleware", ], install_requires=[ "pyee~=9.0.4", @@ -44,4 +53,4 @@ setup( "urllib3~=1.26.14", ], python_requires=">=3.8" -) +) \ No newline at end of file