Le Thu, Aug 18, 2022 at 11:03:30AM +0200, Landry Breuil a écrit : > Le Thu, Aug 18, 2022 at 10:58:24AM +0200, Renaud Allard a écrit : > > > > > > On 8/18/22 08:25, Landry Breuil wrote: > > > Le Thu, Aug 18, 2022 at 08:24:42AM +0200, Landry Breuil a écrit : > > > > Hi, > > > > > > > > so now that we have poetry-core in ports thanks to sthen@, here's a wip > > > > diff for synapse using MODPY_PEP517 = poetry-core. Note that i haven't > > > > tested it at all *yet*, and the do-test target fails: > > > > > > > > ===> Regression tests for synapse-1.65.0 > > > > cd /usr/obj/ports/synapse-1.65.0/synapse-1.65.0 && /usr/bin/env -i > > > > PYTHONPATH=. /usr/local/bin/trial tests > > > > tests ... > > > > [ERROR] > > > > > > > > =============================================================================== > > > > [ERROR] > > > > Traceback (most recent call last): > > > > File > > > > "/usr/local/lib/python3.9/site-packages/twisted/trial/runner.py", line > > > > 691, in loadByName > > > > return self.suiteFactory([self.findByName(name, recurse=recurse)]) > > > > File > > > > "/usr/local/lib/python3.9/site-packages/twisted/trial/runner.py", line > > > > 451, in findByName > > > > obj = reflect.namedModule(searchName) > > > > File > > > > "/usr/local/lib/python3.9/site-packages/twisted/python/reflect.py", > > > > line 156, in namedModule > > > > topLevel = __import__(name) > > > > File > > > > "/usr/obj/ports/synapse-1.65.0/synapse-1.65.0/tests/__init__.py", line > > > > 18, in <module> > > > > from synapse.util.patch_inline_callbacks import do_patch > > > > File > > > > "/usr/obj/ports/synapse-1.65.0/synapse-1.65.0/synapse/__init__.py", > > > > line 71, in <module> > > > > import synapse.util > > > > File > > > > "/usr/obj/ports/synapse-1.65.0/synapse-1.65.0/synapse/util/__init__.py", > > > > line 195, in <module> > > > > SYNAPSE_VERSION = > > > > get_distribution_version_string("matrix-synapse", __file__) > > > > builtins.TypeError: get_distribution_version_string() takes 1 > > > > positional argument but 2 were given > > > > > > > > so a bit more work is needed, but that's a start for getting us > > > > up-to-date for > > > > 7.2. > > > > > > now with 100% more diffs.. > > > > I am able to start it without errors with your diff and 3 other diffs I > > sent: > > textproc/py-unpaddedbase64 2.1.0 > > textproc/py-unpaddedbase64 1.6.2 > > devel/py-matrix_common 1.2.1 > > > > You will also need to put the full path for your registration files for > > mautrix_whatsapp if you use it, instead of a relative path. > > whatsapp ? whatsthatthing ? :) > > > More testing is welcome :) > > im able to start the regress tests with those 3 additional updates > (tests currently running but all OK so far), so synapse diff updated > accordingly to enforce those versions.
so regress tests are mostly looking good: - some are skipped because of missing optional deps, might be worth adding some: [SKIPPED] requires OIDC [SKIPPED] Requires Postgres (strange, i have py3-psycopg2 installed) [SKIPPED] Requires pysaml2 [SKIPPED] Requires hiredis [SKIPPED] requires authlib [SKIPPED] Requires SAML2 and OIDC and a bunch fail, but apparently all with the same error so should be ported and added to TDEP ? [ERROR] Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/twisted/trial/runner.py", line 596, in loadPackage module = modinfo.load() File "/usr/local/lib/python3.9/site-packages/twisted/python/modules.py", line 389, in load return self.pathEntry.pythonPath.moduleLoader(self.name) File "/usr/local/lib/python3.9/site-packages/twisted/python/reflect.py", line 297, in namedAny topLevelPackage = _importAndCheckStack(trialname) File "/usr/local/lib/python3.9/site-packages/twisted/python/reflect.py", line 244, in _importAndCheckStack raise excValue.with_traceback(excTraceback) File "/usr/obj/ports/synapse-1.65.0/synapse-1.65.0/tests/app/test_openid_listener.py", line 16, in <module> from parameterized import parameterized builtins.ModuleNotFoundError: No module named 'parameterized' Ran 1743 tests in 3054.754s FAILED (skips=94, errors=24, successes=1625)