Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
updating to python 3.8 after rebasing on latest master
Browse files Browse the repository at this point in the history
  • Loading branch information
ma-hei committed Sep 14, 2020
1 parent 6cbdfa5 commit 17e403d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
5 changes: 4 additions & 1 deletion ci/docker/Dockerfile.build.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
libnuma-dev \
## Frontend languages
# Python
python3 \
python3.8 \
python3.8-dev \
python3-pip \
## Documentation
doxygen \
Expand All @@ -98,6 +99,8 @@ RUN cd /usr/local/src && \
cd /usr/local/src && \
rm -rf ccache

RUN rm /usr/bin/python3 && ln -s /usr/bin/python3.8 /usr/bin/python3

# RAT License Checker tool
RUN cd /usr/local/src && \
wget https://archive.apache.org/dist/creadur/apache-rat-0.13/apache-rat-0.13-bin.tar.gz && \
Expand Down
13 changes: 8 additions & 5 deletions ci/docker/install/requirements
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,19 @@ graphviz<0.9.0,>=0.8.1
contextvars;python_version<"3.7"

# Optional dependencies
onnx==1.5.0
onnx==1.5.0;python_version<"3.8"
onnx==1.7.0;python_version=="3.8"
# protobuf version frozen due to ps-lite
protobuf==3.5.2
scipy==1.4.1
tabulate==0.7.5
Cython==0.29.7
Cython==0.29.7;python_version<"3.8"
Cython==0.29.19;python_version=="3.8"

# Development dependencies
cpplint==1.3.0
pylint==2.3.1 # pylint and astroid need to be aligned
astroid==2.3.3 # pylint and astroid need to be aligned
pylint==2.5.1 # pylint and astroid need to be aligned
astroid==2.4.2 # pylint and astroid need to be aligned
pytest==5.3.5
pytest-env==0.6.2
pytest-cov==2.8.1
Expand All @@ -54,4 +56,5 @@ boto3==1.9.229
h5py==2.10.0
# TODO(szha): remove once clean-up for py2 is complete
six==1.11.0
Pillow<6
Pillow<6;python_version<"3.8"
Pillow==7.1.2;python_version=="3.8"
9 changes: 8 additions & 1 deletion ci/other/pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,14 @@ disable=
too-many-statements,
too-many-lines,
duplicate-code,
cyclic-import
cyclic-import,
import-outside-toplevel,
unnecessary-comprehension,
no-else-continue,
self-assigning-variable,
no-else-break,
not-callable,
unbalanced-tuple-unpacking

# disable=unicode-builtin,delslice-method,using-cmp-argument,setslice-method,dict-view-method,parameter-unpacking,range-builtin-not-iterating,print-statement,file-builtin,old-raise-syntax,basestring-builtin,execfile-builtin,indexing-exception,import-star-module-level,coerce-method,long-builtin,old-ne-operator,old-division,no-absolute-import,raw_input-builtin,old-octal-literal,oct-method,xrange-builtin,hex-method,unpacking-in-except,nonzero-method,raising-string,intern-builtin,reload-builtin,metaclass-assignment,cmp-method,filter-builtin-not-iterating,apply-builtin,map-builtin-not-iterating,next-method-called,unichr-builtin,buffer-builtin,dict-iter-method,input-builtin,coerce-builtin,getslice-method,useless-suppression,standarderror-builtin,zip-builtin-not-iterating,suppressed-message,cmp-builtin,backtick,long-suffix,reduce-builtin,round-builtin

Expand Down

0 comments on commit 17e403d

Please sign in to comment.