diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index 8dad68ab20..566647d689 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -58,8 +58,11 @@ jobs: cache-dependency-path: 'setup.py' - name: Install dependencies run: | - python -m pip install -U pip mypy==0.990 - pip install -e ".[zstd, encryption, ocsp]" + python -m pip install -U pip==23.0.1 + python -m pip install mypy==0.990 tomli==2.0.1 typed-ast==1.5.4 typing-extensions==4.5.0 + python -m pip install -e ".[zstd, encryption, ocsp]" + python -m pip uninstall -y pymongo + python -m pip freeze - name: Run mypy run: | mypy --install-types --non-interactive bson gridfs tools pymongo diff --git a/MANIFEST.in b/MANIFEST.in index d017d16ab0..1d5f6fb675 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -12,3 +12,7 @@ include tools/README.rst recursive-include test *.pem recursive-include test *.py recursive-include bson *.h +recursive-include bson *.pyi +recursive-include bson *.typed +recursive-include gridfs *.typed +recursive-include pymongo *.typed