Skip to content

Commit 399c879

Browse files
authored
Merge pull request #2519 from pypa/remove-ppa-recommendation
Documentation updates
2 parents 7ddccf8 + 4fb6cc3 commit 399c879

File tree

6 files changed

+81
-110
lines changed

6 files changed

+81
-110
lines changed

README.md

+1-10
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,11 @@ If you\'re on MacOS, you can install Pipenv easily with Homebrew:
4444

4545
$ brew install pipenv
4646

47-
If you\'re using Ubuntu 17.10:
48-
49-
$ sudo apt install software-properties-common python-software-properties
50-
$ sudo add-apt-repository ppa:pypa/ppa
51-
$ sudo apt update
52-
$ sudo apt install pipenv
53-
5447
Or, if you\'re using Fedora 28:
5548

5649
$ sudo dnf install pipenv
5750

58-
Otherwise, just use pip:
59-
60-
$ pip install pipenv
51+
Otherwise, refer to the [documentation](https://docs.pipenv.org/install/) for instructions.
6152

6253
✨🍰✨
6354

docs/conf.py

-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
# documentation root, use os.path.abspath to make it absolute, like shown here.
1818
#
1919
import os
20-
import sys
2120

2221
# Path hackery to get current version number.
2322
here = os.path.abspath(os.path.dirname(__file__))
@@ -182,7 +181,6 @@ def setup(app):
182181
]
183182

184183

185-
186184
# -- Options for Epub output ----------------------------------------------
187185

188186
# Bibliographic Dublin Core info.
@@ -202,5 +200,3 @@ def setup(app):
202200

203201
# A list of files that should not be packed into the epub file.
204202
epub_exclude_files = ['search.html']
205-
206-

docs/dev/philosophy.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Pipenv is an open but opinionated tool, created by an open but opinionated devel
77
Management Style
88
~~~~~~~~~~~~~~~~
99

10-
`Kenneth Reitz <http://kennethreitz.org>`_ is the BDFL. He has final say in any decision related to the Pipenv project. Kenneth is responsible for the direction and form of the library, as well as its presentation. In addition to making decisions based on technical merit, he is responsible for making decisions based on the development philosophy of Pipenv.
10+
`Kenneth Reitz <http://kennethreitz.org>`__ is the BDFL. He has final say in any decision related to the Pipenv project. Kenneth is responsible for the direction and form of the library, as well as its presentation. In addition to making decisions based on technical merit, he is responsible for making decisions based on the development philosophy of Pipenv.
1111

12-
`Dan Ryan<http://github.com/techalchemy>`_, `Tzu-ping Chung<https://github.com/uranusjr>`_, and `Nate Prewitt<https://github.com/nateprewitt>`_ are the core contributors.
12+
`Dan Ryan <http://github.com/techalchemy>`__, `Tzu-ping Chung <https://github.com/uranusjr>`__, and `Nate Prewitt <https://github.com/nateprewitt>`__ are the core contributors.
1313
They are responsible for triaging bug reports, reviewing pull requests and ensuring that Kenneth is kept up to speed with developments around the library.
1414
The day-to-day managing of the project is done by the core contributors. They are responsible for making judgements about whether or not a feature request is
1515
likely to be accepted by Kenneth.

docs/diagnose.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ in your Pipfile.
4545

4646
This is usually a result of mixing Pipenv with system packages. We *strongly*
4747
recommend installing Pipenv in an isolated environment. Uninstall all existing
48-
Pipenv installations, and see :ref:`proper_installation` to choose one of the
48+
Pipenv installations, and see :ref:`installing-pipenv` to choose one of the
4949
recommended way to install Pipenv instead.
5050

5151
☤ My pyenv-installed Python is not found

docs/index.rst

+14-10
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,15 @@ The problems that Pipenv seeks to solve are multi-faceted:
4343
Install Pipenv Today!
4444
---------------------
4545

46-
Just use pip::
46+
If you're on MacOS, you can install Pipenv easily with Homebrew::
4747

48-
$ pip install pipenv
48+
$ brew install pipenv
4949

50-
Or, if you're using Ubuntu 17.10::
50+
Or, if you're using Fedora 28::
5151

52-
$ sudo apt install software-properties-common python-software-properties
53-
$ sudo add-apt-repository ppa:pypa/ppa
54-
$ sudo apt update
55-
$ sudo apt install pipenv
52+
$ sudo dnf install pipenv
5653

57-
Otherwise, if you're on MacOS, you can install Pipenv easily with Homebrew::
58-
59-
$ brew install pipenv
54+
Otherwise, refer to the :ref:`installing-pipenv` chapter for instructions.
6055

6156
✨🍰✨
6257

@@ -122,6 +117,15 @@ Further Documentation Guides
122117
advanced
123118
diagnose
124119

120+
Contribution Guides
121+
-------------------
122+
123+
.. toctree::
124+
:maxdepth: 2
125+
126+
dev/philosophy
127+
dev/contributing
128+
125129
☤ Pipenv Usage
126130
--------------
127131

docs/install.rst

+63-83
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.. _virtualenvironments-ref:
22

3+
=============================
34
Pipenv & Virtual Environments
45
=============================
56

@@ -19,13 +20,11 @@ managing development and testing environments for any kind of project.
1920
should work fine on Python 2.7—if you are still using it, for some reason.
2021

2122

22-
Make sure you've got Python & pip
23-
------------------------------------
23+
☤ Make sure you've got Python & pip
24+
===================================
2425

2526
Before you go any further, make sure you have Python and that it's available
26-
from your command line. You can check this by simply running:
27-
28-
.. code-block:: bash
27+
from your command line. You can check this by simply running::
2928

3029
$ python --version
3130

@@ -35,7 +34,7 @@ install the latest 3.x version from `python.org`_ or refer to the
3534

3635
.. Note:: If you're newcomer and you get an error like this:
3736

38-
.. code-block:: python
37+
.. code-block:: pycon
3938
4039
>>> python
4140
Traceback (most recent call last):
@@ -47,10 +46,8 @@ install the latest 3.x version from `python.org`_ or refer to the
4746
`getting started tutorial`_ for an introduction to using your operating
4847
system's shell and interacting with Python.
4948

50-
Additionally, you'll need to make sure you have :ref:`pip` available. You can
51-
check this by running:
52-
53-
.. code-block:: bash
49+
Additionally, you'll need to make sure you have pip available. You can
50+
check this by running::
5451

5552
$ pip --version
5653
pip 9.0.1
@@ -59,7 +56,7 @@ If you installed Python from source, with an installer from `python.org`_, or
5956
via `Homebrew`_ you should already have pip. If you're on Linux and installed
6057
using your OS package manager, you may have to `install pip <https://pip.pypa.io/en/stable/installing/>`_ separately.
6158

62-
If you plan to install pipenv using Homebrew you can skip this step. The
59+
If you plan to install Pipenv using Homebrew you can skip this step. The
6360
Homebrew installer takes care of pip for you.
6461

6562
.. _getting started tutorial: https://opentechschool.github.io/python-beginners/en/getting_started.html#what-is-python-exactly
@@ -68,22 +65,47 @@ Homebrew installer takes care of pip for you.
6865
.. _Installing Python: http://docs.python-guide.org/en/latest/starting/installation/
6966

7067

68+
.. _installing-pipenv:
69+
7170
☤ Installing Pipenv
72-
-------------------
71+
===================
7372

74-
:ref:`Pipenv` is a dependency manager for Python projects. If you're familiar
73+
Pipenv is a dependency manager for Python projects. If you're familiar
7574
with Node.js' `npm`_ or Ruby's `bundler`_, it is similar in spirit to those
76-
tools. While :ref:`pip` can install Python packages, Pipenv is recommended as
75+
tools. While pip can install Python packages, Pipenv is recommended as
7776
it's a higher-level tool that simplifies dependency management for common use
7877
cases.
7978

80-
Use ``pip`` to install Pipenv:
79+
.. _npm: https://www.npmjs.com/
80+
.. _bundler: http://bundler.io/
81+
8182

82-
.. code-block:: python
83+
☤ Homebrew Installation of Pipenv
84+
---------------------------------
85+
86+
Homebrew is a popular open-source package management system for macOS.
87+
88+
Installing pipenv via Homebrew will keep pipenv and all of its dependencies in
89+
an isolated virtual environment so it doesn't interfere with the rest of your
90+
Python installation.
91+
92+
Once you have installed `Homebrew`_ simply run::
93+
94+
$ brew install pipenv
95+
96+
To upgrade pipenv at any time::
97+
98+
$ brew upgrade pipenv
8399

84-
$ pip install --user pipenv
85100

101+
☤ Pragmatic Installation of Pipenv
102+
----------------------------------
103+
104+
If you have a working installation of pip, and maintain certain "toolchain" type Python modules as global utilities in your user environment, pip `user installs <https://pip.pypa.io/en/stable/user_guide/#user-installs>`_ allow for installation into your home directory. Note that due to interaction between dependencies, you should limit tools installed in this way to basic building blocks for a Python workflow like virtualenv, pipenv, tox, and similar software.
86105

106+
To install::
107+
108+
$ pip install --user pipenv
87109

88110
.. Note:: This does a `user installation`_ to prevent breaking any system-wide
89111
packages. If ``pipenv`` isn't available in your shell after installation,
@@ -105,32 +127,43 @@ Use ``pip`` to install Pipenv:
105127
user ``PATH`` permanently in the `Control Panel`_. You may need to log
106128
out for the ``PATH`` changes to take effect.
107129

108-
.. _npm: https://www.npmjs.com/
109-
.. _bundler: http://bundler.io/
130+
For more information, see the `user installs documentation <https://pip.pypa.io/en/stable/user_guide/#user-installs>`_.
131+
132+
110133
.. _user base: https://docs.python.org/3/library/site.html#site.USER_BASE
111134
.. _user installation: https://pip.pypa.io/en/stable/user_guide/#user-installs
112135
.. _modifying ~/.profile: https://stackoverflow.com/a/14638025
113136
.. _Control Panel: https://msdn.microsoft.com/en-us/library/windows/desktop/bb776899(v=vs.85).aspx
114137

138+
139+
To upgrade pipenv at any time::
140+
141+
$ pip install --user --upgrade pipenv
142+
143+
144+
☤ Crude Installation of Pipenv
145+
------------------------------
146+
147+
If you don't even have pip installed, you can use this crude installation method, which will bootstrap your whole system::
148+
149+
$ curl https://raw.githubusercontent.com/kennethreitz/pipenv/master/get-pipenv.py | python
150+
151+
115152
☤ Installing packages for your project
116-
--------------------------------------
153+
======================================
117154

118155
Pipenv manages dependencies on a per-project basis. To install packages,
119156
change into your project's directory (or just an empty directory for this
120-
tutorial) and run:
121-
122-
.. code-block:: bash
157+
tutorial) and run::
123158

124159
$ cd myproject
125160
$ pipenv install requests
126161

127162
Pipenv will install the excellent `Requests`_ library and create a ``Pipfile``
128-
for you in your project's directory. The :ref:`Pipfile` is used to track which
163+
for you in your project's directory. The ``Pipfile`` is used to track which
129164
dependencies your project needs in case you need to re-install them, such as
130165
when you share your project with others. You should get output similar to this
131-
(although the exact paths shown will vary):
132-
133-
.. code-block:: text
166+
(although the exact paths shown will vary)::
134167

135168
Creating a Pipfile for this project...
136169
Creating a virtualenv for this project...
@@ -161,7 +194,7 @@ when you share your project with others. You should get output similar to this
161194

162195

163196
☤ Using installed packages
164-
--------------------------
197+
==========================
165198

166199
Now that Requests is installed you can create a simple ``main.py`` file to
167200
use it:
@@ -174,9 +207,7 @@ use it:
174207
175208
print('Your IP is {0}'.format(response.json()['origin']))
176209
177-
Then you can run this script using ``pipenv run``:
178-
179-
.. code-block:: bash
210+
Then you can run this script using ``pipenv run``::
180211

181212
$ pipenv run python main.py
182213

@@ -192,57 +223,6 @@ have access to your installed packages with ``$ pipenv shell``.
192223

193224

194225
☤ Next steps
195-
------------
226+
============
196227

197228
Congratulations, you now know how to install and use Python packages! ✨ 🍰 ✨
198-
199-
.. _proper_installation:
200-
201-
202-
☤ Homebrew Installation of Pipenv
203-
=================================
204-
205-
Homebrew is a popular open-source package management system for macOS.
206-
207-
Installing pipenv via Homebrew will keep pipenv and all of its dependencies in
208-
an isolated virtual environment so it doesn't interfere with the rest of your
209-
Python installation.
210-
211-
Once you have installed `Homebrew <https://brew.sh/>`_ simply run::
212-
213-
$ brew install pipenv
214-
215-
To upgrade pipenv at any time::
216-
217-
$ brew upgrade pipenv
218-
219-
.. _pragmatic_installation:
220-
221-
☤ Pragmatic Installation of Pipenv
222-
==================================
223-
224-
If you have a working installation of pip, and maintain certain "toolchain" type Python modules as global utilities in your user environment, pip `user installs <https://pip.pypa.io/en/stable/user_guide/#user-installs>`_ allow for installation into your home directory. Note that due to interaction between dependencies, you should limit tools installed in this way to basic building blocks for a Python workflow like virtualenv, pipenv, tox, and similar software.
225-
226-
To install::
227-
228-
$ pip install --user pipenv
229-
230-
For more information see the `user installs documentation <https://pip.pypa.io/en/stable/user_guide/#user-installs>`_, but to add the installed cli tools from a pip user install to your path, add the output of::
231-
232-
$ python -c "import site; import os; print(os.path.join(site.USER_BASE, 'bin'))"
233-
234-
To upgrade pipenv at any time::
235-
236-
$ pip install --user --upgrade pipenv
237-
238-
.. _crude_installation:
239-
240-
☤ Crude Installation of Pipenv
241-
==============================
242-
243-
If you don't even have pip installed, you can use this crude installation method, which will bootstrap your whole system::
244-
245-
$ curl https://raw.githubusercontent.com/kennethreitz/pipenv/master/get-pipenv.py | python
246-
247-
Congratulations, you now have pip and Pipenv installed!
248-

0 commit comments

Comments
 (0)