From d7a06d021660ef555102d3427ccff5b9628d97b8 Mon Sep 17 00:00:00 2001 From: "Kai A. Hiller" Date: Sat, 12 Feb 2022 01:49:21 +0100 Subject: [PATCH] Move to src layout Signed-off-by: Kai A. Hiller --- scripts-dev/lint.sh | 2 +- setup.cfg | 1 + {matrix_common => src/matrix_common}/__init__.py | 0 {matrix_common => src/matrix_common}/py.typed | 0 {matrix_common => src/matrix_common}/regex.py | 0 {matrix_common => src/matrix_common}/versionstring.py | 0 tox.ini | 8 ++++---- 7 files changed, 6 insertions(+), 5 deletions(-) rename {matrix_common => src/matrix_common}/__init__.py (100%) rename {matrix_common => src/matrix_common}/py.typed (100%) rename {matrix_common => src/matrix_common}/regex.py (100%) rename {matrix_common => src/matrix_common}/versionstring.py (100%) diff --git a/scripts-dev/lint.sh b/scripts-dev/lint.sh index 6f08577..28e1693 100755 --- a/scripts-dev/lint.sh +++ b/scripts-dev/lint.sh @@ -8,7 +8,7 @@ set -e files=( - "matrix_common" + "src" "tests" ) diff --git a/setup.cfg b/setup.cfg index 8993c89..30ae78f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -11,6 +11,7 @@ classifiers = [options] +package_dir = =src packages = matrix_common python_requires = >= 3.6 diff --git a/matrix_common/__init__.py b/src/matrix_common/__init__.py similarity index 100% rename from matrix_common/__init__.py rename to src/matrix_common/__init__.py diff --git a/matrix_common/py.typed b/src/matrix_common/py.typed similarity index 100% rename from matrix_common/py.typed rename to src/matrix_common/py.typed diff --git a/matrix_common/regex.py b/src/matrix_common/regex.py similarity index 100% rename from matrix_common/regex.py rename to src/matrix_common/regex.py diff --git a/matrix_common/versionstring.py b/src/matrix_common/versionstring.py similarity index 100% rename from matrix_common/versionstring.py rename to src/matrix_common/versionstring.py diff --git a/tox.ini b/tox.ini index 952b7ea..65f797e 100644 --- a/tox.ini +++ b/tox.ini @@ -25,13 +25,13 @@ commands = extras = dev commands = - flake8 matrix_common tests - black --check --diff matrix_common tests - isort --check-only --diff matrix_common tests + flake8 src tests + black --check --diff src tests + isort --check-only --diff src tests [testenv:check_types] extras = dev commands = - mypy matrix_common tests + mypy src tests