From 35781da97a5c0c7ae19fe3ff87fc76568913107f Mon Sep 17 00:00:00 2001
From: Stefano Zacchiroli <zack@upsilon.cc>
Date: Wed, 18 Mar 2020 15:18:16 +0100
Subject: [PATCH] reorganize layout to match swh.web.client

---
 swh/web/__init__.py                       | 4 ++++
 swh/{foo => web/client}/__init__.py       | 0
 swh/{foo => web/client}/bar.py            | 0
 swh/{foo => web/client}/cli.py            | 0
 swh/{foo => web/client}/py.typed          | 0
 swh/{foo => web/client}/tests/__init__.py | 0
 6 files changed, 4 insertions(+)
 create mode 100644 swh/web/__init__.py
 rename swh/{foo => web/client}/__init__.py (100%)
 rename swh/{foo => web/client}/bar.py (100%)
 rename swh/{foo => web/client}/cli.py (100%)
 rename swh/{foo => web/client}/py.typed (100%)
 rename swh/{foo => web/client}/tests/__init__.py (100%)

diff --git a/swh/web/__init__.py b/swh/web/__init__.py
new file mode 100644
index 0000000..f14e196
--- /dev/null
+++ b/swh/web/__init__.py
@@ -0,0 +1,4 @@
+from pkgutil import extend_path
+from typing import Iterable
+
+__path__ = extend_path(__path__, __name__)  # type: Iterable[str]
diff --git a/swh/foo/__init__.py b/swh/web/client/__init__.py
similarity index 100%
rename from swh/foo/__init__.py
rename to swh/web/client/__init__.py
diff --git a/swh/foo/bar.py b/swh/web/client/bar.py
similarity index 100%
rename from swh/foo/bar.py
rename to swh/web/client/bar.py
diff --git a/swh/foo/cli.py b/swh/web/client/cli.py
similarity index 100%
rename from swh/foo/cli.py
rename to swh/web/client/cli.py
diff --git a/swh/foo/py.typed b/swh/web/client/py.typed
similarity index 100%
rename from swh/foo/py.typed
rename to swh/web/client/py.typed
diff --git a/swh/foo/tests/__init__.py b/swh/web/client/tests/__init__.py
similarity index 100%
rename from swh/foo/tests/__init__.py
rename to swh/web/client/tests/__init__.py
-- 
GitLab