add deprecation
This commit is contained in:
parent
27a3fe4718
commit
dba0b1550c
2 changed files with 11 additions and 3 deletions
|
@ -5,10 +5,13 @@
|
||||||
# Setup
|
# Setup
|
||||||
```
|
```
|
||||||
sudo apt install python3-pip
|
sudo apt install python3-pip
|
||||||
#sudo pip3 install pip3 --upgrade
|
sudo pip3 install pip3 --upgrade --user
|
||||||
pip3 install --pre pybuilder ddadevops --user
|
pip3 install --pre pybuilder ddadevops deprecation --user
|
||||||
pip3 install boto3 python-terraform --user
|
|
||||||
export PATH=$PATH:~/.local/bin
|
export PATH=$PATH:~/.local/bin
|
||||||
|
# in case of using terraform
|
||||||
|
pip3 install python-terraform --user
|
||||||
|
# in case of using AwsMixin
|
||||||
|
pip3 install boto3 --user
|
||||||
```
|
```
|
||||||
|
|
||||||
# Example Build
|
# Example Build
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
from subprocess import check_output, call
|
from subprocess import check_output, call
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import deprecation
|
||||||
|
|
||||||
|
@deprecation.deprecated(deprecated_in="0.5.0", removed_in="1.0",
|
||||||
|
details='use gopass_password_from_path(os.environ.get(env_var, None)) instead')
|
||||||
def gopass_credential_from_env_path (env_var):
|
def gopass_credential_from_env_path (env_var):
|
||||||
env_path = os.environ.get(env_var, None)
|
env_path = os.environ.get(env_var, None)
|
||||||
return gopass_password_from_path(env_path)
|
return gopass_password_from_path(env_path)
|
||||||
|
|
||||||
|
@deprecation.deprecated(deprecated_in="0.5.0", removed_in="1.0",
|
||||||
|
details='use gopass_password_from_path(path) instead')
|
||||||
def gopass_credential_from_path (path):
|
def gopass_credential_from_path (path):
|
||||||
return gopass_password_from_path(path)
|
return gopass_password_from_path(path)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue