From e5d0abb07ce2c513a341f208d025c6ef488f0d38 Mon Sep 17 00:00:00 2001 From: Davide Casale Date: Thu, 14 Nov 2024 05:51:56 +0100 Subject: [PATCH] Add extras_require setting to setup.py. --- README.md | 5 +++++ setup.py | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0edadc3..9a0604a 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,11 @@ Official implementation of the [Bitfinex APIs (V2)](https://docs.bitfinex.com/do python3 -m pip install bitfinex-api-py ``` +If you intend to use mypy type hints in your project, use: +```console +python3 -m pip install bitfinex-api-py[typing] +``` + --- # Quickstart diff --git a/setup.py b/setup.py index 3862d96..0d82da9 100644 --- a/setup.py +++ b/setup.py @@ -45,9 +45,12 @@ setup( "pyee~=11.1.0", "websockets~=12.0", "requests~=2.32.3", - "types-requests~=2.31.0.10", - "types-urllib3~=1.26.25.14", ], + extras_require={ + "typing": [ + "types-requests~=2.32.0.20241016", + ] + }, python_requires=">=3.8", package_data={"bfxapi": ["py.typed"]}, )