Adds python-experimental with dynamic base classes (#8325)

This commit is contained in:
Justin Black
2022-01-05 12:30:49 -08:00
committed by GitHub
parent 361b593da2
commit 3243279b4d
549 changed files with 57573 additions and 14 deletions

View File

@@ -0,0 +1,33 @@
#!/bin/bash
REQUIREMENTS_FILE=dev-requirements.txt
REQUIREMENTS_OUT=dev-requirements.txt.log
SETUP_OUT=*.egg-info
VENV=venv
DEACTIVE=false
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
### set virtualenv
if [ -z "$VENVV" ]; then
python3 -m venv $VENV
source $VENV/bin/activate
DEACTIVE=true
fi
### install dependencies
pip install -r $REQUIREMENTS_FILE | tee -a $REQUIREMENTS_OUT
### locally install the package, needed for pycharm problem checking
pip install -e .
### run tests
tox || exit 1
### static analysis of code
#flake8 --show-source petstore_api/
### deactivate virtualenv
#if [ $DEACTIVE == true ]; then
# deactivate
#fi