mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-05-08 01:43:43 +03:00
Fix dist build (#6139)
* Use tox-venv to reduce warnings in output * Remove .egg-info/ to allow wheel installation tox now invokes pip as a python module instead of through its entry point. "python -m" adds the current directory to the PYTHONPATH, picking up the .egg-info/ metadata directory, tricking pip into thinking that the package is already installed (and thus not installing the wheel). Deleting the metadata directory fixes this.
This commit is contained in:
parent
90ed2c1ef7
commit
c4b068cfd3
|
@ -29,6 +29,7 @@ matrix:
|
||||||
env: TOXENV=dist
|
env: TOXENV=dist
|
||||||
script:
|
script:
|
||||||
- python setup.py bdist_wheel
|
- python setup.py bdist_wheel
|
||||||
|
- rm -r djangorestframework.egg-info # see #6139
|
||||||
- tox --installpkg ./dist/djangorestframework-*.whl
|
- tox --installpkg ./dist/djangorestframework-*.whl
|
||||||
- tox # test sdist
|
- tox # test sdist
|
||||||
|
|
||||||
|
@ -44,7 +45,7 @@ matrix:
|
||||||
- env: DJANGO=2.1
|
- env: DJANGO=2.1
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install tox tox-travis
|
- pip install tox tox-venv tox-travis
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- tox
|
- tox
|
||||||
|
|
Loading…
Reference in New Issue
Block a user