diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e1b7ebd1..5a590ba8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,7 +31,7 @@ repos: rev: v2.3.0 hooks: - id: reorder-python-imports - args: ['--application-directories=.:pytest_html:testing', --py3-plus] + args: ['--application-directories=.:src:testing', --py3-plus] - repo: https://github.com/asottile/pyupgrade rev: v2.4.4 hooks: @@ -43,7 +43,7 @@ repos: - id: eslint additional_dependencies: - eslint@7.13.0 - args: [pytest_html] + args: [src] - repo: local hooks: - id: rst diff --git a/setup.py b/setup.py index 2de68ccf..5c01738b 100644 --- a/setup.py +++ b/setup.py @@ -8,6 +8,7 @@ author="Dave Hunt", author_email="dhunt@mozilla.com", url="https://github.com/pytest-dev/pytest-html", + package_dir={"": "src"}, packages=["pytest_html"], package_data={"pytest_html": ["resources/*"]}, entry_points={"pytest11": ["html = pytest_html.plugin"]}, diff --git a/pytest_html/__init__.py b/src/pytest_html/__init__.py similarity index 100% rename from pytest_html/__init__.py rename to src/pytest_html/__init__.py diff --git a/pytest_html/extras.py b/src/pytest_html/extras.py similarity index 100% rename from pytest_html/extras.py rename to src/pytest_html/extras.py diff --git a/pytest_html/hooks.py b/src/pytest_html/hooks.py similarity index 100% rename from pytest_html/hooks.py rename to src/pytest_html/hooks.py diff --git a/pytest_html/plugin.py b/src/pytest_html/plugin.py similarity index 100% rename from pytest_html/plugin.py rename to src/pytest_html/plugin.py diff --git a/pytest_html/resources/main.js b/src/pytest_html/resources/main.js similarity index 100% rename from pytest_html/resources/main.js rename to src/pytest_html/resources/main.js diff --git a/pytest_html/resources/style.css b/src/pytest_html/resources/style.css similarity index 100% rename from pytest_html/resources/style.css rename to src/pytest_html/resources/style.css diff --git a/testing/js_test_report.html b/testing/js_test_report.html index 5d5292ec..5b4fae82 100644 --- a/testing/js_test_report.html +++ b/testing/js_test_report.html @@ -12,7 +12,7 @@ - +