Commits on Source (2)
-
Chandan Singh authored
`pip` source plugin can stage python packages that are either specified directly in the element definition or picked up from `requirements.txt` from previous sources. In order to support the latter use-case (which is also the primary motivation for this plugin), this plugin requires access to previous sources and hence is an example of a Source Transform source. Also, bump `BST_FORMAT_VERSION` as this patch adds a new core plugin.
-
Chandan Singh authored
Showing
- buildstream/_versions.py 1 addition, 1 deletionbuildstream/_versions.py
- buildstream/plugins/sources/pip.py 188 additions, 0 deletionsbuildstream/plugins/sources/pip.py
- tests/integration/pip_element.py 0 additions, 0 deletionstests/integration/pip_element.py
- tests/integration/pip_source.py 54 additions, 0 deletionstests/integration/pip_source.py
- tests/integration/project/files/pip-source/myreqs.txt 1 addition, 0 deletionstests/integration/project/files/pip-source/myreqs.txt
- tests/integration/project/files/pypi-repo/app1/App1-0.1.tar.gz 0 additions, 0 deletions.../integration/project/files/pypi-repo/app1/App1-0.1.tar.gz
- tests/integration/project/files/pypi-repo/app1/index.html 8 additions, 0 deletionstests/integration/project/files/pypi-repo/app1/index.html
- tests/integration/project/files/pypi-repo/app2/App2-0.1.tar.gz 0 additions, 0 deletions.../integration/project/files/pypi-repo/app2/App2-0.1.tar.gz
- tests/integration/project/files/pypi-repo/app2/index.html 8 additions, 0 deletionstests/integration/project/files/pypi-repo/app2/index.html
- tests/sources/pip.py 47 additions, 0 deletionstests/sources/pip.py
- tests/sources/pip/first-source-pip/target.bst 7 additions, 0 deletionstests/sources/pip/first-source-pip/target.bst
- tests/sources/pip/no-packages/file 1 addition, 0 deletionstests/sources/pip/no-packages/file
- tests/sources/pip/no-packages/target.bst 7 additions, 0 deletionstests/sources/pip/no-packages/target.bst
- tests/sources/pip/no-ref/file 1 addition, 0 deletionstests/sources/pip/no-ref/file
- tests/sources/pip/no-ref/target.bst 9 additions, 0 deletionstests/sources/pip/no-ref/target.bst
buildstream/plugins/sources/pip.py
0 → 100644
tests/integration/pip_source.py
0 → 100644
File added
File added
tests/sources/pip.py
0 → 100644
tests/sources/pip/no-packages/file
0 → 100644
tests/sources/pip/no-packages/target.bst
0 → 100644
tests/sources/pip/no-ref/file
0 → 100644
tests/sources/pip/no-ref/target.bst
0 → 100644