From 82ebca6dbd3ee73baca43ec1c8f1ec6bedf40047 Mon Sep 17 00:00:00 2001 From: Jon Wayne Parrott Date: Fri, 9 Feb 2018 10:03:49 -0800 Subject: [PATCH 1/2] Add warning about managing multiple versions with pipenv --- source/tutorials/managing-dependencies.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/tutorials/managing-dependencies.rst b/source/tutorials/managing-dependencies.rst index 0d4ec8288..622b40279 100644 --- a/source/tutorials/managing-dependencies.rst +++ b/source/tutorials/managing-dependencies.rst @@ -24,7 +24,6 @@ testing environments for any kind of project. .. Note:: This guide is written for Python 3, however, these instructions should also work on Python 2.7. - Installing Pipenv ----------------- @@ -114,8 +113,13 @@ when you share your project with others. You should get output similar to this Adding requests to Pipfile's [packages]... P.S. You have excellent taste! ✨ 🍰 ✨ -.. _Requests: https://python-requests.org +.. Warning:: Due to an `open issue with pipenv`_, it's not presently possible + to use ``pipenv`` to create environments for different Python versions. The + interpreter version you use in your project should be the same as the + interpreter version used to install ``pipenv``. +.. _Requests: https://python-requests.org +.. _open issue with pipenv: https://github.com/pypa/pipenv/issues/857 Using installed packages ------------------------ From 59ab8f704dc1ce1ad9e37369f88055892a093481 Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Sat, 10 Feb 2018 13:01:22 +1000 Subject: [PATCH 2/2] Provide additional details on the version problem --- source/tutorials/managing-dependencies.rst | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/source/tutorials/managing-dependencies.rst b/source/tutorials/managing-dependencies.rst index 622b40279..4ea9b372b 100644 --- a/source/tutorials/managing-dependencies.rst +++ b/source/tutorials/managing-dependencies.rst @@ -113,13 +113,18 @@ when you share your project with others. You should get output similar to this Adding requests to Pipfile's [packages]... P.S. You have excellent taste! ✨ 🍰 ✨ -.. Warning:: Due to an `open issue with pipenv`_, it's not presently possible - to use ``pipenv`` to create environments for different Python versions. The - interpreter version you use in your project should be the same as the +.. Warning:: Due to an `open issue with pipenv`_, it's not currently reliable + to use ``pipenv`` to create environments for different Python versions + (as environment marker conditions may not be processed correctly). + The interpreter version you use in your project should be the same as the interpreter version used to install ``pipenv``. + When testing against multiple versions with ``tox``, install ``pipenv`` + into each test environment, as described `here `_. .. _Requests: https://python-requests.org .. _open issue with pipenv: https://github.com/pypa/pipenv/issues/857 +.. _pipenv-tox: https://docs.pipenv.org/advanced/#tox-automation-project + Using installed packages ------------------------