-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Doc update - recommend use venv instead of virtualenv #4813
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
Conversation
From the Python docs: "Changed in version 3.5: The use of venv is now recommended for creating virtual environments." -https://docs.python.org/3/library/venv.html
update links for virtualenv -> venv
doc/en/goodpractices.rst
Outdated
------------------------------------------------- | ||
|
||
For development, we recommend to use virtualenv_ environments and pip_ | ||
For development, we recommend you use venv_ for virtual environments and pip_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Bjwebb!
Good suggestion, but because we still support Python 2.7 and 3.4, I believe we should mention both, perhaps like this:
we recommend you use venv[link] for virtual environments (or virtualenv[link] for Python 2.7 and 3.4) and pip ...
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good thought!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated PR to mention virtualenv for Python 2.7.
Python 3.4 comes with venv, so I just mentioned 2.7 needing virtualenv. Source.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks @discdiver!
`venv` is already available in Python 3.4, my mistake
Codecov Report
@@ Coverage Diff @@
## master #4813 +/- ##
==========================================
- Coverage 95.77% 93.91% -1.86%
==========================================
Files 113 113
Lines 25652 25145 -507
Branches 2505 2495 -10
==========================================
- Hits 24567 23616 -951
- Misses 769 1186 +417
- Partials 316 343 +27
Continue to review full report at Codecov.
|
Merging as docs have passed already. 👍 |
Recommend use venv instead of virtualenv
From the Python docs:
"Changed in version 3.5: The use of venv is now recommended for creating virtual environments."
-https://docs.python.org/3/library/venv.html