diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 7b00bf59..5607f4d0 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -35,7 +35,7 @@ jobs: - name: 🏗 Install dependencies run: poetry install --no-interaction - name: 🚀 Run pytest - run: poetry run pytest --cov omnikinverter tests + run: poetry run pytest --cov src tests - name: ⬆️ Upload coverage artifact uses: actions/upload-artifact@v3 with: diff --git a/.github/workflows/typing.yaml b/.github/workflows/typing.yaml index 504fbc67..bf687fa2 100644 --- a/.github/workflows/typing.yaml +++ b/.github/workflows/typing.yaml @@ -32,4 +32,4 @@ jobs: - name: 🏗 Install dependencies run: poetry install --no-interaction - name: 🚀 Run mypy - run: poetry run mypy examples omnikinverter tests + run: poetry run mypy examples src tests diff --git a/pyproject.toml b/pyproject.toml index 254c9228..560b4eed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ classifiers = [ "Topic :: Software Development :: Libraries :: Python Modules", ] packages = [ - { include = "omnikinverter" }, + { include = "omnikinverter", from = "src" }, ] [tool.poetry.dependencies] diff --git a/omnikinverter/__init__.py b/src/omnikinverter/__init__.py similarity index 100% rename from omnikinverter/__init__.py rename to src/omnikinverter/__init__.py diff --git a/omnikinverter/const.py b/src/omnikinverter/const.py similarity index 100% rename from omnikinverter/const.py rename to src/omnikinverter/const.py diff --git a/omnikinverter/exceptions.py b/src/omnikinverter/exceptions.py similarity index 100% rename from omnikinverter/exceptions.py rename to src/omnikinverter/exceptions.py diff --git a/omnikinverter/models.py b/src/omnikinverter/models.py similarity index 100% rename from omnikinverter/models.py rename to src/omnikinverter/models.py diff --git a/omnikinverter/omnikinverter.py b/src/omnikinverter/omnikinverter.py similarity index 100% rename from omnikinverter/omnikinverter.py rename to src/omnikinverter/omnikinverter.py diff --git a/omnikinverter/py.typed b/src/omnikinverter/py.typed similarity index 100% rename from omnikinverter/py.typed rename to src/omnikinverter/py.typed diff --git a/omnikinverter/tcp.py b/src/omnikinverter/tcp.py similarity index 100% rename from omnikinverter/tcp.py rename to src/omnikinverter/tcp.py