We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e22e61 commit 1bee928Copy full SHA for 1bee928
setup.py
@@ -1,6 +1,12 @@
1
+import importlib.util
2
import setuptools
3
+from pathlib import Path
4
-from mautrix import __version__
5
+# get mautrix.__version__ in a way that's compatible with PEP517 isolation
6
+spec = importlib.util.spec_from_file_location("mautrix", Path(__file__).parent / "mautrix/__init__.py")
7
+mautrix = importlib.util.module_from_spec(spec)
8
+spec.loader.exec_module(mautrix)
9
+__version__ = mautrix.__version__
10
11
encryption_dependencies = ["python-olm", "unpaddedbase64", "pycryptodome"]
12
test_dependencies = ["aiosqlite", "asyncpg", "ruamel.yaml", *encryption_dependencies]
0 commit comments