Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The client here will eventually be released as "spython" (and eventually to
singularity on pypi), and the versions here will coincide with these releases.

## [master](https://github.com/singularityhub/singularity-cli/tree/master)
- fixing warning for files, only relevant for sources (0.0.59)
- deprecating pulling by commit or hash, not supported for Singularity (0.0.58)
- export command added back, points to build given Singularity 3.x+
- print but with logger, should be println (0.0.57)
Expand Down
10 changes: 7 additions & 3 deletions spython/main/parse/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,13 @@ def _add_files(self, source, dest):
if path == ".":
paths[pathtype] = os.getcwd()

# Warning if doesn't exist
if not os.path.exists(path):
bot.warning("%s doesn't exist, ensure exists for build" %path)
# Warn the user Singularity doesn't support expansion
if path.contains('*'):
bot.warning("Singularity doesn't support expansion, * found in %s" % path)

# Warning if file/folder (src) doesn't exist
if pathtype == "source" and not os.path.exists(path):
bot.warning("%s doesn't exist, ensure exists for build" % path)

# The pair is added to the files as a list
self.files.append([paths['source'], paths['dest']])
Expand Down
2 changes: 1 addition & 1 deletion spython/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# with this file, You can obtain one at http://mozilla.org/MPL/2.0/.


__version__ = "0.0.58"
__version__ = "0.0.59"
AUTHOR = 'Vanessa Sochat'
AUTHOR_EMAIL = 'vsochat@stanford.edu'
NAME = 'spython'
Expand Down