FOSSASIA
coala: Generate bear-requirements.txt
Each coala bear should include a PipRequirement to describe any Python dependencies.
For example, CMakeLintBear includes:
REQUIREMENTS = {PipRequirement('cmakelint', '1.3')}
requirements.txt also includes cmakelint~=1.3.
This is unnecessary duplication, and the task is to remove that duplication.
This task is to create a script .ci/generate_requirements.py which is run after coala-bears is installed and writes a new bear-requirements.txt using the PipRequirement information in the bears, using pip ~= syntax.
Each entry in the new bear-requirements.txt should be removed from the existing requirements.txt, and bears-requirements.txt should be loaded by setup.py so that there is no change to the package dependencies.
Task tags
Students who completed this task
yuki_is_bored