Fix packaging (#145)

* Fix packaging

* fix type hint
pull/147/head
Zaida Zhou 2022-06-27 22:44:44 +08:00 committed by GitHub
parent b449e97c18
commit b46d2c9119
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -16,8 +16,10 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install wheel
run: pip install wheel
- name: Build MIM
run: python setup.py sdist
run: python setup.py sdist bdist_wheel
- name: Publish distribution to PyPI
run: |
pip install twine

1
MANIFEST.in 100644
View File

@ -0,0 +1 @@
include requirements/*.txt

View File

@ -222,11 +222,11 @@ def patch_importlib_distribution(index_url: Optional[str] = None) -> Generator:
deps += self._mm_deps
return deps
Distribution.iter_dependencies = patched_iter_dependencies
Distribution.iter_dependencies = patched_iter_dependencies # type: ignore
try:
yield
finally:
Distribution.iter_dependencies = origin_iter_dependencies
Distribution.iter_dependencies = origin_iter_dependencies # type: ignore # noqa: E501
def filter_invalid_marker(extra_requires: List) -> None: