Added requirements and a README to explain how to use it.

This commit is contained in:
James Downie 2025-06-05 20:41:08 +10:00
parent d79806b718
commit 4462e85d14
2 changed files with 20 additions and 0 deletions

19
jdownie/README.md Normal file
View File

@ -0,0 +1,19 @@
# Python Setup
To get my python scripts working i need some special modules. I've found the following approach to be more reliable.
In my `.bash_profile`, i have these two lines pretty early on...
```
[ -d "$HOME/.venv" ] || python3 -m venv "$HOME/.venv"
[ -f "$HOME/.venv/bin/activate" ] && . "$HOME/.venv/bin/activate"
```
The first line will create your `.venv` folder if it doesn't exist. That second `activate` line will override your installed `python3` and `pip3` paths. The following will install the modules that i require.
```
pip3 install -r requirements.txt
```
This should set you up to use any of my `python` based solutions.

1
jdownie/requirements.txt Normal file
View File

@ -0,0 +1 @@
pyyaml