Removes private packages with @ from requirements file
Project description
Description
Removes private packages from a general requirements.txt
file.
An example of usage is installing private packages. My usual workflow consists of
- changes in the source code,
pip freeze > requirements.txt
- and
git add .
andgit commit -m "commit massage"
. However, my private packages were included and the CI build would fail because of the peculiar syntax required to install private packages. - The private package was manually removed from the
requirements.txt
and anothercommit
was executed.
This package was created to avoid this situation. Storing the private packages
in a different file (e.g., requirements-private.txt
), it removes the
packages already presented inside requirements-private.txt
from the requirements.txt
avoiding the manual delete and the commit correcting this change.
Instructions (Development)
Create a virtual environment and install the required packages with
python3 -m venv .venv
source .venv/bin/activate
pip install wheel
pip install -r requirements.txt
pre-commit install
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
File details
Details for the file requirements_filter-0.0.0rc2.tar.gz
.
File metadata
- Download URL: requirements_filter-0.0.0rc2.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58b79cedb670117126da7ad6bf8346cc9b4ff7346fac1ac10bc00f9052b35a5e |
|
MD5 | 92a23014ad504d9aecc5bac9b594bd23 |
|
BLAKE2b-256 | 0f2cb1248382cf8984e2608f7bc5d90a08d36cb86594860a129597e5de7eed2f |
File details
Details for the file requirements_filter-0.0.0rc2-py3-none-any.whl
.
File metadata
- Download URL: requirements_filter-0.0.0rc2-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8786f474e5aef3a200259563f148c53a39f58c1e42b713bdb35f50465e23565 |
|
MD5 | 543c6cdeee9e456e7a762ba19550376a |
|
BLAKE2b-256 | 8e4b907be32f3cb274dbd25d5217d03e608462ce8e33462ff9293f3c2e077a50 |