From 26c6eb83587614ff300bdf729db03f48d58f38a7 Mon Sep 17 00:00:00 2001 From: AlexButeau Date: Mon, 10 Mar 2025 11:33:21 +0100 Subject: [PATCH 1/2] chore: separate dev dependencies from prod dependencies for pip --- CONTRIBUTING.md | 2 +- requirements_dev.txt | 3 +++ setup.py | 8 +++++++- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 requirements_dev.txt diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 44fd6ae..d9b8a0c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -38,7 +38,7 @@ To set up a local development environment: ``` 2. Install dependencies ```bash - pip install -r requirements.txt + pip install -r requirements_dev.txt ``` ## Style Guide diff --git a/requirements_dev.txt b/requirements_dev.txt new file mode 100644 index 0000000..6ae0d11 --- /dev/null +++ b/requirements_dev.txt @@ -0,0 +1,3 @@ +-r requirements.txt # Include production deps +pytest +black \ No newline at end of file diff --git a/setup.py b/setup.py index 2cc13e2..a2f7dbd 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,13 @@ name="tofupilot", version="1.9.4", packages=find_packages(), - install_requires=["requests", "setuptools", "packaging", "pytest", "websockets"], + install_requires=["requests", "setuptools", "packaging", "websockets"], + extras_require={ + "dev": [ + "pytest", + "black", + ], + }, entry_points={ "pytest11": [ "tofupilot = tofupilot.plugin", # Registering the pytest plugin From 5e727995a27c5f6f268aee13d2f57ee48b27f203 Mon Sep 17 00:00:00 2001 From: AlexButeau Date: Mon, 10 Mar 2025 11:49:55 +0100 Subject: [PATCH 2/2] chore: remove pytest plugin import and def --- setup.py | 5 ----- tofupilot/__init__.py | 1 - 2 files changed, 6 deletions(-) diff --git a/setup.py b/setup.py index a2f7dbd..640e734 100644 --- a/setup.py +++ b/setup.py @@ -14,11 +14,6 @@ "black", ], }, - entry_points={ - "pytest11": [ - "tofupilot = tofupilot.plugin", # Registering the pytest plugin - ], - }, author="Félix Berthier", author_email="felix.berthier@tofupilot.com", description="The official Python client for the TofuPilot API", diff --git a/tofupilot/__init__.py b/tofupilot/__init__.py index 267a9a1..772180e 100644 --- a/tofupilot/__init__.py +++ b/tofupilot/__init__.py @@ -6,5 +6,4 @@ """ from .client import TofuPilotClient -from .plugin import numeric_step, string_step, conf from .models import MeasurementOutcome, PhaseOutcome