Skip to content

Commit b497bf0

Browse files
committed
Switch to src layout to fix packaging
1 parent d19eaa2 commit b497bf0

23 files changed

+6
-7
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ build-backend = "setuptools.build_meta"
55
[tool.isort]
66
profile = "black"
77
known_first_party = [
8-
"matrix_content_scanner",
8+
"src",
99
"tests"
1010
]

setup.cfg

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ classifiers =
99
License :: OSI Approved :: Apache Software License
1010

1111
[options]
12-
packages =
13-
matrix_content_scanner
12+
package_dir = =src
1413
python_requires = >= 3.8
1514
install_requires =
1615
attrs
File renamed without changes.
File renamed without changes.

tox.ini

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ commands =
2525
extras = dev
2626

2727
commands =
28-
flake8 matrix_content_scanner tests
29-
black --check --diff matrix_content_scanner tests
30-
isort --check-only --diff matrix_content_scanner tests
28+
flake8 src tests
29+
black --check --diff src tests
30+
isort --check-only --diff src tests
3131

3232
[testenv:check_types]
3333

@@ -42,4 +42,4 @@ extras = dev
4242
install_command = python -m pip install --index-url=https://gitlab.matrix.org/api/v4/projects/27/packages/pypi/simple {opts} {packages}
4343

4444
commands =
45-
mypy matrix_content_scanner tests
45+
mypy src tests

0 commit comments

Comments
 (0)