Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update virtualenv to 20.0.3 #13481

Closed
wants to merge 3 commits into from

Conversation

pyup-bot
Copy link
Contributor

This PR updates virtualenv from 16.7.9 to 20.0.3.

Changelog

20.0.3

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Document a programmatic API as ``from virtualenv import cli_run`` under :ref:`programmatic_api` -
by :user:`gaborbernat`. (`1585 <https://github.com/pypa/virtualenv/issues/1585>`_)

20.0.2

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Add link to the `legacy documentation <https://virtualenv.pypa.io/en/legacy>`_ for the changelog by :user:`jezdez`. (`1547 <https://github.com/pypa/virtualenv/issues/1547>`_)
- Fine tune the documentation layout: default width of theme, allow tables to wrap around, soft corners for code snippets
- by :user:`pradyunsg`. (`1548 <https://github.com/pypa/virtualenv/issues/1548>`_)

20.0.1

~~~~~~~~~~~~~~~~~
- Virtual environments created via relative path on Windows creates bad console executables - by :user:`gaborbernat`. (`1552 <https://github.com/pypa/virtualenv/issues/1552>`_)
- Seems sometimes venvs created set their base executable to themselves; we accept these without question, so we handle
virtual environments as system pythons causing issues - by :user:`gaborbernat`. (`1553 <https://github.com/pypa/virtualenv/issues/1553>`_)


v20.0.0. (2020-02-10)
---------------------

Improved Documentation - 20.0.0.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Fixes typos, repeated words and inconsistent heading spacing. Rephrase parts of the development documentation and CLI
documentation. Expands shorthands like ``env var`` and ``config`` to their full forms. Uses descriptions from respective
documentation, for projects listed in ``related links`` - by :user:`pradyunsg`. (`1540 <https://github.com/pypa/virtualenv/issues/1540>`_)

20.0.0b2

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Create the first iteration of the new documentation - by :user:`gaborbernat`. (`1465 <https://github.com/pypa/virtualenv/issues/1465>`_)
- Project readme is now of type MarkDown instead of reStructuredText - by :user:`gaborbernat`. (`1531 <https://github.com/pypa/virtualenv/issues/1531>`_)

20.0.0b1

----------------------

* First public release of the rewrite. Everything is brand new and just added.

.. warning::

The current virtualenv is the second iteration of implementation. From version ``0.8`` all the way to ``16.7.9``
we numbered the first iteration. Version ``20.0.0b1`` is a complete rewrite of the package, and as such this release
history starts from there. The old changelog is still available in the
`legacy branch documentation <https://virtualenv.pypa.io/en/legacy/changes.html>`_.
Links

@EnTeQuAk
Copy link
Contributor

I tried to investigate but couldn't figure out what the issue here is for now.

We're running into

olympia@05efd1e33d3c:/code$ tox -e codestyle
GLOB sdist-make: /code/setup.py
codestyle recreate: /code/.tox/codestyle
codestyle inst: /code/.tox/.tmp/package/3/olympia-0.1.0.zip
WARNING: test command found but not installed in testenv
  cmd: /deps/bin/pip
  env: /code/.tox/codestyle
Maybe you forgot to specify a dependency? See also the whitelist_externals envconfig setting.

DEPRECATION WARNING: this will be an error in tox 4 and above!

issues.

I tried to explicitly make use of python binary to use pip and other tools but that didn't help.

diff --git a/.travis.yml b/.travis.yml
index 6f88d3cdf5..d3348ba737 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -62,7 +62,7 @@ install:
   - nvm deactivate
   - nvm install 8
   - nvm use 8
-  - pip install --no-deps -r requirements/travis_base.txt
+  - python -m pip install --no-deps -r requirements/travis_base.txt
 
 before_script:
   - mysql --version
diff --git a/tox.ini b/tox.ini
index 6a2b2d8e59..8b1e9ffc83 100644
--- a/tox.ini
+++ b/tox.ini
@@ -12,39 +12,39 @@ whitelist_externals =
     make
     npm
     bash
-    pytest
+    python

 [testenv:es]
 commands =
     make install_python_test_dependencies
-    pytest -m "es_tests and not needs_locales_compilation and not static_assets" -v src/olympia/ {posargs}
+    python -m pytest -m "es_tests and not needs_locales_compilation and not static_assets" -v src/olympia/ {posargs}

 [testenv:addons-versions-files-ratings]
 commands =
     make install_python_test_dependencies
-    pytest -n 2 -m 'not es_tests and not needs_locales_compilation and not static_assets' -v src/olympia/addons/ src/olympia/versions/ src/olympia/files/  src/olympia/ratings/ {posargs}
+    python -m pytest -n 2 -m 'not es_tests and not needs_locales_compilation and not static_assets' -v src/olympia/addons/ src/olympia/versions/ src/olympia/files/  src/olympia/ratings/ {posargs}

 [testenv:devhub]
 commands =
     make install_python_test_dependencies install_node_dependencies
-    pytest -n 2 -m 'not es_tests and not needs_locales_compilation and not static_assets' -v src/olympia/devhub/ {posargs}
+    python -m pytest -n 2 -m 'not es_tests and not needs_locales_compilation and not static_assets' -v src/olympia/devhub/ {posargs}

 [testenv:reviewers-and-zadmin]
 commands =
     make install_python_test_dependencies
-    pytest -n 2 -m 'not es_tests and not needs_locales_compilation and not static_assets' -v src/olympia/reviewers/ src/olympia/zadmin/ {posargs}
+    python -m pytest -n 2 -m 'not es_tests and not needs_locales_compilation and not static_assets' -v src/olympia/reviewers/ src/olympia/zadmin/ {posargs}

 [testenv:amo-lib-locales-and-signing]
 commands =
     make install_python_test_dependencies install_node_dependencies
-    pytest -n 2 -m 'not es_tests and not needs_locales_compilation and not static_assets' -v src/olympia/amo/ src/olympia/lib/ src/olympia/signing {posargs}
+    python -m pytest -n 2 -m 'not es_tests and not needs_locales_compilation and not static_assets' -v src/olympia/amo/ src/olympia/lib/ src/olympia/signing {posargs}
     bash {toxinidir}/locale/compile-mo.sh {toxinidir}/locale/
-    pytest -n 2 -m 'needs_locales_compilation' -v src/olympia/ {posargs}
+    python -m pytest -n 2 -m 'needs_locales_compilation' -v src/olympia/ {posargs}

 [testenv:main]
 commands =
     make install_python_test_dependencies install_node_dependencies
-    pytest -n 2 -m 'not es_tests and not needs_locales_compilation and not static_assets' -v src/olympia/ \
+    python -m pytest -n 2 -m 'not es_tests and not needs_locales_compilation and not static_assets' -v src/olympia/ \
         --ignore src/olympia/addons/ \
         --ignore src/olympia/devhub/ \
         --ignore src/olympia/files/ \
@@ -61,7 +61,7 @@ commands =
 [testenv:assets]
 commands =
     make update_deps
-    pytest -m "static_assets" -v src/olympia/ {posargs}
+    python -m pytest -m "static_assets" -v src/olympia/ {posargs}

 [testenv:codestyle]
 recreate = True
@@ -71,5 +71,5 @@ commands =

 [testenv:docs]
 commands =
-    pip install --no-deps -r requirements/docs.txt
+    python -m pip install --no-deps -r requirements/docs.txt
     make docs

tox-dev/tox#1516 mentions this but related issues should have been fixed with virtualenv 20.0.3 so this seems to be something else. I wonder if we're doing something weird but I couldn't see anything out of place for now.

@EnTeQuAk
Copy link
Contributor

Closing in favor of #13579

@EnTeQuAk EnTeQuAk closed this Feb 26, 2020
@EnTeQuAk EnTeQuAk deleted the pyup-update-virtualenv-16.7.9-to-20.0.3 branch February 26, 2020 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants