jmnavarrol / bash-magic-enviro

An opinionated Bash configuration tool for development environments.
GNU General Public License v3.0
3 stars 0 forks source link

python3-virtualenvs module: add support for includes in requirements #3

Closed jmnavarrol closed 2 years ago

jmnavarrol commented 2 years ago

pip added syntax to include a requirements file from another.

In this case, python3-virtualenvs won't track the included requirements file and so, in case of updates won't regenerate the requested virtualenv.

Add support for this feature, maybe with the help of something like pip-requirements-parser.

jmnavarrol commented 2 years ago

I ended up coding it in pure Bash.

v1.3.2 now looks for includes within the requested requirements file and, if found, it also tracks their md5sum.

NOTE: this only works for "single level" includes; it doesn't recursiverly look for further includes beyond the first requirements file.