mirror of
https://github.com/open-mmlab/mim.git
synced 2025-06-03 14:59:11 +08:00
parent
b449e97c18
commit
b46d2c9119
4
.github/workflows/publish-to-pypi.yml
vendored
4
.github/workflows/publish-to-pypi.yml
vendored
@ -16,8 +16,10 @@ jobs:
|
|||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.7
|
||||||
|
- name: Install wheel
|
||||||
|
run: pip install wheel
|
||||||
- name: Build MIM
|
- name: Build MIM
|
||||||
run: python setup.py sdist
|
run: python setup.py sdist bdist_wheel
|
||||||
- name: Publish distribution to PyPI
|
- name: Publish distribution to PyPI
|
||||||
run: |
|
run: |
|
||||||
pip install twine
|
pip install twine
|
||||||
|
1
MANIFEST.in
Normal file
1
MANIFEST.in
Normal file
@ -0,0 +1 @@
|
|||||||
|
include requirements/*.txt
|
@ -222,11 +222,11 @@ def patch_importlib_distribution(index_url: Optional[str] = None) -> Generator:
|
|||||||
deps += self._mm_deps
|
deps += self._mm_deps
|
||||||
return deps
|
return deps
|
||||||
|
|
||||||
Distribution.iter_dependencies = patched_iter_dependencies
|
Distribution.iter_dependencies = patched_iter_dependencies # type: ignore
|
||||||
try:
|
try:
|
||||||
yield
|
yield
|
||||||
finally:
|
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:
|
def filter_invalid_marker(extra_requires: List) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user