Skip to content

Commit 19633ca

Browse files
edgarrmondragongreg-el
authored andcommitted
Avoid install types-requests at run-time
1 parent aee3830 commit 19633ca

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
5151
- name: MyPy
5252
run: |
53-
python -m pip install mypy
53+
python -m pip install -e .[typing]
5454
mypy snowplow_tracker --exclude '/test'
5555
5656
- name: Demo

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@
6666
],
6767
install_requires=[
6868
"requests>=2.25.1,<3.0",
69-
"types-requests>=2.25.1,<3.0",
7069
"typing_extensions>=3.7.4",
7170
],
71+
extras_require={
72+
"typing": [
73+
"mypy>=0.971",
74+
"types-requests>=2.25.1,<3.0",
75+
],
76+
},
7277
)

0 commit comments

Comments
 (0)