doc/changes/3.27.rst
author Denis Laxalde <denis.laxalde@logilab.fr>
Thu, 21 Mar 2019 14:33:54 +0100
changeset 12530 9d88e1177c35
parent 12526 b78e3472a7d6
child 12557 dc04947379b5
permissions -rw-r--r--
Remove Twisted web server Twisted web server is not used anymore and has been superseded by pyramid many years ago. Furthermore, our usage is not compatible with Python 3. So we drop the "etwist" sub-package. As a consequence, "all-in-one" configuration type gets dropped as it was Twisted-specific. We resurrect it in cubicweb/pyramid/config.py by only keeping options used by the "pyramid". Similarly, we introduce a AllInOneCreateHandler in cubicweb/pyramid/pyramidctl.py that is basically the one that lived in cubicweb/etwist/twctl.py and is used to create the "all-in-one" instance. Added a TODO here about "pyramid.ini" that could be generated at the end of bootstrap() method. In cubicweb/devtools/httptest.py, CubicWebServerTC is now equivalent to CubicWebWsgiTC and the latter is dropped.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12358
e0b659abe4b8 Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff changeset
     1
3.27 (not yet released)
e0b659abe4b8 Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff changeset
     2
=======================
e0b659abe4b8 Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff changeset
     3
e0b659abe4b8 Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff changeset
     4
New features
e0b659abe4b8 Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff changeset
     5
------------
e0b659abe4b8 Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff changeset
     6
e0b659abe4b8 Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff changeset
     7
* Tests can now be run concurrently across multiple processes. You can use
e0b659abe4b8 Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff changeset
     8
  `pytest-xdist`_ for that. For tests using `PostgresApptestConfiguration` you
e0b659abe4b8 Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff changeset
     9
  should be aware that `startpgcluster()` can't run concurrently. Workaround is
e0b659abe4b8 Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff changeset
    10
  to call pytest with ``--dist=loadfile`` to use a single test process per test
e0b659abe4b8 Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff changeset
    11
  module or use an existing database cluster and set ``db-host`` and
e0b659abe4b8 Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff changeset
    12
  ``db-port`` of ``devtools.DEFAULT_PSQL_SOURCES['system']`` accordingly.
e0b659abe4b8 Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff changeset
    13
e0b659abe4b8 Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff changeset
    14
.. _pytest-xdist: https://github.com/pytest-dev/pytest-xdist
e0b659abe4b8 Add changelog note for running tests with pytest-xdist
Philippe Pepiot <philippe.pepiot@logilab.fr>
parents:
diff changeset
    15
12526
b78e3472a7d6 Remove ctl commands using the Twisted backend
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 12508
diff changeset
    16
Backwards incompatible changes
b78e3472a7d6 Remove ctl commands using the Twisted backend
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 12508
diff changeset
    17
------------------------------
b78e3472a7d6 Remove ctl commands using the Twisted backend
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 12508
diff changeset
    18
b78e3472a7d6 Remove ctl commands using the Twisted backend
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 12508
diff changeset
    19
* ``cubicweb-ctl`` commands "start", "stop", "restart", "reload" and "status"
b78e3472a7d6 Remove ctl commands using the Twisted backend
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 12508
diff changeset
    20
  have been removed because they relied on the Twisted web server backend that
b78e3472a7d6 Remove ctl commands using the Twisted backend
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 12508
diff changeset
    21
  is no longer maintained nor working with Python 3.
b78e3472a7d6 Remove ctl commands using the Twisted backend
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 12508
diff changeset
    22
12530
9d88e1177c35 Remove Twisted web server
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 12526
diff changeset
    23
* Twisted web server support has been removed.
9d88e1177c35 Remove Twisted web server
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 12526
diff changeset
    24
12508
a8c1ea390400 Drop most of deprecated code
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 12358
diff changeset
    25
Deprecated code drops
a8c1ea390400 Drop most of deprecated code
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 12358
diff changeset
    26
---------------------
a8c1ea390400 Drop most of deprecated code
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 12358
diff changeset
    27
a8c1ea390400 Drop most of deprecated code
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 12358
diff changeset
    28
Most code deprecated until version 3.25 has been dropped.