fecgov / fec-eregs

The Federal Election Commission's web-based application that makes regulations easier to find, read and understand.
https://www.fec.gov/regulations/
Other
33 stars 13 forks source link

upgrade parsing requirements #783

Closed tmpayton closed 1 year ago

tmpayton commented 1 year ago

Summary (required)

This PR upgrades boto3, botocore, certifi, cryptography, and GitPython in requirements and requirements-parsing

Required reviewers 1 - 2 developers

Impacted areas of the application

General components of the application that this PR will affect:

How to test

  1. Checkout this branch

Terminal One:

  1. pyenv virtualenv (your virtual environment)
  2. pip install -r requirements.txt
  3. snyk test --file=requirements.txt --package-manager=pip
  4. rm -rf node_modules
  5. npm i
  6. npm run build
  7. dropdb eregs_local
  8. createdb eregs_local
  9. python manage.py migrate
  10. python manage.py compile_frontend
  11. python manage.py runserver (leave running)

Terminal Two:

  1. pyenv virtualenv (your virtual environment)
  2. pip install -r requirements-parsing.txt
  3. snyk test --file=requirements-parsing.txt --package-manager=pip
  4. python load_regs/load_fec_regs.py local
  5. Go to http://127.0.0.1:8000/ to view 45 regulations

For more detailed instructions follow the wiki on how to setup/parse regulations on local environment