1. 24 Jul, 2019 7 commits
  2. 23 Jul, 2019 1 commit
  3. 22 Jul, 2019 4 commits
  4. 10 Jun, 2019 3 commits
  5. 13 Jun, 2019 1 commit
    • Jérémy Bobbio (Lunar)'s avatar
      [pkg] Tidy substvars usage in control file · d8c491c1e580
      Jérémy Bobbio (Lunar) authored
      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.
      
      --HG--
      branch : 3.26
      d8c491c1e580
  6. 10 Jun, 2019 1 commit
  7. 05 Jun, 2019 1 commit
    • Jérémy Bobbio (Lunar)'s avatar
      [pkg] Switch to Debian source format 3.0 (quilt) · 46f6db5167e7
      Jérémy Bobbio (Lunar) authored
      This forces us to base the Debian package on the source of the Python
      package (as produced by running `python3 setup.py 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/schema.py
      cubicweb/sobjects/test/data/cubicweb_comment/__init__.py
      cubicweb/sobjects/test/data/cubicweb_comment/__pkginfo__.py
      cubicweb/sobjects/test/data/cubicweb_card/schema.py
      cubicweb/sobjects/test/data/cubicweb_card/entities.py
      cubicweb/sobjects/test/data/cubicweb_card/__init__.py
      cubicweb/sobjects/test/data/cubicweb_card/__pkginfo__.py
      cubicweb/server/test/data-migractions/cubicweb_comment/schema.py
      cubicweb/server/test/data-migractions/cubicweb_comment/__init__.py
      cubicweb/server/test/data-migractions/cubicweb_comment/__pkginfo__.py
      cubicweb/server/test/data-migractions/cubicweb_localperms/schema.py
      cubicweb/server/test/data-migractions/cubicweb_localperms/__init__.py
      cubicweb/server/test/data-migractions/cubicweb_localperms/__pkginfo__.py
      cubicweb/server/test/data-migractions/cubicweb_basket/schema.py
      cubicweb/server/test/data-migractions/cubicweb_basket/__init__.py
      cubicweb/server/test/data-migractions/cubicweb_basket/__pkginfo__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_comment/schema.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_comment/__init__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_comment/__pkginfo__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_localperms/schema.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_localperms/__init__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_localperms/__pkginfo__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_basket/schema.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_basket/__init__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_basket/__pkginfo__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_tag/schema.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_tag/__init__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_tag/__pkginfo__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_card/schema.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_card/__init__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_card/__pkginfo__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_file/schema.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_file/__init__.py
      cubicweb/server/test/data-migractions/migratedapp/cubicweb_file/__pkginfo__.py
      cubicweb/server/test/data-migractions/cubicweb_tag/schema.py
      cubicweb/server/test/data-migractions/cubicweb_tag/__init__.py
      cubicweb/server/test/data-migractions/cubicweb_tag/__pkginfo__.py
      cubicweb/server/test/data-migractions/cubicweb_card/schema.py
      cubicweb/server/test/data-migractions/cubicweb_card/__init__.py
      cubicweb/server/test/data-migractions/cubicweb_card/__pkginfo__.py
      cubicweb/server/test/data-migractions/cubicweb_file/schema.py
      cubicweb/server/test/data-migractions/cubicweb_file/__init__.py
      cubicweb/server/test/data-migractions/cubicweb_file/__pkginfo__.py
      cubicweb/test/data-rewrite/cubicweb_localperms/schema.py
      cubicweb/test/data-rewrite/cubicweb_localperms/__init__.py
      cubicweb/test/data-rewrite/cubicweb_localperms/__pkginfo__.py
      cubicweb/test/data-rewrite/cubicweb_card/schema.py
      cubicweb/test/data-rewrite/cubicweb_card/entities.py
      cubicweb/test/data-rewrite/cubicweb_card/__init__.py
      cubicweb/test/data-rewrite/cubicweb_card/__pkginfo__.py
      
      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`.
      
      --HG--
      branch : 3.26
      46f6db5167e7
  8. 12 Jul, 2019 2 commits
    • Denis Laxalde's avatar
      [debian] Update description of cubicweb-ctl* packages · d0cedb5fb790
      Denis Laxalde authored
      init scripts are no longer shipped.
      Avoid mentionning "start" and "stop" command which should not be used in
      production environments.
      
      --HG--
      branch : 3.26
      d0cedb5fb790
    • Denis Laxalde's avatar
      [debian] Introduce a cubicweb-ctl3 binary package · 3b48af0ec776
      Denis Laxalde authored
      This packages conflicts with cubicweb-ctl binary which uses the python2
      library. It is meant to ease upgrade of existing installation during the
      migration from python2 to python3: in particular, by installing
      cubicweb-ctl3, scripts calling "cubicweb-ctl" command should still work
      as before.
      
      --HG--
      branch : 3.26
      3b48af0ec776
  9. 10 Jul, 2019 2 commits
    • Jérémy Bobbio (Lunar)'s avatar
      [pkg] Add new autopkgtest for skeleton packaging · d1b5fd6129bd
      Jérémy Bobbio (Lunar) authored
      When running `cubicweb-ctl newcube`, the generated template provides
      debian packaging. So let's add automated tests for that using
      autopkgtest.
      
      The new test will generated a new cube, build a source tarball,
      build the package, try to install it, see if the Python 2 and 3
      modules are available and even run autopkgtest against the newly
      created packages.
      
      Along the way it will also print information about the generated
      package: buildinfo, package content, and lintian report.
      
      --HG--
      branch : 3.26
      d1b5fd6129bd
    • Jérémy Bobbio (Lunar)'s avatar
      [skeleton] Update Debian packaging template · 376168d1b14a
      Jérémy Bobbio (Lunar) authored
      Here are multiple updates to the Debian packaging template provided when
      running `cubicweb-ctl newcube`:
      
       * Switch to source format 3.0 (quilt).
       * Switch to debhelper 9.
       * Switch to dh-python.
       * Add Python 3 packages.
       * Name the binary packages `python-cubicweb-CUBENAME` and
         `python3-cubicweb-CUBENAME` instead of just `cubicweb-CUBENAME` (which is
         still the source package).
       * Populate Depends using dh_python{2,3} support for Python requirements.
       * Run test suite at build time using pytest.
       * Add autopkgtest to run test suite against the installed package.
       * Bump Standards-Version to 4.3.0.
      
      --HG--
      branch : 3.26
      376168d1b14a
  10. 26 Jun, 2019 1 commit
  11. 17 Jun, 2019 1 commit
  12. 02 Jul, 2019 2 commits
  13. 27 Jun, 2019 3 commits
    • Denis Laxalde's avatar
      [autoform] Fix display_fields handling · 9f03df82f8de
      Denis Laxalde authored
      This follows-up on changeset b2ceb483e056 (present in 3.25 as well), in
      which AutomaticEntityForm.editable_attributes() was turned into a
      generator. In this method, in case display_fields is not None, we
      previously returned a list of (rtype, role); this was changed into a
      yield, but the change was missing a return after the loop in order not
      to go through the remainder of the function.
      
      Add tests for editable_attributes() method.
      
      --HG--
      branch : 3.26
      9f03df82f8de
    • Denis Laxalde's avatar
      Flake8 cubicweb/web/views/autoform.py · c96aa316d06b
      Denis Laxalde authored
      Fixes:
      
        cubicweb/web/views/autoform.py:703: [E122] continuation line missing indentation or outdented
        cubicweb/web/views/autoform.py:704: [E122] continuation line missing indentation or outdented
        cubicweb/web/views/autoform.py:819: [W504] line break after binary operator
        cubicweb/web/views/autoform.py:820: [E125] continuation line with same indent as next logical line
        cubicweb/web/views/autoform.py:961: [W504] line break after binary operator
        cubicweb/web/views/autoform.py:962: [E126] continuation line over-indented for hanging indent
      
      --HG--
      branch : 3.26
      c96aa316d06b
    • Denis Laxalde's avatar
      [py3] unicode() -> six.text_type in autoform · ea89ca9017c4
      Denis Laxalde authored
      --HG--
      branch : 3.26
      ea89ca9017c4
  14. 26 Jun, 2019 2 commits
  15. 25 Jun, 2019 7 commits
  16. 20 Jun, 2019 1 commit
  17. 10 Jun, 2019 1 commit