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 71d2b14Copy full SHA for 71d2b14
setup.py
@@ -1,6 +1,11 @@
1
+import importlib.util
2
import setuptools
3
-from mautrix import __version__
4
+# get mautrix.__version__ in a way that's compatible with PEP517 isolation
5
+spec = importlib.util.spec_from_file_location("mautrix", "mautrix/__init__.py")
6
+mautrix = importlib.util.module_from_spec(spec)
7
+spec.loader.exec_module(mautrix)
8
+__version__ = mautrix.__version__
9
10
encryption_dependencies = ["python-olm", "unpaddedbase64", "pycryptodome"]
11
test_dependencies = ["aiosqlite", "asyncpg", "ruamel.yaml", *encryption_dependencies]
0 commit comments