added initial files to support transitioning to using poetry/invoke to provide an environment for core
This commit is contained in:
parent
e323f8965e
commit
0d2bcccf3e
3 changed files with 1108 additions and 0 deletions
1061
daemon/poetry.lock
generated
Normal file
1061
daemon/poetry.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
33
daemon/pyproject.toml
Normal file
33
daemon/pyproject.toml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
[tool.poetry]
|
||||||
|
name = "core"
|
||||||
|
version = "6.4.0"
|
||||||
|
description = ""
|
||||||
|
authors = []
|
||||||
|
|
||||||
|
[tool.poetry.dependencies]
|
||||||
|
python = "^3.6"
|
||||||
|
dataclasses = { version = "*", python = "3.6" }
|
||||||
|
fabric = "*"
|
||||||
|
grpcio = "*"
|
||||||
|
invoke = "*"
|
||||||
|
lxml = "*"
|
||||||
|
mako = "*"
|
||||||
|
netaddr = "*"
|
||||||
|
pillow = "*"
|
||||||
|
protobuf = "*"
|
||||||
|
pyproj = "*"
|
||||||
|
pyyaml = "*"
|
||||||
|
|
||||||
|
[tool.poetry.dev-dependencies]
|
||||||
|
black = "==19.3b0"
|
||||||
|
flake8 = "*"
|
||||||
|
grpcio-tools = "*"
|
||||||
|
isort = "*"
|
||||||
|
mock = "*"
|
||||||
|
pre-commit = "*"
|
||||||
|
pytest = "*"
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["poetry>=0.12"]
|
||||||
|
build-backend = "poetry.masonry.api"
|
||||||
|
|
14
tasks.py
Normal file
14
tasks.py
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
from invoke import task
|
||||||
|
|
||||||
|
|
||||||
|
@task
|
||||||
|
def core(c):
|
||||||
|
c.run(
|
||||||
|
"poetry run sudo python3 scripts/core-daemon "
|
||||||
|
"-f data/core.conf -l data/logging.conf"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@task
|
||||||
|
def core_pygui(c):
|
||||||
|
c.run("poetry run python3 scripts/core-pygui")
|
Loading…
Reference in a new issue