feat: migrate to poetry
This commit is contained in:
parent
237f21a5bc
commit
0e13dc08da
6 changed files with 4357 additions and 13 deletions
|
@ -14,10 +14,7 @@ sudo apt install python3-pip python3-venv ffmpeg
|
||||||
python3 -m venv ../venv
|
python3 -m venv ../venv
|
||||||
source ../venv/bin/activate
|
source ../venv/bin/activate
|
||||||
|
|
||||||
pip3 install wheel
|
poetry install
|
||||||
pip3 install -r requirements.txt
|
|
||||||
pip3 install -r requirements-linux.txt
|
|
||||||
pip3 install -e ../
|
|
||||||
|
|
||||||
python3 ./generate-build-exe-config.py
|
python3 ./generate-build-exe-config.py
|
||||||
|
|
||||||
|
|
|
@ -11,10 +11,7 @@ echo "BRANCH: str = \"$build_branch\"" >> ../build.py
|
||||||
python3 -m venv ../venv
|
python3 -m venv ../venv
|
||||||
source ../venv/bin/activate
|
source ../venv/bin/activate
|
||||||
|
|
||||||
pip3 install wheel
|
poetry install
|
||||||
pip3 install -r requirements.txt
|
|
||||||
pip3 install -r requirements-macos.txt
|
|
||||||
pip3 install -e ..\
|
|
||||||
|
|
||||||
python3 ./generate-build-exe-config.py
|
python3 ./generate-build-exe-config.py
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,7 @@ if "%1" == "no-venv" goto skip-venv
|
||||||
|
|
||||||
:skip-venv
|
:skip-venv
|
||||||
|
|
||||||
pip install wheel
|
poetry install
|
||||||
pip install -r requirements.txt
|
|
||||||
pip install -r requirements-windows.txt
|
|
||||||
pip install -e ..\
|
|
||||||
|
|
||||||
: Generate the json config in case you wanted to use the gui to regenerate the command below manually.
|
: Generate the json config in case you wanted to use the gui to regenerate the command below manually.
|
||||||
python generate-build-exe-config.py
|
python generate-build-exe-config.py
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
pip3 install autopep8
|
poetry install
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
cp "./pre-commit" "../.git/hooks/"
|
cp "./pre-commit" "../.git/hooks/"
|
||||||
|
|
||||||
|
|
4313
poetry.lock
generated
Normal file
4313
poetry.lock
generated
Normal file
File diff suppressed because one or more lines are too long
40
pyproject.toml
Normal file
40
pyproject.toml
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
[tool.poetry]
|
||||||
|
name = "bapsicle"
|
||||||
|
version = "3.1.0"
|
||||||
|
description = ""
|
||||||
|
authors = ["University Radio York"]
|
||||||
|
readme = "README.md"
|
||||||
|
package-mode = false
|
||||||
|
|
||||||
|
[tool.poetry.dependencies]
|
||||||
|
python = ">=3.11,<3.13"
|
||||||
|
wheel = "^0.43.0"
|
||||||
|
pygame = "2.5.2"
|
||||||
|
sanic = "21.9.3"
|
||||||
|
sanic-cors = "2.0.1"
|
||||||
|
syncer = "1.3.0"
|
||||||
|
aiohttp = "3.7.4"
|
||||||
|
mutagen = "1.45.1"
|
||||||
|
sounddevice = "0.4.2"
|
||||||
|
setproctitle = "1.2.2"
|
||||||
|
pyttsx3 = "2.90"
|
||||||
|
websockets = "10.1"
|
||||||
|
typing-extensions = "3.10.0.0"
|
||||||
|
pyserial = "3.5"
|
||||||
|
requests = "2.26.0"
|
||||||
|
jinja2 = "3.0.1"
|
||||||
|
pydub = "0.25.1"
|
||||||
|
psutil = "^5.9.8"
|
||||||
|
|
||||||
|
[tool.poetry.group.dev.dependencies]
|
||||||
|
pyinstaller = [
|
||||||
|
{version = "^6.5.0", platform = "linux"},
|
||||||
|
{version = "^6.5.0", platform = "darwin"}
|
||||||
|
]
|
||||||
|
auto-py-to-exe = {version = "^2.43.3", platform = "win32"}
|
||||||
|
pywin32 = {version = "^306", platform = "win32"}
|
||||||
|
autopep8 = "^2.1.0"
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["poetry-core"]
|
||||||
|
build-backend = "poetry.core.masonry.api"
|
Loading…
Reference in a new issue