Jonathan Maw pushed to branch jonathan/expose-downloadablefilesource at BuildStream / buildstream
Commits:
-
3052377f
by Jonathan Maw at 2018-08-28T14:04:45Z
5 changed files:
- buildstream/__init__.py
- buildstream/plugins/sources/_downloadablefilesource.py → buildstream/downloadablefilesource.py
- buildstream/plugins/sources/remote.py
- buildstream/plugins/sources/tar.py
- buildstream/plugins/sources/zip.py
Changes:
... | ... | @@ -34,3 +34,4 @@ if "_BST_COMPLETION" not in os.environ: |
34 | 34 |
from .element_enums import Scope
|
35 | 35 |
from .buildelement import BuildElement
|
36 | 36 |
from .scriptelement import ScriptElement
|
37 |
+ from .downloadablefilesource import DownloadableFileSource
|
1 |
-"""A base abstract class for source implementations which download a file"""
|
|
1 |
+"""
|
|
2 |
+DownloadableFileSource - Abstract class for downloading files
|
|
3 |
+=============================================================
|
|
4 |
+A base abstract class for source implementations which download a file.
|
|
5 |
+"""
|
|
2 | 6 |
|
3 | 7 |
import os
|
4 | 8 |
import urllib.request
|
... | ... | @@ -55,8 +55,7 @@ remote - stage files from remote urls |
55 | 55 |
|
56 | 56 |
"""
|
57 | 57 |
import os
|
58 |
-from buildstream import SourceError, utils
|
|
59 |
-from ._downloadablefilesource import DownloadableFileSource
|
|
58 |
+from buildstream import SourceError, utils, DownloadableFileSource
|
|
60 | 59 |
|
61 | 60 |
|
62 | 61 |
class RemoteSource(DownloadableFileSource):
|
... | ... | @@ -62,8 +62,7 @@ from tempfile import TemporaryFile |
62 | 62 |
|
63 | 63 |
from buildstream import SourceError
|
64 | 64 |
from buildstream import utils
|
65 |
- |
|
66 |
-from ._downloadablefilesource import DownloadableFileSource
|
|
65 |
+from buildstream import DownloadableFileSource
|
|
67 | 66 |
|
68 | 67 |
|
69 | 68 |
class TarSource(DownloadableFileSource):
|
... | ... | @@ -63,8 +63,7 @@ import stat |
63 | 63 |
|
64 | 64 |
from buildstream import SourceError
|
65 | 65 |
from buildstream import utils
|
66 |
- |
|
67 |
-from ._downloadablefilesource import DownloadableFileSource
|
|
66 |
+from buildstream import DownloadableFileSource
|
|
68 | 67 |
|
69 | 68 |
|
70 | 69 |
class ZipSource(DownloadableFileSource):
|