Skip to content

Commit 7c906ff

Browse files
author
Jon Wayne Parrott
authored
Add warning about managing multiple versions with pipenv (pypa#430)
* Add warning about managing multiple versions with pipenv * Provide additional details on the version problem
1 parent 148903d commit 7c906ff

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

source/tutorials/managing-dependencies.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ testing environments for any kind of project.
2424
.. Note:: This guide is written for Python 3, however, these instructions
2525
should also work on Python 2.7.
2626

27-
2827
Installing Pipenv
2928
-----------------
3029

@@ -114,7 +113,17 @@ when you share your project with others. You should get output similar to this
114113
Adding requests to Pipfile's [packages]...
115114
P.S. You have excellent taste! ✨ 🍰 ✨
116115
116+
.. Warning:: Due to an `open issue with pipenv`_, it's not currently reliable
117+
to use ``pipenv`` to create environments for different Python versions
118+
(as environment marker conditions may not be processed correctly).
119+
The interpreter version you use in your project should be the same as the
120+
interpreter version used to install ``pipenv``.
121+
When testing against multiple versions with ``tox``, install ``pipenv``
122+
into each test environment, as described `here <pipenv-tox>`_.
123+
117124
.. _Requests: https://python-requests.org
125+
.. _open issue with pipenv: https://github.com/pypa/pipenv/issues/857
126+
.. _pipenv-tox: https://docs.pipenv.org/advanced/#tox-automation-project
118127

119128

120129
Using installed packages

0 commit comments

Comments
 (0)