diff options
author | Chandan Singh <csingh43@bloomberg.net> | 2018-07-30 19:41:57 +0100 |
---|---|---|
committer | Chandan Singh <csingh43@bloomberg.net> | 2018-08-15 19:23:04 +0100 |
commit | a7a8265090eaba5cb99fec7ad9acbadb84e998de (patch) | |
tree | 4c50fcebe239766250e978a1eefd26c269555679 /tests/integration/project/files | |
parent | 9d2442b2794d7a531f50b3f1f9a0c6e4236bd9be (diff) | |
download | buildstream-a7a8265090eaba5cb99fec7ad9acbadb84e998de.tar.gz |
Add pip source plugin
`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.
Diffstat (limited to 'tests/integration/project/files')
-rw-r--r-- | tests/integration/project/files/pip-source/app1.py | 11 | ||||
-rw-r--r-- | tests/integration/project/files/pip-source/myreqs.txt | 1 | ||||
-rw-r--r-- | tests/integration/project/files/pypi-repo/app2/App2-0.1.tar.gz | bin | 0 -> 769 bytes | |||
-rw-r--r-- | tests/integration/project/files/pypi-repo/app2/index.html | 8 | ||||
-rw-r--r-- | tests/integration/project/files/pypi-repo/hellolib/HelloLib-0.1.tar.gz | bin | 0 -> 734 bytes | |||
-rw-r--r-- | tests/integration/project/files/pypi-repo/hellolib/index.html | 8 |
6 files changed, 28 insertions, 0 deletions
diff --git a/tests/integration/project/files/pip-source/app1.py b/tests/integration/project/files/pip-source/app1.py new file mode 100644 index 000000000..ab1005ba4 --- /dev/null +++ b/tests/integration/project/files/pip-source/app1.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 + +from hellolib import hello + + +def main(): + hello('App1') + + +if __name__ == '__main__': + main() diff --git a/tests/integration/project/files/pip-source/myreqs.txt b/tests/integration/project/files/pip-source/myreqs.txt new file mode 100644 index 000000000..c805aae53 --- /dev/null +++ b/tests/integration/project/files/pip-source/myreqs.txt @@ -0,0 +1 @@ +hellolib diff --git a/tests/integration/project/files/pypi-repo/app2/App2-0.1.tar.gz b/tests/integration/project/files/pypi-repo/app2/App2-0.1.tar.gz Binary files differnew file mode 100644 index 000000000..86cb43cfe --- /dev/null +++ b/tests/integration/project/files/pypi-repo/app2/App2-0.1.tar.gz diff --git a/tests/integration/project/files/pypi-repo/app2/index.html b/tests/integration/project/files/pypi-repo/app2/index.html new file mode 100644 index 000000000..5bc72e47c --- /dev/null +++ b/tests/integration/project/files/pypi-repo/app2/index.html @@ -0,0 +1,8 @@ +<html> + <head> + <title>Links for app1</title> + </head> + <body> + <a href='App2-0.1.tar.gz'>App2-0.1.tar.gz</a><br /> + </body> +</html> diff --git a/tests/integration/project/files/pypi-repo/hellolib/HelloLib-0.1.tar.gz b/tests/integration/project/files/pypi-repo/hellolib/HelloLib-0.1.tar.gz Binary files differnew file mode 100644 index 000000000..3b0884c66 --- /dev/null +++ b/tests/integration/project/files/pypi-repo/hellolib/HelloLib-0.1.tar.gz diff --git a/tests/integration/project/files/pypi-repo/hellolib/index.html b/tests/integration/project/files/pypi-repo/hellolib/index.html new file mode 100644 index 000000000..eb9935c7f --- /dev/null +++ b/tests/integration/project/files/pypi-repo/hellolib/index.html @@ -0,0 +1,8 @@ +<html> + <head> + <title>Links for app1</title> + </head> + <body> + <a href='HelloLib-0.1.tar.gz'>HelloLib-0.1.tar.gz</a><br /> + </body> +</html> |