diff --git a/py/host-emulator/pyproject.toml b/py/host-emulator/pyproject.toml index 59d352d..7e606e7 100644 --- a/py/host-emulator/pyproject.toml +++ b/py/host-emulator/pyproject.toml @@ -4,6 +4,7 @@ version = "0.1.0" description = "" authors = ["Nehal Patel "] readme = "README.md" +packages = [{include = "host_emulator", from = "src"}] [tool.poetry.dependencies] python = "^3.11" diff --git a/py/host-emulator/src/__init__.py b/py/host-emulator/src/host_emulator/__init__.py similarity index 100% rename from py/host-emulator/src/__init__.py rename to py/host-emulator/src/host_emulator/__init__.py diff --git a/py/host-emulator/src/common.py b/py/host-emulator/src/host_emulator/common.py similarity index 100% rename from py/host-emulator/src/common.py rename to py/host-emulator/src/host_emulator/common.py diff --git a/py/host-emulator/src/emulator.py b/py/host-emulator/src/host_emulator/emulator.py similarity index 100% rename from py/host-emulator/src/emulator.py rename to py/host-emulator/src/host_emulator/emulator.py diff --git a/py/host-emulator/src/i2c.py b/py/host-emulator/src/host_emulator/i2c.py similarity index 100% rename from py/host-emulator/src/i2c.py rename to py/host-emulator/src/host_emulator/i2c.py diff --git a/py/host-emulator/src/pin.py b/py/host-emulator/src/host_emulator/pin.py similarity index 100% rename from py/host-emulator/src/pin.py rename to py/host-emulator/src/host_emulator/pin.py diff --git a/py/host-emulator/src/uart.py b/py/host-emulator/src/host_emulator/uart.py similarity index 100% rename from py/host-emulator/src/uart.py rename to py/host-emulator/src/host_emulator/uart.py diff --git a/py/host-emulator/tests/conftest.py b/py/host-emulator/tests/conftest.py index 335a066..5d671d1 100644 --- a/py/host-emulator/tests/conftest.py +++ b/py/host-emulator/tests/conftest.py @@ -1,10 +1,9 @@ import pathlib import subprocess +from host_emulator import DeviceEmulator from pytest import fixture -from src import DeviceEmulator - def pytest_addoption(parser): parser.addoption( diff --git a/py/host-emulator/tests/test_blinky.py b/py/host-emulator/tests/test_blinky.py index c71f3c0..408740f 100644 --- a/py/host-emulator/tests/test_blinky.py +++ b/py/host-emulator/tests/test_blinky.py @@ -1,6 +1,6 @@ from time import sleep -from src import Pin +from host_emulator import Pin pin_stats = {}