Skip to content

Commit 0850437

Browse files
authored
docs updates for 0.8.0 release (#870)
* docs updates and script updates for 0.8.0 release
1 parent 4b8f180 commit 0850437

18 files changed

+374
-132
lines changed

.uberenv_config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"spack_packages_path": "scripts/uberenv_configs/packages",
88
"spack_url": "https://github.com/alpine-DAV/spack",
99
"mirror_url": "https://www.ascent-dav.org/mirror/ascent/latest/",
10-
"spack_branch": "ascent/develop",
10+
"spack_branch": "ascent/releases/v0.8.0",
1111
"spack_activate" : { "py-numpy" : ["+python"],
1212
"py-pip" : ["+python"],
1313
"py-mpi4py" : ["+python", "+mpi"],

CHANGELOG.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Notable changes to Ascent are documented in this file. This changelog started on
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project aspires to adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## Unreleased
7+
## [0.8.0] - Released 2022-02-11
88

9-
### Preferred dependency versions for [email protected] (WIP)
10-
9+
### Preferred dependency versions for [email protected]
10+
1111
1212
1313
@@ -21,12 +21,14 @@ and this project aspires to adhere to [Semantic Versioning](https://semver.org/s
2121
- Added `streamline` and `particle_advection` transforms
2222
- Added history gradient expressions
2323
- Added the ability save named sessions
24+
- Added new options to specify Cinema rendering parameters
2425
- Added the ability save subsets of expression results to session files
2526
- Added the ability to add comments to PNG files that Ascent creates
2627
- Added timings out control option to Ascent (and Flow)
2728
- Added support to render Polygonal nd Polyhedral Meshes
2829
- Added option to turn of world annotations
2930
- Added FIDES Support
31+
- Added Spack and Uberenv support for building on Perlmutter
3032

3133
### Fixed
3234
- Fixed a bug where ascent timings files were written out twice
@@ -40,7 +42,7 @@ and this project aspires to adhere to [Semantic Versioning](https://semver.org/s
4042
- Updated to use VTK-m 1.7.0
4143
- Make Ascent Webserver support optional, linked to if Conduit Relay Web support exists
4244
- Simplified the relay extract protocol params, for example can now use `hdf5` instead of `blueprint/mesh/hdf5`
43-
45+
- Updated Spack and Uberenv support for building on Summit
4446

4547
## [0.7.1] - Released 2021-05-20
4648

README.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,27 @@ Ascent
44

55
Ascent is an open source many-core capable lightweight in situ visualization and analysis infrastructure for multi-physics HPC simulations.
66

7+
8+
Learn how to use Ascent with Docker + Jupyter
9+
==============================================
10+
11+
If you have Docker, an easy way to learn about Ascent is to run our prebuilt Docker container:
12+
13+
14+
docker run -p 8888:8888 -t -i alpinedav/ascent-jupyter
15+
16+
17+
Then open http://localhost:8888 in your browser to connect to the Jupyter Server in the container.
18+
The password for the Jupyter server is: **learn**. From here, you can run Ascent's Python Tutorial Notebook examples. For more details see our https://ascent.readthedocs.io/en/latest/Tutorial.html.
19+
20+
721
Documentation
822
=================
923

1024
To get started building and using Ascent, check out the full documentation:
1125

12-
https://alpine-dav.github.io/ascent/
26+
https://ascent.readthedocs.io/en/latest/
27+
1328

1429
Source Repo
1530
=================
@@ -18,6 +33,12 @@ Ascent's source is hosted on GitHub:
1833

1934
https://github.com/Alpine-DAV/ascent
2035

36+
37+
Contributors
38+
=============
39+
https://github.com/Alpine-DAV/ascent/graphs/contributors
40+
41+
2142
License
2243
===========
2344

@@ -31,3 +52,5 @@ or the following files in the Ascent source tree:
3152
Changelog
3253
=========
3354
- [Changelog](/CHANGELOG.md)
55+
56+

scripts/gen_release_tarball.py

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copyright (c) Lawrence Livermore National Security, LLC and other Ascent
2+
# Project developers. See top-level LICENSE AND COPYRIGHT files for dates and
3+
# other details. No copyright assignment is required to contribute to Ascent.
4+
5+
import subprocess
6+
import json
7+
from optparse import OptionParser
8+
9+
def parse_args():
10+
"Parses args from command line"
11+
parser = OptionParser()
12+
parser.add_option("--version",
13+
dest="ver",
14+
default=None,
15+
help="version string")
16+
opts, extras = parser.parse_args()
17+
# we want a dict b/c
18+
opts = vars(opts)
19+
return opts
20+
21+
def shexe(cmd):
22+
print("[shexe: {0}]".format(cmd))
23+
subprocess.call(cmd,shell=True)
24+
25+
def main():
26+
opts = parse_args()
27+
print(json.dumps(opts,indent=2))
28+
shexe("scripts/git_archive_all.py --prefix ascent-v{0} ascent-v{0}-src-with-blt.tar.gz".format(opts["ver"]))
29+
shexe("shasum -a 256 ascent-v{0}-src-with-blt.tar.gz".format(opts["ver"]))
30+
31+
32+
if __name__ == "__main__":
33+
main()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
# Copyright (c) Lawrence Livermore National Security, LLC and other Ascent
2+
# Project developers. See top-level LICENSE AND COPYRIGHT files for dates and
3+
# other details. No copyright assignment is required to contribute to Ascent.
4+
"""
5+
file: gen_relnotes_variants_from_changelog.py
6+
description:
7+
Release helper -- converts change log entries into text for:
8+
- the github release entry
9+
- the sphinx docs release entry
10+
- the release entry for the llnl open source news github url
11+
12+
usage:
13+
python gen_relnotes_variants_from_changelog.py Unreleased
14+
python gen_relnotes_variants_from_changelog.py 0.5.1
15+
16+
note:
17+
assumes CHANGELOG.md is at ".."
18+
"""
19+
20+
import os
21+
import sys
22+
import datetime
23+
24+
def proc_changelog_rel_id_line(l):
25+
active_rel = l.split()[1]
26+
if active_rel.startswith("["):
27+
active_rel =active_rel[1:-1]
28+
return active_rel
29+
30+
def timestamp(t=None,sep="_"):
31+
""" Creates a timestamp that can easily be included in a filename. """
32+
if t is None:
33+
t = datetime.datetime.now()
34+
#sargs = (t.year,t.month,t.day,t.hour,t.minute,t.second)
35+
#sbase = "".join(["%04d",sep,"%02d",sep,"%02d",sep,"%02d",sep,"%02d",sep,"%02d"])
36+
sargs = (t.year,t.month,t.day)
37+
sbase = "".join(["%04d",sep,"%02d",sep,"%02d"])
38+
return sbase % sargs
39+
40+
def ascent_blurb():
41+
return "[Ascent](https://github.com/Alpine-DAV/ascent) is flyweight in situ visualization and analysis runtime for multi-physics HPC simulations"
42+
43+
def gen_llnl_news_entry(release_id,src):
44+
txt = "---\n"
45+
txt += 'title: "Ascent {0} Released"\n'.format(release_id)
46+
txt += 'categories: release\n'
47+
txt += "---\n\n"
48+
txt += ascent_blurb()
49+
txt += "\n"
50+
txt += "\n\n"
51+
txt += "Learn more:\n"
52+
txt += "- [Release notes](https://github.com/Alpine-DAV/ascent/releases/tag/v{0})\n".format(release_id)
53+
txt += "- [Documentation](http://ascent.readthedocs.io/)\n"
54+
txt += "- [GitHub repo](https://github.com/Alpine-DAV/ascent)\n"
55+
return txt
56+
57+
def gen_sphinx_entry(release_id,src):
58+
txt = "v{0}\n".format(release_id)
59+
txt += "---------------------------------\n\n"
60+
txt += "* `Source Tarball <https://github.com/Alpine-DAV/ascent/releases/download/v{0}/ascent-v{0}-src-with-blt.tar.gz>`__\n\n".format(release_id)
61+
txt += "* Docker Containers\n"
62+
txt += " * ``alpinedav/ascent:{0}``\n".format(release_id)
63+
txt += " * ``alpinedav/ascent-jupyter:{0}``\n\n".format(release_id)
64+
txt += "Highlights\n"
65+
txt += "++++++++++++++++++++++++++++++++++++\n\n"
66+
txt += "(Extracted from Ascent's :download:`Changelog <../../../CHANGELOG.md>`)\n\n"
67+
sub_open = False
68+
active_rel = ""
69+
for l in src.split("\n"):
70+
if l.startswith("## "):
71+
sub_open = False
72+
active_rel = proc_changelog_rel_id_line(l)
73+
#print(active_rel)
74+
#print("BEGIN RELEASE {0}",l)
75+
elif l.startswith("### ") and active_rel == release_id:
76+
sub_open = True
77+
sub_title = l[3:].strip()
78+
txt += "\n"+ sub_title +"\n"
79+
txt += "~" * len(sub_title) + "\n\n"
80+
elif l.startswith("#### ") and active_rel == release_id:
81+
sub_open = True
82+
sub_title = l[4:].strip()
83+
txt += "\n* **" + sub_title +"**\n\n"
84+
elif sub_open and active_rel == release_id and l.startswith("-"):
85+
txt += " * " + sphinx_translate_ticks(l[1:].strip())+"\n"
86+
return txt
87+
88+
def sphinx_translate_ticks(l):
89+
# todo, we may need to do a more robust job of this ..
90+
return l.replace("`","``")
91+
92+
def gen_github_entry(release_id,src):
93+
txt = "# {0} Release Highlights\n\n".format(release_id)
94+
txt += "(adapted from Ascent's [Changelog](https://github.com/Alpine-DAV/ascent/blob/develop/CHANGELOG.md)\n"
95+
sub_open = False
96+
active_rel = ""
97+
for l in src.split("\n"):
98+
if l.startswith("## "):
99+
sub_open = False
100+
active_rel = proc_changelog_rel_id_line(l)
101+
#print(active_rel)
102+
#print("BEGIN RELEASE {0}",l)
103+
elif l.startswith("### ") and active_rel == release_id:
104+
sub_open = True
105+
txt += l +"\n"
106+
print("BEGIN SUB {0}",l)
107+
elif sub_open and active_rel == release_id:
108+
txt += l +"\n"
109+
txt += "## Docker Containers\n"
110+
txt += " - **alpinedav/ascent:{0}**\n".format(release_id)
111+
txt += " - **alpinedav/ascent-jupyter:{0}**\n".format(release_id)
112+
return txt
113+
114+
def main():
115+
release_id = "Unreleased"
116+
if len(sys.argv) > 1:
117+
release_id = sys.argv[1]
118+
src = open("../CHANGELOG.md").read()
119+
print("----GITHUB_ENTRY----BEG----")
120+
print(gen_github_entry(release_id,src))
121+
print("----GITHUB_ENTRY----END----")
122+
print("")
123+
print("----SPHINX_ENTRY----BEG----")
124+
print(gen_sphinx_entry(release_id,src))
125+
print("----SPHINX_ENTRY----END----")
126+
print("")
127+
print("----LLNLNEWS_ENTRY----BEG----")
128+
ntxt = gen_llnl_news_entry(release_id,src)
129+
print(ntxt)
130+
print("----LLNLNEWS_ENTRY----END----")
131+
nfile = timestamp(sep="-") + "-ascent.md"
132+
print("[saving llnl news entry to: {0}]".format(nfile))
133+
open(nfile,"w").write(ntxt)
134+
135+
136+
if __name__ == "__main__":
137+
main()
138+

scripts/spack_install/olcf_summit_gcc_9.1.0_cuda_install.sh

-30
This file was deleted.

scripts/spack_install/olcf_summit_gcc_9.1.0_openmp_install.sh

-30
This file was deleted.

src/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cmake_policy(SET CMP0048 NEW)
1111
# Ascent
1212
################################
1313

14-
project(ascent VERSION "0.7.1")
14+
project(ascent VERSION "0.8.0")
1515

1616
################################
1717
# Build Options

0 commit comments

Comments
 (0)