Compile requirements.in using pip-tools for multiple python versions
Project description
This package allows to compile requirements.in file to single requirements.txt output with support for multiple python versions simultaneously.
Install
pip install pip-compile-universal
Usage
Call this command with required python versions, first input file and rest arguments forwarded to pip-tools.
pip_compile_universal 3.8,3.9,3.10,3.11 requirements.in [other pip-tools arguments]
How it works
This command creates virtualenvs in home directory (~/.virtualenvs). Then it will compile requirements for each python version and merge to single requirements.txt file.
Example
requirements.in:
workalendar
pip_compile_universal 3.7,3.8,3.9,3.10,3.11 requirements.in
requirements.txt:
backports-zoneinfo==0.2.1 ; python_version < "3.9"
# via workalendar
convertdate==2.4.0
# via workalendar
importlib-metadata==6.0.0 ; python_version < "3.8"
# via workalendar
lunardate==0.2.0
# via workalendar
pyluach==2.0.2
# via workalendar
pymeeus==0.5.12
# via convertdate
python-dateutil==2.8.2
# via workalendar
six==1.16.0
# via python-dateutil
typing-extensions==4.4.0 ; python_version < "3.8"
# via importlib-metadata
workalendar==17.0.0
# via -r build/requirements.in
zipp==3.12.0 ; python_version < "3.8"
# via importlib-metadata
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
Close
Hashes for pip_compile_universal-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ba847ebc8187c804952d4b1cf9812c65a23572bea299319bd61dae74984e770 |
|
MD5 | 98b805f84b7be9be7af7466d3da4874f |
|
BLAKE2b-256 | 830d005f0be1640ace09dc2778ebe449d8d45bc9edc9c4399881c3b2c3520dc5 |
Close
Hashes for pip_compile_universal-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f9a678f543b16bebf2618c572c71ac134fb7339a24383a404eb9ddcf732f756 |
|
MD5 | a0b79cdcc93a874fdbf77e6da0fb4734 |
|
BLAKE2b-256 | 4a81cec775decee3740773d5ee31f70d307feb5a21add013219cb8fb8ca33d8f |