Skip to content

Commit

Permalink
fix(stapel): disable python 2 deprecation warning in ansible builder
Browse files Browse the repository at this point in the history
```
│ │ x/install  /.werf/stapel/embedded/lib/python2.7/site-packages/ansible/parsing/vault/__init__.py:41: CryptographyDeprecationWarning: Python 2 is    ↵
│ │ x/install  no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
│ │ x/install    from cryptography.exceptions import InvalidSignature
```
  • Loading branch information
distorhead committed Oct 18, 2021
1 parent 4bfba02 commit 00d9834
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/stapel/stapel.go
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/werf/werf/pkg/docker"
)

const VERSION = "0.7.0"
const VERSION = "0.7.1"
const IMAGE = "ghcr.io/werf/stapel"

func getVersion() string {
Expand Down
2 changes: 2 additions & 0 deletions stapel/Dockerfile
Expand Up @@ -596,6 +596,8 @@ mv /tmp/UNICODE.so $TOOLS/lib/gconv

RUN find $TOOLS/embedded/lib/python2.7 -name *.py[oc] | xargs rm

RUN sed -i -e 's|if sys.version_info\[0\] == 2:|if False:|g' $TOOLS/embedded/lib/python2.7/site-packages/cryptography/__init__.py

RUN mkdir /tmp/bin && \
cp $TOOLS/bin/gpg* /tmp/bin && \
cp $TOOLS/bin/gnutls* /tmp/bin && \
Expand Down

0 comments on commit 00d9834

Please sign in to comment.