Skip to content

Commit 7701dbb

Browse files
authored
support pulling from https (#176)
* support pulling from https * wrong version in changelog Signed-off-by: vsoch <[email protected]> Co-authored-by: vsoch <[email protected]>
1 parent 130366c commit 7701dbb

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ The client here will eventually be released as "spython" (and eventually to
1717
singularity on pypi), and the versions here will coincide with these releases.
1818

1919
## [master](https://github.com/singularityhub/singularity-cli/tree/master)
20-
- add more verbosity to instance start/stop (0.0.12)
20+
- adding support to pull from a url (0.1.13)
21+
- add more verbosity to instance start/stop (0.1.12)
2122
- adding more verbosity to running commands (0.1.11)
2223
- log error paths are optional (0.1.1)
2324
- instance list doesn't always include container_image (0.1.0)

spython/main/pull.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ def pull(
6060
bot.exit("You must provide an image uri, or use client.load() first.")
6161

6262
# Singularity Only supports shub, docker and library pull
63-
if not re.search("^(shub|docker|library)://", image):
64-
bot.exit("pull only valid for docker, shub and library. Use sregistry client.")
63+
if not re.search("^(shub|docker|library|https)://", image):
64+
bot.exit(
65+
"pull only valid for docker, https, shub and library. Use sregistry client."
66+
)
6567

6668
# If we still don't have a custom name, base off of image uri.
6769
if name is None:

spython/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
66

77

8-
__version__ = "0.1.12"
8+
__version__ = "0.1.13"
99
AUTHOR = "Vanessa Sochat"
1010
AUTHOR_EMAIL = "[email protected]"
1111
NAME = "spython"

0 commit comments

Comments
 (0)