-
Notifications
You must be signed in to change notification settings - Fork 6
Geolab base 0.2.0 #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sparafina-earthscope
wants to merge
22
commits into
main
Choose a base branch
from
geolab-base-0.2.0
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
85070aa
add graphviz/seisbench & tests
sparafina-earthscope 359c786
changes for 0.2.0 version
sparafina-earthscope 8dbbcf4
added nano, removed seisbench test
sparafina-earthscope 304e9ad
add viz package and test
sparafina-earthscope 4a7e66c
add changelog, update version
sparafina-earthscope 4283c64
Stop overriding manual RELEASE_VERSION with a timestamp
sparafina-earthscope 36821ec
Pass GEOLAB_VERSION build-arg for geolab-base 0.2.0 release
sparafina-earthscope abbc516
Fail the build if GEOLAB_VERSION is empty
sparafina-earthscope 43b611e
Remove default value for GEOLAB_VERSION build-arg
sparafina-earthscope 9ed1c3f
Document GEOLAB_VERSION build-arg and manual changelog update
sparafina-earthscope 1db849c
update gitlab-ci.yml to set version number by CI
sparafina-earthscope 9ac372a
Merge branch 'main' into geolab-base-0.2.0
sparafina-earthscope 562b655
Make GEOLAB_VERSION a pipeline variable instead of a literal
sparafina-earthscope 2bf0027
Remove default value for GEOLAB_VERSION pipeline variable
sparafina-earthscope 2c39cb9
Document GEOLAB_VERSION as a required GitLab CI pipeline variable
sparafina-earthscope b42c6e8
fix conflict with gitlab-ci
sparafina-earthscope 0281add
set GEOLAB_VERSION=${IMAGE_VERSION} to set version in image
sparafina-earthscope 59587f4
updated README and test_notebook.ipynb
sparafina-earthscope 5615628
merged README with GeoLab docs Building a Custom Web Image
sparafina-earthscope 4c7c124
Add README2.md: snapshot of geolab-base README from gmt branch
sparafina-earthscope 20accc6
check links, add process image, review text
sparafina-earthscope f7b27a8
update CHANGELOG
sparafina-earthscope File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # Changelog | ||
|
|
||
| All notable changes to this project will be documented in this file. | ||
|
|
||
| ## [0.2.0] | ||
|
|
||
| ### Added | ||
|
|
||
| - pin base image to pangeo-base:04bb14b | ||
| - add geolab-base version as ENV GEOLAB_VERSION (set during CI build) | ||
| - add graphviz package | ||
| - add pygraphviz package | ||
| - add ipycytoscape | ||
| - added tests for new packages | ||
| - add build_process.png for README | ||
|
|
||
| ### Changed | ||
|
|
||
| - removed test_packages.py | ||
| - moved test_notebook functions to test_helpers.py module to make it easier for users to import when writing tests | ||
| - updated test_notebook.ipynb to use test_helpers functions | ||
| - updated README to match Building Custom Images in docs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
sparafina-earthscope marked this conversation as resolved.
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,3 +4,4 @@ git | |
| gmt-dcw | ||
| gmt-gshhg | ||
| make | ||
| nano | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| """Helpers for smoke-testing installed packages and CLI tools.""" | ||
|
|
||
| import importlib | ||
| import shutil | ||
| import subprocess | ||
|
|
||
| RESULTS = [] | ||
|
|
||
|
|
||
| def reset(): | ||
| """Clear RESULTS — call before a fresh run in a long-lived kernel.""" | ||
| RESULTS.clear() | ||
|
|
||
|
|
||
| def py(modname, alias=None, smoke=None): | ||
| """Import `modname` and optionally run `smoke(mod)` as a sanity check.""" | ||
| label = alias or modname | ||
| try: | ||
| mod = importlib.import_module(modname) | ||
| if smoke is not None: | ||
| smoke(mod) | ||
| version = getattr(mod, '__version__', '') | ||
| RESULTS.append((label, 'OK', str(version), '')) | ||
| except Exception as exc: | ||
| RESULTS.append((label, 'FAIL', '', f'{type(exc).__name__}: {exc}')) | ||
|
|
||
|
|
||
| def cli(cmd, version_flag='--version'): | ||
| """Verify `cmd` is on $PATH and responds to a version flag.""" | ||
| path = shutil.which(cmd) | ||
| if not path: | ||
| RESULTS.append((cmd, 'FAIL', '', 'not on $PATH')) | ||
| return | ||
| try: | ||
| r = subprocess.run([cmd, version_flag], | ||
| capture_output=True, text=True, timeout=10) | ||
| line = (r.stdout or r.stderr).strip().splitlines() | ||
| version = line[0] if line else 'on PATH' | ||
| RESULTS.append((cmd, 'OK', version[:80], '')) | ||
| except Exception as exc: | ||
| RESULTS.append((cmd, 'OK', 'on PATH', f'{type(exc).__name__}')) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.