File tree 3 files changed +8
-25
lines changed
3 files changed +8
-25
lines changed Original file line number Diff line number Diff line change @@ -47,21 +47,17 @@ RUN apk add --no-cache \
47
47
yq
48
48
49
49
COPY requirements.txt /opt/mautrix-telegram/requirements.txt
50
- COPY optional-requirements.txt /opt/mautrix-telegram/optional-requirements.txt
51
50
WORKDIR /opt/mautrix-telegram
52
- RUN apk add --virtual .build-deps \
53
- python3-dev \
54
- libffi-dev \
55
- build-base \
56
- && sed -Ei 's/psycopg2-binary.+//' optional-requirements.txt \
57
- # TODO: unpin Pillow here after it's updated in Alpine
58
- && pip3 install -r requirements.txt -r optional-requirements.txt 'pillow==8.2' \
59
- && apk del .build-deps
60
51
61
52
COPY . /opt/mautrix-telegram
62
- RUN apk add git && pip3 install .[speedups,hq_thumbnails,metrics,e2be] \
63
- && pip3 install 'git+https://github.com/vector-im/mautrix-python@bump-conn-pool-limit#egg=mautrix' \
53
+ RUN apk add git \
54
+ && apk add --virtual .build-deps python3-dev libffi-dev build-base \
55
+ && pip3 install .[speedups,hq_thumbnails,metrics,e2be] \
56
+ # TODO: unpin Pillow here after it's updated in Alpine
57
+ && pip3 install -r requirements.txt 'pillow==8.2' \
58
+ && pip3 install 'git+https://github.com/vector-im/mautrix-python@v0.11.4-mod-2#egg=mautrix' \
64
59
&& apk del git \
60
+ && apk del .build-deps \
65
61
&& cp mautrix_telegram/example-config.yaml . && rm -rf mautrix_telegram
66
62
67
63
VOLUME /data
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ The Element fork includes the following changes:
5
5
- Make max_initial_member_sync work for Chats as well as Channels https://github.com/mautrix/telegram/pull/680
6
6
- Allow disabling user status updates from Telegram side https://github.com/vector-im/mautrix-telegram/pull/9
7
7
- Add ` psycopg2 ` , ` uvloop ` to requirements.txt, install_requires https://github.com/vector-im/mautrix-telegram/pull/10/files
8
+ - Add metrics about Matrix API calls https://github.com/mautrix/python/pull/68
8
9
9
10
Some changes that appear here may get upstreamed to https://github.com/mautrix/telegram , and will be removed from
10
11
the list when they appear in both versions.
Original file line number Diff line number Diff line change 6
6
with open ("requirements.txt" ) as reqs :
7
7
install_requires = reqs .read ().splitlines ()
8
8
9
- with open ("optional-requirements.txt" ) as reqs :
10
- extras_require = {}
11
- current = []
12
- for line in reqs .read ().splitlines ():
13
- if line .startswith ("#/" ):
14
- extras_require [line [2 :]] = current = []
15
- elif not line or line .startswith ("#" ):
16
- continue
17
- else :
18
- current .append (line )
19
-
20
- extras_require ["all" ] = list ({dep for deps in extras_require .values () for dep in deps })
21
-
22
9
try :
23
10
long_desc = open ("README.md" ).read ()
24
11
except IOError :
48
35
packages = setuptools .find_packages (),
49
36
50
37
install_requires = install_requires + ['psycopg2' , 'uvloop' ],
51
- extras_require = extras_require ,
52
38
python_requires = "~=3.7" ,
53
39
54
40
setup_requires = ["pytest-runner" ],
You can’t perform that action at this time.
0 commit comments