Debian Codegraph @

docs/source/update_requirements.rst

raw
1
2 .. _update_requirements_files:
3
4 ================================
5 How to Update Requirements Files
6 ================================
7
8 The different requirements files introduced in :ref:`software_process` section are the following:
9
10 * requirements.txt_
11 * requirements-dev.txt_
12 * requirements-doc.txt_
13 * requirements-min.txt_
14 * requirements-opt.txt_
15
16 .. _requirements.txt: https://github.com/hdmf-dev/hdmf/blob/dev/requirements.txt
17 .. _requirements-dev.txt: https://github.com/hdmf-dev/hdmf/blob/dev/requirements-dev.txt
18 .. _requirements-doc.txt: https://github.com/hdmf-dev/hdmf/blob/dev/requirements-doc.txt
19 .. _requirements-min.txt: https://github.com/hdmf-dev/hdmf/blob/dev/requirements-min.txt
20 .. _requirements-opt.txt: https://github.com/hdmf-dev/hdmf/blob/dev/requirements-opt.txt
21
22 requirements.txt
23 ================
24
25 `requirements.txt` of the project can be created or updated and then captured using
26 the following script:
27
28 .. code::
29
30 mkvirtualenv hdmf-requirements
31
32 cd hdmf
33 pip install .
34 pip check # check for package conflicts
35 pip freeze > requirements.txt
36
37 deactivate
38 rmvirtualenv hdmf-requirements
39
40
41 requirements-(dev|doc|opt).txt
42 ==============================
43
44 Any of these requirements files can be updated using
45 the following scripts:
46
47 .. code::
48
49 cd hdmf
50
51 # Set the requirements file to update
52 target_requirements=requirements-dev.txt
53
54 mkvirtualenv hdmf-requirements
55
56 # Install updated requirements
57 pip install -U -r $target_requirements
58
59 # If relevant, you could pip install new requirements now
60 # pip install -U <name-of-new-requirement>
61
62 # Check for any conflicts in installed packages
63 pip check
64
65 # Update list of pinned requirements
66 pip freeze > $target_requirements
67
68 deactivate
69 rmvirtualenv hdmf-requirements
70
71
72 requirements-min.txt
73 ====================
74
75 Minimum requirements should be updated manually if a new feature or bug fix is added in a dependency that is required
76 for proper running of HDMF. Minimum requirements should also be updated if a user requests that HDMF be installable
77 with an older version of a dependency, all tests pass using the older version, and there is no valid reason for the
78 minimum version to be as high as it is.