From 4cf2ce164e5749c138b0a90c60d8e8d5ab7b29b4 Mon Sep 17 00:00:00 2001 From: Davide Sarra Date: Tue, 8 Nov 2022 18:25:23 +0000 Subject: [PATCH] Adopt src layout --- setup.cfg | 6 +++++- {jupyter_spaces => src/jupyter_spaces}/__init__.py | 0 {jupyter_spaces => src/jupyter_spaces}/errors.py | 0 {jupyter_spaces => src/jupyter_spaces}/magics.py | 0 {jupyter_spaces => src/jupyter_spaces}/space.py | 0 5 files changed, 5 insertions(+), 1 deletion(-) rename {jupyter_spaces => src/jupyter_spaces}/__init__.py (100%) rename {jupyter_spaces => src/jupyter_spaces}/errors.py (100%) rename {jupyter_spaces => src/jupyter_spaces}/magics.py (100%) rename {jupyter_spaces => src/jupyter_spaces}/space.py (100%) diff --git a/setup.cfg b/setup.cfg index 6143ae8..2de9722 100644 --- a/setup.cfg +++ b/setup.cfg @@ -32,7 +32,8 @@ classifiers = Programming Language :: Python :: 3.11 [options] -packages = jupyter_spaces +package_dir = =src +packages = find: python_requires = >=3.6 install_requires = ipython>=5.0.0 @@ -46,6 +47,9 @@ test = pytest-cov==4.0.0 tox==3.27.0 +[options.packages.find] +where = src + [tool:pytest] addopts = -vvv diff --git a/jupyter_spaces/__init__.py b/src/jupyter_spaces/__init__.py similarity index 100% rename from jupyter_spaces/__init__.py rename to src/jupyter_spaces/__init__.py diff --git a/jupyter_spaces/errors.py b/src/jupyter_spaces/errors.py similarity index 100% rename from jupyter_spaces/errors.py rename to src/jupyter_spaces/errors.py diff --git a/jupyter_spaces/magics.py b/src/jupyter_spaces/magics.py similarity index 100% rename from jupyter_spaces/magics.py rename to src/jupyter_spaces/magics.py diff --git a/jupyter_spaces/space.py b/src/jupyter_spaces/space.py similarity index 100% rename from jupyter_spaces/space.py rename to src/jupyter_spaces/space.py