diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index c0096dc..5798aaa 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -35,9 +35,9 @@ jobs: - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names - flake8 src/ssri.py --count --select=E9,F63,F7,F82 --show-source --statistics + flake8 ssri/ssri.py --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 src/ssri.py --count --select=E9,F63,F7,F82 --exit-zero --max-complexity=10 --max-line-length=127 --statistics + flake8 ssri/ssri.py --count --select=E9,F63,F7,F82 --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | python -m pytest -s -vv diff --git a/pyproject.toml b/pyproject.toml index f1c0175..f71f421 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,14 +24,14 @@ classifiers = [ ] [project.scripts] -ssri = "ssri:main" +ssri = "ssri.ssri:main" [project.urls] Homepage = "https://github.com/Sebagabones/Server-Side-Rendered-Includes" [tool.pytest.ini_options] pythonpath = [ - "src" + "ssri" ] #addopts = [ # "--import-mode=importlib", diff --git a/src/__init__.py b/ssri/__init__.py similarity index 100% rename from src/__init__.py rename to ssri/__init__.py diff --git a/src/ssri.py b/ssri/ssri.py similarity index 100% rename from src/ssri.py rename to ssri/ssri.py diff --git a/tests/pytest.ini b/tests/pytest.ini index fcccae1..0c96d59 100644 --- a/tests/pytest.ini +++ b/tests/pytest.ini @@ -1,2 +1,2 @@ [pytest] -pythonpath = src +pythonpath = ssri diff --git a/tests/test_stuff.py b/tests/test_stuff.py index db26541..782bb0a 100644 --- a/tests/test_stuff.py +++ b/tests/test_stuff.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 #import ssri # import ssri -from src import ssri +import ssri import sys import filecmp import pytest