add deprecation

This commit is contained in:
jem 2020-04-15 14:26:48 +02:00
parent 27a3fe4718
commit dba0b1550c
2 changed files with 11 additions and 3 deletions

View file

@ -5,10 +5,13 @@
# Setup
```
sudo apt install python3-pip
#sudo pip3 install pip3 --upgrade
pip3 install --pre pybuilder ddadevops --user
pip3 install boto3 python-terraform --user
sudo pip3 install pip3 --upgrade --user
pip3 install --pre pybuilder ddadevops deprecation --user
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

View file

@ -1,11 +1,16 @@
from subprocess import check_output, call
import os
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):
env_path = os.environ.get(env_var, None)
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):
return gopass_password_from_path(path)