Hard pin your installed dependencies
Project description
version_lister
Hard pin your dependencies in requirements.txt
This is a simple python program or rather script to update requirements.txt depending upon its state:
- Check the dependencies(packages) currently installed in the environment.
- (Req.file Present):For each value of packages present in environment, update those which were listed already in
requirements.txtdependency version. - (Req.file absent): For all the values of packages in the environment, list them in
requirements.txtas it is, with dependencies locked.(You may have to manually remove un-necessary values.) Note : Hence as a necessity, it requires that project dependencies are already installed with working versions.
Aim:
-
helping python package authors/owners to hard pin their dependencies with the working version installed in their
requirements.txtfile before making it public. -
It is not a complete solution for dependency management in building python projects, nor does it in anyway attempts to become so.
Getting Started
-
Install:
- Activate venv/virtualenv, install through
pip: pip install version_lister
- Activate venv/virtualenv, install through
-
Run:
add-versionin the top level working dir where requirements.txt is present.
- recommended usage :
- Before running
add-versionmake sure :- All required project dependencies are installed.
- All dependencies are mentioned in the requirements.txt file in any way with or without any semantic versioning.
- Failure of first results in requirements.txt updated with un-necessary environment packages and no actual required dependency mentioned.
- Failure of second results in noisy requirements file where other system packages are mentioned alongside actual dependencies.
- Before running
Contribution
- see issues
- create pull requests
License
version_lister was created by Azzam Zafar. It is licensed under the terms
of 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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file version_lister-0.1.0.tar.gz.
File metadata
- Download URL: version_lister-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
941ee1891dc9ba6bffa0fcf50fe17845a099cae7b1163c941cb040912445abde
|
|
| MD5 |
7801e528f38ea1e81b40c50c2f9ed7f5
|
|
| BLAKE2b-256 |
3723a596b295b0deb4968e502dcf68a63caaa5f2815852170a8300f56625aa09
|
File details
Details for the file version_lister-0.1.0-py3-none-any.whl.
File metadata
- Download URL: version_lister-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1e9eea4f028164972aa7f99d938740a5d50e7fe9b6dc3870d1e3f72385fc096
|
|
| MD5 |
ce8c9c17211c7a6128197a6edfd91578
|
|
| BLAKE2b-256 |
72a766b16b9382ae3e88679c87b8d34ec097e58d8f973cad9c715cfa8820142b
|