Skip to content

Commit ab7f9fd

Browse files
authored
Add Python 3.12 (#98)
1 parent 8aa88ef commit ab7f9fd

File tree

6 files changed

+495
-0
lines changed

6 files changed

+495
-0
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

epicbox-python/3.12/Dockerfile

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
FROM python:3.12.3-slim-bookworm
2+
MAINTAINER Stepik Team <[email protected]>
3+
4+
ENV DEBIAN_FRONTEND=noninteractive
5+
ENV PYTHONDONTWRITEBYTECODE=1
6+
ENV NLTK_DIR=/usr/local/nltk_data
7+
ENV MYSTEM_DIR=/usr/local/bin
8+
9+
RUN apt-get update && apt-get install -y --no-install-recommends \
10+
build-essential \
11+
default-libmysqlclient-dev \
12+
gfortran \
13+
libblas-dev \
14+
libbz2-dev \
15+
libffi-dev \
16+
libfreetype6-dev \
17+
libgdbm-dev \
18+
libgeos-dev \
19+
libjpeg-dev \
20+
liblapack-dev \
21+
liblzma-dev \
22+
libncursesw5-dev \
23+
libreadline-dev \
24+
libsqlite3-dev \
25+
libssl-dev \
26+
libxml2-dev \
27+
libxslt-dev \
28+
libz-dev \
29+
locales \
30+
pkg-config \
31+
uuid-dev \
32+
wget \
33+
zlib1g-dev \
34+
&& rm -rf /var/lib/apt/lists/* \
35+
&& sed -i '/\(en_US.UTF-8\|ru_RU.UTF-8\)/s/^# //g' /etc/locale.gen \
36+
&& locale-gen
37+
38+
COPY requirements.txt /tmp
39+
40+
RUN pip install --no-cache-dir --root-user-action=ignore -r /tmp/requirements.txt \
41+
&& python -m nltk.downloader -d ${NLTK_DIR} averaged_perceptron_tagger brown gutenberg movie_reviews omw-1.4 punkt treebank word2vec_sample wordnet \
42+
&& wget -qO- https://download.cdn.yandex.net/mystem/mystem-3.1-linux-64bit.tar.gz | tar xvz -C ${MYSTEM_DIR} \
43+
&& rm /tmp/requirements.txt \
44+
&& rm -Rf /root/.cache/
45+
46+
RUN useradd -M -d /sandbox sandbox \
47+
&& mkdir /sandbox \
48+
&& chown sandbox:sandbox /sandbox
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
stepic_bioinformatics @ https://github.com/StepicOrg/stepik-bioinformatics/archive/1.0.0.zip#sha256=d467a0e6bef6f421d14f849f2aa461a151e8c8ff1ee58b473649fa07140ed415
2+
stepic_common @ https://github.com/StepicOrg/stepik-common/archive/1.0.0.zip#sha256=aef2548abd7c083a9dad77dc33f20b7aa0918c80d3177876d165973bcf19e254
3+
stepic_utils @ https://github.com/StepicOrg/stepik-utils/archive/1.2.0.zip#sha256=912598af26ac31b752a0ee26293a1fe529c0188c495ba6b11d769294d129a3ba
4+
stepik_alignment @ https://github.com/StepicOrg/stepik-alignment/archive/1.1.0.zip#sha256=afcb3693fbef4b429b67d6651c4bd782bb26470821561ead0fb98e69ed45c10e
5+
6+
sympy==1.12
7+
numpy==1.26.4
8+
scipy==1.12.0
9+
pandas==2.2.2
10+
lxml==5.2.1
11+
beautifulsoup4==4.12.3
12+
toolz==0.12.1
13+
# Cython is required by scikit-image
14+
# Cython==0.29.26 ???
15+
matplotlib==3.8.4
16+
networkx==3.3
17+
scikit-image==0.23.2
18+
scikit-learn==1.4.2
19+
# rsa to check encrypted tokens
20+
rsa==4.9
21+
# natural language processing
22+
nltk==3.8.1
23+
pymorphy2==0.9.1
24+
pymorphy2-dicts-ru==2.4.417127.4579844
25+
pymystem3==0.2.0
26+
sumy==0.11.0
27+
gensim==4.3.2
28+
fasttext==0.9.2
29+
30+
mip==1.14.2
31+
shapely==2.0.4
32+
pycosat==0.6.6
33+
34+
# Hardware description and verification language for hardware engineers.
35+
myhdl==0.11.45
36+
37+
# Hyperskill
38+
Django==5.0.6
39+
40+
# Stepik Academy
41+
djangorestframework==3.15.1
42+
43+
# For testing
44+
factory-boy==3.3
45+
faker==25.0.1
46+
hypothesis==6.100.4
47+
48+
opencv-python-headless==4.9.0.80
49+
50+
pysqlite3-binary==0.5.2.post3
51+
52+
# required by admin quiz
53+
pytest==8.2.0
54+
requests==2.31.0
55+
56+
# required by sql challenge
57+
mysqlclient==2.2.4
58+
59+
SQLAlchemy==2.0.30
60+
prettytable==3.10.0
61+
pydantic==2.7.1
62+
loguru==0.7.2
63+
fastapi==0.111.0
64+
sqlmodel==0.0.18
65+
emoji==2.11.1
66+
python-sat==1.8.dev12
67+
68+
# Flask
69+
Flask==3.0.3
70+
Flask-WTF==1.2.1
71+
Flask-RESTful==0.3.10
72+
flask-smorest==0.44.0

0 commit comments

Comments
 (0)