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