Skip to content

Commit

Permalink
Merge branch 'release/1.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Dec 26, 2021
2 parents 68262a8 + 9afe455 commit 3a831c1
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 28 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Copyright 2012-2015 Vincent Driessen
Copyright 2015-2020 Julian Gonggrijp
Copyright 2015-2021 Julian Gonggrijp

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Expand Down
15 changes: 14 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
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
9 changes: 2 additions & 7 deletions pip_review/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from __future__ import absolute_import
import os
import re
import argparse
from functools import partial
Expand All @@ -12,9 +11,6 @@

PY3 = sys.version_info.major == 3
if PY3: # Python3 Imports
import urllib.request as urllib_request
import subprocess

def check_output(*args, **kwargs):
process = subprocess.Popen(stdout=subprocess.PIPE, *args, **kwargs)
output, _ = process.communicate()
Expand All @@ -26,7 +22,6 @@ def check_output(*args, **kwargs):
return output

else: # Python2 Imports
import urllib2 as urllib_request
from subprocess import check_output
import __builtin__
input = getattr(__builtin__, 'raw_input')
Expand Down Expand Up @@ -169,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
36 changes: 17 additions & 19 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
"""
pip-review lets you smoothly manage all available PyPI updates.
"""
import sys
""" pip-review lets you smoothly manage all available PyPI updates. """

from setuptools import setup


setup(
name='pip-review',
version='1.1.0',
version='1.1.1',
url='https://github.com/jgonggrijp/pip-review',
license='BSD',
author='Julian Gonggrijp, Vincent Driessen',
Expand All @@ -23,7 +21,7 @@
'pip-review = pip_review.__main__:main',
],
},
#include_package_data=True,
# include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
Expand All @@ -33,24 +31,24 @@
python_requires='>=2.7, !=3.0, !=3.1, !=3.2',
classifiers=[
# As from https://pypi.python.org/pypi?%3Aaction=list_classifiers
#'Development Status :: 1 - Planning',
#'Development Status :: 2 - Pre-Alpha',
#'Development Status :: 3 - Alpha',
#'Development Status :: 4 - Beta',
# 'Development Status :: 1 - Planning',
# 'Development Status :: 2 - Pre-Alpha',
# 'Development Status :: 3 - Alpha',
# 'Development Status :: 4 - Beta',
'Development Status :: 5 - Production/Stable',
#'Development Status :: 6 - Mature',
#'Development Status :: 7 - Inactive',
# 'Development Status :: 6 - Mature',
# 'Development Status :: 7 - Inactive',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
#'Programming Language :: Python :: 2.3',
#'Programming Language :: Python :: 2.4',
#'Programming Language :: Python :: 2.5',
#'Programming Language :: Python :: 2.6',
# 'Programming Language :: Python :: 2.3',
# 'Programming Language :: Python :: 2.4',
# 'Programming Language :: Python :: 2.5',
# 'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
#'Programming Language :: Python :: 3.0',
#'Programming Language :: Python :: 3.1',
#'Programming Language :: Python :: 3.2',
# 'Programming Language :: Python :: 3.0',
# 'Programming Language :: Python :: 3.1',
# 'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
Expand Down

0 comments on commit 3a831c1

Please sign in to comment.