mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +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
|
||||
script:
|
||||
- python setup.py bdist_wheel
|
||||
- rm -r djangorestframework.egg-info # see #6139
|
||||
- tox --installpkg ./dist/djangorestframework-*.whl
|
||||
- tox # test sdist
|
||||
|
||||
|
@ -44,7 +45,7 @@ matrix:
|
|||
- env: DJANGO=2.1
|
||||
|
||||
install:
|
||||
- pip install tox tox-travis
|
||||
- pip install tox tox-venv tox-travis
|
||||
|
||||
script:
|
||||
- tox
|
||||
|
|
Loading…
Reference in New Issue
Block a user