From 1960ebc651bd13ec77c823cad18c3862fb87416b Mon Sep 17 00:00:00 2001 From: Samuel Neugber Date: Thu, 28 Mar 2024 18:00:11 +0100 Subject: [PATCH] Pass 'bridge' parameter down into relevant function when calling 'up' (#69) * Pass 'bridge' parameter down into relevant function when calling 'up' * Bump version and update changelog * Run black --- CHANGELOG.md | 1 + scompose/__init__.py | 1 + scompose/project/project.py | 4 +--- scompose/version.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb99159..0f99d2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are: The versions coincide with releases on pypi. ## [0.1.x](https://github.com/singularityhub/singularity-compose/tree/master) (0.1.x) + - fix 'bridge' option for 'up' command (0.1.18) - add support for instance replicas (0.1.17) - fix check command validation (0.1.16) - fix a bug triggered when using startoptions in conjunction with network=false (0.1.15) diff --git a/scompose/__init__.py b/scompose/__init__.py index 0ff11c9..baf92fb 100644 --- a/scompose/__init__.py +++ b/scompose/__init__.py @@ -7,4 +7,5 @@ with this file, You can obtain one at http://mozilla.org/MPL/2.0/. """ + from .version import __version__ diff --git a/scompose/project/project.py b/scompose/project/project.py index 420c2a4..a16f365 100644 --- a/scompose/project/project.py +++ b/scompose/project/project.py @@ -453,7 +453,6 @@ def down(self, names=None, timeout=None): def create( self, names=None, writable_tmpfs=True, bridge="10.22.0.0/16", no_resolv=False ): - """ Call the create function, which defaults to the command instance.create() """ @@ -466,7 +465,6 @@ def up( bridge="10.22.0.0/16", no_resolv=False, ): - """ Call the up function, instance.up(). @@ -476,6 +474,7 @@ def up( names, command="up", writable_tmpfs=writable_tmpfs, + bridge=bridge, no_resolv=no_resolv, ) @@ -487,7 +486,6 @@ def _create( bridge="10.22.0.0/16", no_resolv=False, ): - """ Create one or more instances. diff --git a/scompose/version.py b/scompose/version.py index 85b4d0a..28538b7 100644 --- a/scompose/version.py +++ b/scompose/version.py @@ -8,7 +8,7 @@ """ -__version__ = "0.1.17" +__version__ = "0.1.18" AUTHOR = "Vanessa Sochat" AUTHOR_EMAIL = "vsoch@users.noreply.github.com" NAME = "singularity-compose"