Skip to content

Commit

Permalink
Merge pull request #86 from Asiier/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Feb 13, 2021
2 parents 04dcfe0 + 3c29847 commit 304f5d4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
15 changes: 14 additions & 1 deletion README.rst
Expand Up @@ -57,11 +57,24 @@ being upgraded, you can use a constraint file (similar to ``requirements.txt``):
Set this variable in ``.bashrc`` or ``.zshenv`` to make it persistent.
Alternatively, this option can be specified in ``pip.conf``, e.g.:

* Linux:

.. code:: console
$ cat ~/.config/pip.conf
$ cat ~/.config/pip/pip.conf
[global]
constraint = /home/username/constraints.txt
* Windows:

.. code:: console
$ cat $HOME\AppData\Roaming\pip\pip.ini
[global]
constraint = '$HOME\Roaming\pip\constraints.txt'
The conf file are dependent of the user, so If you use multiple users you must define config file for each of them.
https://pip.pypa.io/en/stable/user_guide/#constraints-files

Since version 0.5, you can also invoke pip-review as ``python -m pip_review``. This can be useful if you are using multiple versions of Python next to each other.

Expand Down
4 changes: 2 additions & 2 deletions pip_review/__main__.py
Expand Up @@ -164,8 +164,8 @@ def ask(self, prompt):


def update_packages(packages, forwarded):
command = pip_cmd() + ['install'] + forwarded + [
'{0}=={1}'.format(pkg['name'], pkg['latest_version']) for pkg in packages
command = pip_cmd() + ['install', '-U'] + forwarded + [
'{0}'.format(pkg['name']) for pkg in packages
]

subprocess.call(command, stdout=sys.stdout, stderr=sys.stderr)
Expand Down

0 comments on commit 304f5d4

Please sign in to comment.