Skip to content

Commit a7c8c18

Browse files
authored
Merge pull request #15 from vector-im/jaller94-patch-1
use mautrix-python@v0.11.4-mod-2
2 parents 1c6c9d5 + fffa428 commit a7c8c18

File tree

3 files changed

+8
-25
lines changed

3 files changed

+8
-25
lines changed

Dockerfile

+7-11
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,17 @@ RUN apk add --no-cache \
4747
yq
4848

4949
COPY requirements.txt /opt/mautrix-telegram/requirements.txt
50-
COPY optional-requirements.txt /opt/mautrix-telegram/optional-requirements.txt
5150
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
6051

6152
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' \
6459
&& apk del git \
60+
&& apk del .build-deps \
6561
&& cp mautrix_telegram/example-config.yaml . && rm -rf mautrix_telegram
6662

6763
VOLUME /data

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The Element fork includes the following changes:
55
- Make max_initial_member_sync work for Chats as well as Channels https://github.com/mautrix/telegram/pull/680
66
- Allow disabling user status updates from Telegram side https://github.com/vector-im/mautrix-telegram/pull/9
77
- 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
89

910
Some changes that appear here may get upstreamed to https://github.com/mautrix/telegram, and will be removed from
1011
the list when they appear in both versions.

setup.py

-14
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,6 @@
66
with open("requirements.txt") as reqs:
77
install_requires = reqs.read().splitlines()
88

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-
229
try:
2310
long_desc = open("README.md").read()
2411
except IOError:
@@ -48,7 +35,6 @@
4835
packages=setuptools.find_packages(),
4936

5037
install_requires=install_requires + ['psycopg2', 'uvloop'],
51-
extras_require=extras_require,
5238
python_requires="~=3.7",
5339

5440
setup_requires=["pytest-runner"],

0 commit comments

Comments
 (0)