-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate minio-py to use latest release 2.2.4 #80
Conversation
90b3f1f
to
37d6a2e
Compare
} | ||
|
||
installDeps() { | ||
pip3 install --user -r ${MINIO_PY_SDK_PATH}/requirements.txt | ||
pip3 install minio==$MINIO_PY_SDK_VERSION | ||
} | ||
|
||
installFunctionalTest() { | ||
curl https://raw.githubusercontent.com/minio/minio-py/${MINIO_PY_SDK_VERSION}/tests/functional/tests.py > /usr/bin/minio-py-functional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of curl
is it a good idea to pull from a specific GitHub tag (release) so we don't get to the issue of having inconsistent tests and SDKs version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is what its doing its picking from the tag. @nitisht
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed that. Thanks @harshavardhana
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall, just one comment.
|
3933a1e
to
49de03e
Compare
build/py/install.sh
Outdated
@@ -21,6 +21,7 @@ set -e | |||
install() { | |||
apt-get install -yq python3 | |||
apt-get install -yq python3-pip | |||
update-alternatives --install /usr/bin/python python /usr/bin/python3.5 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment why this is needed ? not able to guess (is this because there is python 2 by default in ubuntu installation ?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No because there is no /usr/bin/python
and its needed for pretty much all python applications. Also the functional tests which we download /usr/bin/env python
would fail without this.
I don't know if this needs a comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh you mean python3 won't create /usr/bin/python symlink, I think you need to add a comment for this, this is not clear from the first glance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep it doesn't create.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (one comment needed otherwise)
Are all the comments addressed? |
One comment adding what @vadmeste asked.. one minute. |
Also fix unicode support for PYTHON by adding LANG env. docker-library/python@dbe3e24
No description provided.