build: pin python version, update scripts and pip handling (#7)

This commit is contained in:
Marc 2022-11-05 14:11:50 -04:00 committed by GitHub
parent a075f5e788
commit bc2ef284a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 32 additions and 13 deletions

View file

@ -1 +1 @@
3.9.6 3.9.15

2
requirements.in Normal file
View file

@ -0,0 +1,2 @@
black
invoke

View file

@ -1,15 +1,22 @@
astroid==2.11.7 #
# This file is autogenerated by pip-compile with python 3.9
# To update, run:
#
# pip-compile ./requirements.in
#
black==22.6.0 black==22.6.0
# via -r ./requirements.in
click==8.1.3 click==8.1.3
dill==0.3.5.1 # via black
invoke==1.7.1 invoke==1.7.1
isort==5.10.1 # via -r ./requirements.in
lazy-object-proxy==1.7.1
mccabe==0.7.0
mypy-extensions==0.4.3 mypy-extensions==0.4.3
# via black
pathspec==0.9.0 pathspec==0.9.0
# via black
platformdirs==2.5.2 platformdirs==2.5.2
# via black
tomli==2.0.1 tomli==2.0.1
tomlkit==0.11.4 # via black
typing_extensions==4.3.0 typing-extensions==4.3.0
wrapt==1.14.1 # via black

View file

@ -1,8 +1,14 @@
#!/bin/bash #!/bin/bash
VENV="spadinaistan.venv" VENV="spadinaistan.venv"
test -d $VENV || python3 -m venv $VENV || return
. $VENV/bin/activate
python -m pip install -U pip --no-cache-dir python -m pip install pip==22.3 pip-tools==6.9.0 --no-cache
python -m pip install -r requirements.txt
if [ ! -d "./$VENV" ]; then
python -m venv ./$VENV
fi
source ./$VENV/bin/activate
pip-sync ./requirements.txt

4
script/lock Normal file
View file

@ -0,0 +1,4 @@
#!/bin/bash
pip-compile ./requirements.in