prompt for gopass only if certain environment is set
This commit is contained in:
parent
32ae618fd6
commit
b08e201a03
1 changed files with 11 additions and 3 deletions
14
build.py
14
build.py
|
@ -10,14 +10,22 @@ PROJECT_ROOT_PATH = "."
|
|||
version = "1.9.2-dev"
|
||||
|
||||
|
||||
@init(environments=["na"])
|
||||
def initialize1(project):
|
||||
@init
|
||||
def initialize0(project):
|
||||
"""
|
||||
to avoid prompt for gopass if no artifacts need to be uploaded
|
||||
usage: with option "-E ng" , e.g. "pyb -E na patch_local"
|
||||
usage: with option "-E ng" , e.g. "pyb -E artifacts patch_local"
|
||||
"""
|
||||
os.environ["RELEASE_ARTIFACT_TOKEN"] = "dummy" # avoids prompt for RELEASE_ARTIFACT_TOKEN
|
||||
|
||||
@init(environments=["artifacts"])
|
||||
def initialize1(project):
|
||||
"""
|
||||
prompt for gopass if no artifacts need to be uploaded
|
||||
usage: with option "-E artifacts" , e.g. "pyb -E artifacts patch_local"
|
||||
"""
|
||||
del os.environ["RELEASE_ARTIFACT_TOKEN"]
|
||||
|
||||
|
||||
@init
|
||||
def initialize2(project):
|
||||
|
|
Loading…
Reference in a new issue