From f30557e3f44d347debc332c9bb9080c35a9ebffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez-Mondrag=C3=B3n?= Date: Thu, 29 Aug 2024 02:25:43 -0600 Subject: [PATCH] Avoid install `types-requests` at run-time --- .github/workflows/ci.yml | 2 +- setup.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a285a2d9..8f9d1cc7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,7 +43,7 @@ jobs: - name: MyPy run: | - python -m pip install mypy + python -m pip install -e .[typing] mypy snowplow_tracker --exclude '/test' - name: Demo diff --git a/setup.py b/setup.py index 4b180da6..980af885 100644 --- a/setup.py +++ b/setup.py @@ -68,7 +68,12 @@ ], install_requires=[ "requests>=2.25.1,<3.0", - "types-requests>=2.25.1,<3.0", "typing_extensions>=3.7.4", ], + extras_require={ + "typing": [ + "mypy>=1.11", + "types-requests>=2.25.1,<3.0", + ], + }, )