algorithmiaio / langpacks

Standardized builder and runners for Algorithmia algorithms
https://algorithmia.com/
MIT License
16 stars 9 forks source link

Added python38 (3.8.6) support with pip v20.2.4 #168

Closed aslisabanci closed 4 years ago

aslisabanci commented 4 years ago

Hey James, this branch is adding Python38 support with the Dockerfile under libraries, installing Python v3.8.6 with pip v20.2.4.

Tested on deeppurple for 2 different algorithms but will continue testing this further. For now it works okay for

  1. An algorithm that's failing on the marketplace on python37 env:

    ./tools/environment_validator.py -b ubuntu:16.04 -g python3 -s python38 -t dependency -n albert_classification -c 1 -k sim0/CA0mCa6Xz3FAkyoHb45G5I1

    verified with:

    curl localhost:9999 -H 'Content-Type: application/json' -d '{ "texts": "asli" }'
  2. Testing with the usual TF template on CPU:

    ./tools/environment_validator.py -b ubuntu:16.04 -g python3 -s python38 -d tensorflow-cpu-2.3 -t dependency -n tensorflow-cpu-2.3 -c 1

    verified with:

    curl localhost:9999 -H 'Content-Type: application/json' -d '{ "matrix_a": [[0, 1], [1, 0]], "matrix_b": [[25, 25], [11, 11]] }'

Thanks as always for the review!