Parses CVE files from github.com/victims/victims-cve-db and fills out package_urls for use by the victims process.
This is a short guide on how to work with this codebase
- python 3.x
- virtualenv
- pip
Create a virtualenv using:
virtualenv dbuildYou should see the following output, and a new folder 'dbbuild' should be created.
New python executable in dbbuild/bin/python3.5
Also creating executable in dbbuild/bin/python
Installing setuptools, pip, wheel...done.Activate the previously created environment using:
source dbuild/bin/activateOnce this is complete, you should see the name prepended to the command prompt eg: '(dbbuild)'
Install dependencies using 'pip':
pip install -r requirements.txtAdd package_urls to a single entry:
python victims_db_builder/processor.py ../tests/data/7501.yamlInstall test dependencies using pip
pip install -r test-requirements.txtUse 'nose' to execute the test suite, found in the 'tests' directory using:
nosetestsOutput will look like this for a successful run of the tests:
............
----------------------------------------------------------------------
Ran 12 tests in 16.545s
OKUsing distutil to create a '.tar' source distribution of the project:
python setup.py sdistAfter running this, you should have a '.tar' file in 'dist/'