# HG changeset patch
# User François FERRY <francois.ferry@logilab.fr>
# Date 1690358076 -7200
#      Wed Jul 26 09:54:36 2023 +0200
# Node ID 684418e0309fd4b065158de8e0702b379e8b6ff5
# Parent  2d5ec172c6bd94ef9e2c738f1b6335a35ea7683f
feat!: upgrade CW to version 4 and add web cube dependency

diff --git a/cubicweb_squareui/__pkginfo__.py b/cubicweb_squareui/__pkginfo__.py
--- a/cubicweb_squareui/__pkginfo__.py
+++ b/cubicweb_squareui/__pkginfo__.py
@@ -14,8 +14,9 @@
 web = f"https://forge.extranet.logilab.fr/cubicweb/cubes/{distname}"
 
 __depends__ = {
-    "cubicweb": ">= 3.38.0, < 3.39.0",
-    "cubicweb-bootstrap": ">= 1.3.1",
+    "cubicweb": ">= 4.0.0, < 5.0.0",
+    "cubicweb-web": ">= 1.0.0, < 2.0.0",
+    "cubicweb-bootstrap": ">= 2.0.0, < 3.0.0",
 }
 
 __recommends__ = {}
diff --git a/test/unittest_views.py b/test/unittest_views.py
--- a/test/unittest_views.py
+++ b/test/unittest_views.py
@@ -1,10 +1,10 @@
 import unittest
 
-from cubicweb.devtools.testlib import CubicWebTC
+from cubicweb_web.devtools.testlib import WebCWTC
 from cubicweb.devtools.htmlparser import XMLValidator
 
 
-class BoostrapTheMainTemplateTC(CubicWebTC):
+class BoostrapTheMainTemplateTC(WebCWTC):
     def test_valid_xhtml_index(self):
         with self.admin_access.web_request() as req:
             self.view("index", req=req)
diff --git a/tox.ini b/tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -4,6 +4,7 @@
 [testenv]
 deps =
   pytest
+  webtest
   -rdev-requirements.txt
 commands =
   {envpython} -m pytest {posargs}