How to Update Requirements Files

The different requirements files introduced in Software Process section are the following:

requirements.txt

Requirements.txt of the project can be created or updated and then captured using the following script:

mkvirtualenv pynwb-requirements

cd pynwb
pip install .
pip freeze > requirements.txt

deactivate
rmvirtualenv pynwb-requirements

requirements-(dev|doc).txt

Any of these requirements files can be updated updated using the following scripts:

cd pynwb

# Set the requirements file to update
target_requirements=requirements-dev.txt

mkvirtualenv pynwb-requirements

# Install updated requirements
pip install -U -r $target_requirements

# If relevant, you could pip install new requirements now
# pip install -U <name-of-new-requirement>

# Update list of pinned requirements
pip freeze > $target_requirements

deactivate
rmvirtualenv pynwb-requirements