This repository has been archived by the owner on May 22, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Required reviewers
1 developers
Impacted areas of the application
Eregs App and Parser
Related PRs
Note: Merge these pull requests before testing the current one.
I upgraded to the minor patch version of Django, v4.2.11, which was released on March 4th:
fecgov/regulations-parser#19
fecgov/regulations-site#16
fecgov/regulations-core#17
How to test
regparser
-e git+https://github.com/fecgov/[email protected]#egg=regparser
regsite
-e git+https://github.com/fecgov/[email protected]#egg=regulations
regcore
-e git+https://github.com/fecgov/[email protected]#egg=regcore
Terminal One:
3.
pyenv virtualenv (your virtual environment)
4.
pip install -r requirements.txt
5.
rm -rf node_modules
6.
npm i
7.
npm run build
8.
dropdb eregs_local
9.
createdb eregs_local
10.
python manage.py migrate
11.
python manage.py compile_frontend
12.
python manage.py runserver
(leave running)Terminal Two:
13.
pyenv virtualenv (your virtual environment)
14.
pip install -r requirements-parsing.txt
15.
snyk test --file=requirements-parsing.txt --package-manager=pip
NOTE: Django, Cyptography are no longer flagged as vulnerable packages16.
python load_regs/load_fec_regs.py local
17. 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