From 4bc2316d54e48bc88324f4e30a9e65bef472b23a Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Thu, 14 Oct 2021 20:20:56 -0600 Subject: [PATCH 1/2] Make web_portal seciton if it doesn't exist --- mache/machine_info.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mache/machine_info.py b/mache/machine_info.py index 8e0ab9aa..600debbe 100644 --- a/mache/machine_info.py +++ b/mache/machine_info.py @@ -95,6 +95,8 @@ def __init__(self, machine=None): self.web_portal_url = None self.username = pwd.getpwuid(os.getuid()).pw_name + if not self.config.has_section('web_portal'): + self.config.add_section('web_portal') self.config.set('web_portal', 'username', self.username) def __str__(self): From 629c776002f189c73da0fa3e2730327f8a8ced6d Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Thu, 14 Oct 2021 20:21:22 -0600 Subject: [PATCH 2/2] Update to 1.1.1 --- conda/meta.yaml | 2 +- mache/__init__.py | 2 +- setup.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conda/meta.yaml b/conda/meta.yaml index d6b2a71c..abf6b58b 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -1,5 +1,5 @@ {% set name = "mache" %} -{% set version = "1.1.0" %} +{% set version = "1.1.1" %} package: name: {{ name|lower }} diff --git a/mache/__init__.py b/mache/__init__.py index 499f7dde..f000761f 100644 --- a/mache/__init__.py +++ b/mache/__init__.py @@ -1,5 +1,5 @@ from mache.machine_info import MachineInfo from mache.discover import discover_machine -__version_info__ = (1, 1, 0) +__version_info__ = (1, 1, 1) __version__ = '.'.join(str(vi) for vi in __version_info__) diff --git a/setup.cfg b/setup.cfg index 164fc940..036d8853 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = mache -version = 1.1.0 +version = 1.1.1 author = Xylar Asay-Davis author_email = xylar@lanl.gov description = A package for providing configuration data relate to E3SM supported machines