small pip update helpers
Project description
pipdate is a collection of small pip update helpers. The commands
pipdate pipdate3
updates all your pip{3}-installed packages.
There’s a Python interface as well that can be used for update notifications. This
import pipdate
msg = pipdate.check('matplotlib', '0.4.5')
print(msg)
will print
Upgrade to matplotlib 2.0.0 available! (installed: 0.4.5) matplotlib's API changes in this upgrade. Changes to your code may be necessary. To upgrade matplotlib with pip, type pip install -U matplotlib To upgrade _all_ pip-installed packages, use pipdate/pipdate3 To disable these checks, set SecondsBetweenChecks in /home/jdoe/.config/pipdate/config.ini
If you guard the check with
if pipdate.needs_checking('matplotlib'):
print(pipdate.check('matplotlib', '0.4.5'), end='')
then it will be performed at most every k seconds, where k is specified in the config file $HOME/.config/pipdate/config.ini, e.g., once a day
[DEFAULT] secondsbetweenchecks = 86400
This can, for example, be used by module authors to notify users of upgrades of their own modules.
Installation
pipdate is available from the Python Package Index, so simply type
pip install pipdate
Testing
To run the pipdate unit tests, check out this repository and type
pytest
Distribution
To create a new release
bump the __version__ number,
publish to PyPi and GitHub:
$ make publish
License
pipdate is published under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for pipdate-0.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65addc3a1454089945bc92a9e7498cb23244d70be68ed3931a37027acee5c237 |
|
MD5 | e3f45927cdf7b9e4023a58002f44e03c |
|
BLAKE2b-256 | bc86d0105ffede1fca160b9fae1a7fb1bd548cb895baf536d054f0357e7d3661 |