Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit b2409a4

Browse files
committed
Move other requirements to pyproject.toml
1 parent 2c72ad0 commit b2409a4

File tree

9 files changed

+19
-28
lines changed

9 files changed

+19
-28
lines changed

.dockerignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
*
2-
!requirements.txt
3-
!MANIFEST.in
4-
!setup.py
2+
!pyproject.toml
53
!script/setup
64
!script/run
75
!wyoming_satellite/*.py

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ WORKDIR /app
1010

1111
COPY sounds/ ./sounds/
1212
COPY script/setup ./script/
13-
COPY setup.py requirements.txt MANIFEST.in ./
13+
COPY pyproject.toml ./
1414
COPY wyoming_satellite/ ./wyoming_satellite/
1515

1616
RUN script/setup

MANIFEST.in

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/tutorial_2mic.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ python3 -m venv .venv
5555
.venv/bin/pip3 install --upgrade wheel setuptools
5656
.venv/bin/pip3 install \
5757
-f 'https://synesthesiam.github.io/prebuilt-apps/' \
58-
-r requirements.txt \
59-
-r requirements_audio_enhancement.txt \
60-
-r requirements_vad.txt
58+
-e '.[all]'
6159
```
6260

6361
If the installation was successful, you should be able to run:

installer/__main__.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def apply_settings(settings: Settings) -> None:
123123
):
124124
result = run_with_gauge(
125125
"Installing vad...",
126-
[pip_install("-r", str(PROGRAM_DIR / "requirements_vad.txt"))],
126+
[pip_install("-e", f"{PROGRAM_DIR}[silerovad]")],
127127
)
128128
if not result:
129129
error("installing vad")
@@ -135,11 +135,7 @@ def apply_settings(settings: Settings) -> None:
135135
):
136136
result = run_with_gauge(
137137
"Installing audio enhancements...",
138-
[
139-
pip_install(
140-
"-r", str(PROGRAM_DIR / "requirements_audio_enhancement.txt")
141-
)
142-
],
138+
[pip_install("-e", f"{PROGRAM_DIR}[webrtc]")],
143139
)
144140
if not result:
145141
error("installing audio enhancements")
@@ -154,7 +150,7 @@ def apply_settings(settings: Settings) -> None:
154150
) and (not can_import("gpiozero", "spidev")):
155151
result = run_with_gauge(
156152
"Installing event requirements...",
157-
[pip_install("-r", str(PROGRAM_DIR / "requirements_respeaker.txt"))],
153+
[pip_install("-e", f"{PROGRAM_DIR}[respeaker]")],
158154
)
159155
if not result:
160156
error("installing event requirements")

pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ dependencies = [
3333
all = ["pysilero-vad==1.0.0", "webrtc-noise-gain==1.2.3"]
3434
silerovad = ["pysilero-vad==1.0.0"]
3535
webrtc = ["webrtc-noise-gain==1.2.3"]
36+
respeaker = ["gpiozero", "spidev"]
37+
dev = [
38+
"black==22.12.0",
39+
"flake8==6.0.0",
40+
"isort==5.11.3",
41+
"mypy==0.991",
42+
"pylint==2.15.9",
43+
"pytest==7.4.3",
44+
"pytest-asyncio==0.23.3",
45+
"build==1.2.2"
46+
]
3647

3748
[project.scripts]
3849
wyoming-satellite = "wyoming_satellite:__main__.run"

requirements_dev.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

requirements_respeaker.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

script/setup

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ subprocess.check_call(
3131
"-f",
3232
"https://synesthesiam.github.io/prebuilt-apps/",
3333
"-e",
34-
".",
34+
str(_PROGRAM_DIR),
3535
]
3636
)
3737

3838
if args.dev:
3939
# Install dev requirements
4040
subprocess.check_call(
41-
pip + ["install", "-r", str(_PROGRAM_DIR / "requirements_dev.txt")]
41+
pip + ["install", "-e", f"{_PROGRAM_DIR}[dev]"]
4242
)

0 commit comments

Comments
 (0)