Move other requirements to pyproject.toml
This commit is contained in:
+1
-3
@@ -1,7 +1,5 @@
|
|||||||
*
|
*
|
||||||
!requirements.txt
|
!pyproject.toml
|
||||||
!MANIFEST.in
|
|
||||||
!setup.py
|
|
||||||
!script/setup
|
!script/setup
|
||||||
!script/run
|
!script/run
|
||||||
!wyoming_satellite/*.py
|
!wyoming_satellite/*.py
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ WORKDIR /app
|
|||||||
|
|
||||||
COPY sounds/ ./sounds/
|
COPY sounds/ ./sounds/
|
||||||
COPY script/setup ./script/
|
COPY script/setup ./script/
|
||||||
COPY setup.py requirements.txt MANIFEST.in ./
|
COPY pyproject.toml ./
|
||||||
COPY wyoming_satellite/ ./wyoming_satellite/
|
COPY wyoming_satellite/ ./wyoming_satellite/
|
||||||
|
|
||||||
RUN script/setup
|
RUN script/setup
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
include requirements.txt
|
|
||||||
include VERSION
|
|
||||||
@@ -55,9 +55,7 @@ python3 -m venv .venv
|
|||||||
.venv/bin/pip3 install --upgrade wheel setuptools
|
.venv/bin/pip3 install --upgrade wheel setuptools
|
||||||
.venv/bin/pip3 install \
|
.venv/bin/pip3 install \
|
||||||
-f 'https://synesthesiam.github.io/prebuilt-apps/' \
|
-f 'https://synesthesiam.github.io/prebuilt-apps/' \
|
||||||
-r requirements.txt \
|
-e '.[all]'
|
||||||
-r requirements_audio_enhancement.txt \
|
|
||||||
-r requirements_vad.txt
|
|
||||||
```
|
```
|
||||||
|
|
||||||
If the installation was successful, you should be able to run:
|
If the installation was successful, you should be able to run:
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ def apply_settings(settings: Settings) -> None:
|
|||||||
):
|
):
|
||||||
result = run_with_gauge(
|
result = run_with_gauge(
|
||||||
"Installing vad...",
|
"Installing vad...",
|
||||||
[pip_install("-r", str(PROGRAM_DIR / "requirements_vad.txt"))],
|
[pip_install("-e", f"{PROGRAM_DIR}[silerovad]")],
|
||||||
)
|
)
|
||||||
if not result:
|
if not result:
|
||||||
error("installing vad")
|
error("installing vad")
|
||||||
@@ -135,11 +135,7 @@ def apply_settings(settings: Settings) -> None:
|
|||||||
):
|
):
|
||||||
result = run_with_gauge(
|
result = run_with_gauge(
|
||||||
"Installing audio enhancements...",
|
"Installing audio enhancements...",
|
||||||
[
|
[pip_install("-e", f"{PROGRAM_DIR}[webrtc]")],
|
||||||
pip_install(
|
|
||||||
"-r", str(PROGRAM_DIR / "requirements_audio_enhancement.txt")
|
|
||||||
)
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
if not result:
|
if not result:
|
||||||
error("installing audio enhancements")
|
error("installing audio enhancements")
|
||||||
@@ -154,7 +150,7 @@ def apply_settings(settings: Settings) -> None:
|
|||||||
) and (not can_import("gpiozero", "spidev")):
|
) and (not can_import("gpiozero", "spidev")):
|
||||||
result = run_with_gauge(
|
result = run_with_gauge(
|
||||||
"Installing event requirements...",
|
"Installing event requirements...",
|
||||||
[pip_install("-r", str(PROGRAM_DIR / "requirements_respeaker.txt"))],
|
[pip_install("-e", f"{PROGRAM_DIR}[respeaker]")],
|
||||||
)
|
)
|
||||||
if not result:
|
if not result:
|
||||||
error("installing event requirements")
|
error("installing event requirements")
|
||||||
|
|||||||
@@ -33,6 +33,17 @@ dependencies = [
|
|||||||
all = ["pysilero-vad==1.0.0", "webrtc-noise-gain==1.2.3"]
|
all = ["pysilero-vad==1.0.0", "webrtc-noise-gain==1.2.3"]
|
||||||
silerovad = ["pysilero-vad==1.0.0"]
|
silerovad = ["pysilero-vad==1.0.0"]
|
||||||
webrtc = ["webrtc-noise-gain==1.2.3"]
|
webrtc = ["webrtc-noise-gain==1.2.3"]
|
||||||
|
respeaker = ["gpiozero", "spidev"]
|
||||||
|
dev = [
|
||||||
|
"black==22.12.0",
|
||||||
|
"flake8==6.0.0",
|
||||||
|
"isort==5.11.3",
|
||||||
|
"mypy==0.991",
|
||||||
|
"pylint==2.15.9",
|
||||||
|
"pytest==7.4.3",
|
||||||
|
"pytest-asyncio==0.23.3",
|
||||||
|
"build==1.2.2"
|
||||||
|
]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
wyoming-satellite = "wyoming_satellite:__main__.run"
|
wyoming-satellite = "wyoming_satellite:__main__.run"
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
black==22.12.0
|
|
||||||
flake8==6.0.0
|
|
||||||
isort==5.11.3
|
|
||||||
mypy==0.991
|
|
||||||
pylint==2.15.9
|
|
||||||
pytest==7.4.3
|
|
||||||
pytest-asyncio==0.23.3
|
|
||||||
build==1.2.2
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
gpiozero
|
|
||||||
spidev
|
|
||||||
+2
-2
@@ -31,12 +31,12 @@ subprocess.check_call(
|
|||||||
"-f",
|
"-f",
|
||||||
"https://synesthesiam.github.io/prebuilt-apps/",
|
"https://synesthesiam.github.io/prebuilt-apps/",
|
||||||
"-e",
|
"-e",
|
||||||
".",
|
str(_PROGRAM_DIR),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
if args.dev:
|
if args.dev:
|
||||||
# Install dev requirements
|
# Install dev requirements
|
||||||
subprocess.check_call(
|
subprocess.check_call(
|
||||||
pip + ["install", "-r", str(_PROGRAM_DIR / "requirements_dev.txt")]
|
pip + ["install", "-e", f"{_PROGRAM_DIR}[dev]"]
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user