Mon, 10 Jun 2019 11:15:17 +0200 [pkg] Move lintian-overrides file to debian/source directory
Jérémy Bobbio <> [Mon, 10 Jun 2019 11:15:17 +0200] rev 12648
[pkg] Move lintian-overrides file to debian/source directory Just use the now preferred location.
Mon, 10 Jun 2019 11:13:06 +0200 [pkg] Stop using /etc/bash_completion.d
Jérémy Bobbio <> [Mon, 10 Jun 2019 11:13:06 +0200] rev 12647
[pkg] Stop using /etc/bash_completion.d cubicweb-ctl shipped an empty /etc/bash_completion.d as a leftover of shipping a bash completion script. As pointed by Lintian, this directory is not obsolete, so let's get rid of it for good.
Thu, 13 Jun 2019 16:47:47 +0200 [pkg] Tidy substvars usage in control file
Jérémy Bobbio <> [Thu, 13 Jun 2019 16:47:47 +0200] rev 12646
[pkg] Tidy substvars usage in control file The documentation package was missing a Built-Using field to record the provenance of the templates. Empty packages or meta packages do not require Depends on a specific Python version, so we can remove the relevant substvars.
Mon, 10 Jun 2019 10:53:48 +0200 [pkg] Specify priority “optional” instead of the obsolete “extra”
Jérémy Bobbio <> [Mon, 10 Jun 2019 10:53:48 +0200] rev 12645
[pkg] Specify priority “optional” instead of the obsolete “extra” Quoting Lintian, “Since Debian Policy version 4.0.1, the priority extra has been deprecated.” So let's use “optional” instead.
Mon, 10 Jun 2019 10:51:31 +0200 [pkg] Remove build dependency on dh-systemd
Jérémy Bobbio <> [Mon, 10 Jun 2019 10:51:31 +0200] rev 12644
[pkg] Remove build dependency on dh-systemd As suggested by Lintian, remove build dependency on obsolete package dh-systemd. Instead, specify a more precise version of debhelper 9 that added support for systemd.
Wed, 05 Jun 2019 18:35:51 +0200 [pkg] Run test suite as part of autopkgtest
Jérémy Bobbio <> [Wed, 05 Jun 2019 18:35:51 +0200] rev 12643
[pkg] Run test suite as part of autopkgtest Add support for autopkgtest. The test “unittest” will run the test suite using pytest. As we need PostgreSQL in the test environment and open network connection, the test is marked with `isolation-container` and requires at least LXC to be run, e.g: autopkgtest -s -- lxc -s autopkgtest-sid
Wed, 05 Jun 2019 16:29:04 +0200 [pkg] Switch to Debian source format 3.0 (quilt)
Jérémy Bobbio <> [Wed, 05 Jun 2019 16:29:04 +0200] rev 12642
[pkg] Switch to Debian source format 3.0 (quilt) This forces us to base the Debian package on the source of the Python package (as produced by running `python3 sdist`). While it might seem cumbersome, this greatly reduces likelyhood of mismatch between an installation via `pip` and one using the Debian package. `dpkg-source` will also document for us what is currently in the source repository but not in the Python package. Currently the missing file are: PKG-INFO cubicweb/sobjects/test/data/cubicweb_comment/ cubicweb/sobjects/test/data/cubicweb_comment/ cubicweb/sobjects/test/data/cubicweb_comment/ cubicweb/sobjects/test/data/cubicweb_card/ cubicweb/sobjects/test/data/cubicweb_card/ cubicweb/sobjects/test/data/cubicweb_card/ cubicweb/sobjects/test/data/cubicweb_card/ cubicweb/server/test/data-migractions/cubicweb_comment/ cubicweb/server/test/data-migractions/cubicweb_comment/ cubicweb/server/test/data-migractions/cubicweb_comment/ cubicweb/server/test/data-migractions/cubicweb_localperms/ cubicweb/server/test/data-migractions/cubicweb_localperms/ cubicweb/server/test/data-migractions/cubicweb_localperms/ cubicweb/server/test/data-migractions/cubicweb_basket/ cubicweb/server/test/data-migractions/cubicweb_basket/ cubicweb/server/test/data-migractions/cubicweb_basket/ cubicweb/server/test/data-migractions/migratedapp/cubicweb_comment/ cubicweb/server/test/data-migractions/migratedapp/cubicweb_comment/ cubicweb/server/test/data-migractions/migratedapp/cubicweb_comment/ cubicweb/server/test/data-migractions/migratedapp/cubicweb_localperms/ cubicweb/server/test/data-migractions/migratedapp/cubicweb_localperms/ cubicweb/server/test/data-migractions/migratedapp/cubicweb_localperms/ cubicweb/server/test/data-migractions/migratedapp/cubicweb_basket/ cubicweb/server/test/data-migractions/migratedapp/cubicweb_basket/ cubicweb/server/test/data-migractions/migratedapp/cubicweb_basket/ cubicweb/server/test/data-migractions/migratedapp/cubicweb_tag/ cubicweb/server/test/data-migractions/migratedapp/cubicweb_tag/ cubicweb/server/test/data-migractions/migratedapp/cubicweb_tag/ cubicweb/server/test/data-migractions/migratedapp/cubicweb_card/ cubicweb/server/test/data-migractions/migratedapp/cubicweb_card/ cubicweb/server/test/data-migractions/migratedapp/cubicweb_card/ cubicweb/server/test/data-migractions/migratedapp/cubicweb_file/ cubicweb/server/test/data-migractions/migratedapp/cubicweb_file/ cubicweb/server/test/data-migractions/migratedapp/cubicweb_file/ cubicweb/server/test/data-migractions/cubicweb_tag/ cubicweb/server/test/data-migractions/cubicweb_tag/ cubicweb/server/test/data-migractions/cubicweb_tag/ cubicweb/server/test/data-migractions/cubicweb_card/ cubicweb/server/test/data-migractions/cubicweb_card/ cubicweb/server/test/data-migractions/cubicweb_card/ cubicweb/server/test/data-migractions/cubicweb_file/ cubicweb/server/test/data-migractions/cubicweb_file/ cubicweb/server/test/data-migractions/cubicweb_file/ cubicweb/test/data-rewrite/cubicweb_localperms/ cubicweb/test/data-rewrite/cubicweb_localperms/ cubicweb/test/data-rewrite/cubicweb_localperms/ cubicweb/test/data-rewrite/cubicweb_card/ cubicweb/test/data-rewrite/cubicweb_card/ cubicweb/test/data-rewrite/cubicweb_card/ cubicweb/test/data-rewrite/cubicweb_card/ The current manifest will duplicate several files that are stored as symlinks in the Mercurial repository, hence the long list of ignored files in `extend-diff-ignore`.
Wed, 05 Jun 2019 15:38:29 +0200 [pkg] Switch all Debian packages to Python 3
Jérémy Bobbio <> [Wed, 05 Jun 2019 15:38:29 +0200] rev 12641
[pkg] Switch all Debian packages to Python 3
Tue, 11 Jun 2019 09:40:12 +0200 Fix sorting key for rdefs in schema viewer
julien tayon <> [Tue, 11 Jun 2019 09:40:12 +0200] rev 12640
Fix sorting key for rdefs in schema viewer With changeset 234ca3cbbb46, clicking in the schema of an entity with cubicweb in py3 on "vue en boite" will probably result in an infinite spinner (which implies cw > 3.26) What happened ? This "vue en boite" used to work at least until... hg diff -c a8c1ea390400 cubicweb/ @@ -993,10 +992,6 @@ class CubicWebRelationSchema(PermissionM return False return True - @deprecated('use .rdef(subjtype, objtype).role_cardinality(role)') - def cardinality(self, subjtype, objtype, target): - return self.rdef(subjtype, objtype).role_cardinality(target) - class CubicWebSchema(Schema): """set of entities and relations schema defining the possible data sets But, wait ... If I open a shell on an instance of cw 3.24 something seems off >>> list(schema['CWUniqueTogetherConstraint'].relation_definitions())[0][0].cardinality # <bound method CubicWebRelationSchema.wrapped of <constraint_of [CWUniqueTogetherConstraint,CWEType]>> We have been sorting on a method the whole time ? Is it possible what were the effects ? 1) We cannot sort function can't we ? >>> def adder(i): return lambda x: x+i >>> sorted(map(adder,range(10))) [<function __main__.<lambda>>, <function __main__.<lambda>>, ... Yes we can. 2) what does it means. >>> { adder(1) : 1 } Out[19]: {<function __main__.<lambda>>: 1} In fact the function object as a __hash__ method (which is practical for making memoizers (cache)), and return truly random results (pseudo random). My take on this patch is relations have NEVER been sorted by cardinality. No one never ever noticed. Hence, I propose to not fix a bug that never was reported.
Tue, 04 Jun 2019 09:35:47 +0200 Flake8 cubicweb/web/
julien tayon <> [Tue, 04 Jun 2019 09:35:47 +0200] rev 12639
Flake8 cubicweb/web/
(0) -10000 -3000 -1000 -300 -100 -10 +10 +100 tip