Skip to content

Commit 2045564

Browse files
Avoid install types-requests at run-time
1 parent b75934a commit 2045564

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
4444
- name: MyPy
4545
run: |
46-
python -m pip install mypy
46+
python -m pip install -e .[typing]
4747
mypy snowplow_tracker --exclude '/test'
4848
4949
- name: Demo

setup.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@
6868
],
6969
install_requires=[
7070
"requests>=2.25.1,<3.0",
71-
"types-requests>=2.25.1,<3.0",
7271
"typing_extensions>=3.7.4",
7372
],
73+
extras_require={
74+
"typing": [
75+
"mypy>=0.971",
76+
"types-requests>=2.25.1,<3.0",
77+
],
78+
},
7479
)

0 commit comments

Comments
 (0)