Resolves #727
We are still getting the setuptools snyk vulnerability because it's dependencies are in the requirements.txt file as well as the requirements-parsing file that was already upgraded. This should remove those alerts and keep us consistent between those files.
Required reviewers
1-2 devs
Screenshots
Before:
After:
How to test
Parser write 45 regulations to the local eregs API. It will take ~10 minutes to finish parsing 45 regulations
snyk test --file=requirements.txt --package-manager=pip
checkout branch
Terminal 1:
pyenv virtualenv venv-eregs
pip install -r requirements.txt
rm -rf node_modules
npm i
npm run build
dropdb eregs_db (change the db name based on what is given in local_settings.py)
createdb eregs_db
python manage.py migrate
python manage.py compile_frontend
python manage.py runserver (leave this running)
Terminal 2:
pyenv virtualenv venv-parser
pip install -r requirements-parsing.txt
run : snyk test --file=requirements.txt --package-manager=pip
Summary (required)
Required reviewers
1-2 devs
Screenshots
Before:
After:
How to test
Parser write 45 regulations to the local eregs API. It will take ~10 minutes to finish parsing 45 regulations
snyk test --file=requirements.txt --package-manager=pip
snyk test --file=requirements.txt --package-manager=pip
For more detailed instructions follow the wiki on how to setup/parse regulations on local environment