mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Merge pull request #2929 from dougthor42/develop
Add example requirements.txt file to pip_install.rst
This commit is contained in:
commit
0ac55a06f5
|
@ -125,6 +125,42 @@ You can also refer to :ref:`constraints files <Constraints Files>`, like this::
|
|||
|
||||
-c some_constraints.txt
|
||||
|
||||
.. _`Example Requirements File`:
|
||||
|
||||
Example Requirements File
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Use ``pip install -r example-requirements.txt`` to install::
|
||||
|
||||
#
|
||||
####### example-requirements.txt #######
|
||||
#
|
||||
###### Requirements without Version Specifiers ######
|
||||
nose
|
||||
nose-cov
|
||||
beautifulsoup4
|
||||
#
|
||||
###### Requirements with Version Specifiers ######
|
||||
# See https://www.python.org/dev/peps/pep-0440/#version-specifiers
|
||||
docopt == 0.6.1 # Version Matching. Must be version 0.6.1
|
||||
keyring >= 4.1.1 # Minimum version 4.1.1
|
||||
coverage != 3.5 # Version Exclusion. Anything except version 3.5
|
||||
Mopidy-Dirble ~= 1.1 # Compatible release. Same as >= 1.1, == 1.1.*
|
||||
#
|
||||
###### Refer to other requirements files ######
|
||||
-r other-requirements.txt
|
||||
#
|
||||
#
|
||||
###### A particular file ######
|
||||
./downloads/numpy-1.9.2-cp34-none-win32.whl
|
||||
http://wxpython.org/Phoenix/snapshot-builds/wxPython_Phoenix-3.0.3.dev1820+49a8884-cp34-none-win_amd64.whl
|
||||
#
|
||||
###### Additional Requirements without Version Specifiers ######
|
||||
# Same as 1st section, just here to show that you can put things in any order.
|
||||
rejected
|
||||
green
|
||||
#
|
||||
|
||||
.. _`Requirement Specifiers`:
|
||||
|
||||
Requirement Specifiers
|
||||
|
|
Loading…
Reference in a new issue