Index
About
Vermon monitors the version of the package specified on the pypi platform, compares the version of the package installed in your environment with the latest published version and, if less, shows a warning with instructions for updating in the terminal.
For example: suppose you created a package called foo and published version 1.0.0 in pypi. Some users are already using the foo package as a dependency on their projects. You found a bug and released a patch with the fix, now the latest version of foo is 1.0.1. All users using version 1.0.0 (less than the last release) of the package will receive a warning on the terminal similar to this one whenever they run the project:
> python your_project.py
You are using an old version of the foo package (v1.0.0)
a new version has been released (v1.0.1).
Please run: python -m pip install foo --upgrade
Now users know they have a dependency that needs to be updated ;)
Install
Use pipenv to install fordev in your environment. It will create a virtual environment and separate all dependencies and subdependencies from your global environment.
Install with pipenv
Create a directory and enter it:
$ mkdir my_project && cd my_project
Install with pipenv using:
$ pipenv install vermon
Now activate the virtual environment:
$ pipenv shell
Install with pip and virtualenv
Alternatively, if you don't want to use pipenv, use pip + virtualenv to do the same thing.
Create a directory and enter it:
$ mkdir my_project && cd my_project
Create and activate the virtual environment:
$ virtualenv venv && source venv/Scripts/activate
Note: In linux environment, use
source venv/bin/activateto activate the virtual environment.
Now install with pip:
$ pip install vermon
Done, now you can start the job ;)
Use
To use the vermon package, call Vermon.run method in your package's __init__.py file:
from vermon import Vermon
Vermon.run(
package='YOUR_PACKAGE',
current_version=your_package.__version__
)
Done 🎉
Contributions
All contributions are welcome!
Found a problem, want to give a tip? open an issue
Do you have a solution to the problem? Send me a PR
Did you like this project? Click on the star ⭐
License
This project is using the MIT license, see in MIT LICENSE.
Metadata
Release files for vermon 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vermon-0.1.0.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vermon-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.8 kB
Release files / vermon-0.1.0.tar.gz
| Download URL | vermon-0.1.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87378ac44e99f509dab09bf6b155399715e210d268d9ddcbf54085470fedc509
|
|
BLAKE2b-256 checksum How to use checksums |
48c57e0e7b7f9afdecdfa9ca8a95c7ed7a30a8477632633e32401c390e11b7e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
|
Release files / vermon-0.1.0-py3-none-any.whl
| Download URL | vermon-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
970915eae1e6394a697b326b96d56cf955092523b2987607db4a9a2ef6b54082
|
|
BLAKE2b-256 checksum How to use checksums |
88934e0d979adde34d0715c3430137979aae4f82e63fc296b7dfe411c9d2a6af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
|