88 lines
2.0 KiB
TOML
88 lines
2.0 KiB
TOML
[tool.poetry]
|
|
name = "magic-app"
|
|
version = "0.1.0"
|
|
description = "A swarm of dreams"
|
|
authors = ["Autonomic Co-operative <helo@autonomic.zone>"]
|
|
maintainers = ["Autonomic Co-operative <helo@autonomic.zone>"]
|
|
license = "AGPLv3"
|
|
readme = "README.md"
|
|
homepage = "https://git.autonomic.zone/autonomic-cooperative/magic-app"
|
|
repository = "https://git.autonomic.zone/autonomic-cooperative/magic-app"
|
|
documentation = "https://git.autonomic.zone/autonomic-cooperative/magic-app"
|
|
keywords = ["docker", "swarm", "packaging"]
|
|
|
|
[tool.poetry.dependencies]
|
|
"ruamel.yaml" = "^0.16.10"
|
|
celery = "^4.4.6"
|
|
flask = "^1.1.2"
|
|
flask-wtf = "^0.14.3"
|
|
gunicorn = "^20.0.4"
|
|
python = "^3.8"
|
|
redis = "^3.5.3"
|
|
|
|
[tool.poetry.dev-dependencies]
|
|
black = "^19.10b0"
|
|
fakeredis = "^1.4.1"
|
|
flake8 = "^3.8.3"
|
|
isort = "^5.0.2"
|
|
|
|
[tool.poetry.urls]
|
|
issues = "https://git.autonomic.zone/autonomic-cooperative/magic-app/issues"
|
|
|
|
[tool.black]
|
|
line-length = 80
|
|
target-version = ["py38"]
|
|
include = '\.pyi?$'
|
|
|
|
[build-system]
|
|
requires = ["poetry>=1.0.9,<2.0"]
|
|
build-backend = "poetry.masonry.api"
|
|
|
|
[tool.tox]
|
|
legacy_tox_ini = """
|
|
[tox]
|
|
envlist = py38 lint sort format type
|
|
skip_missing_interpreters = True
|
|
isolated_build = True
|
|
|
|
[testenv]
|
|
|
|
[testenv:lint]
|
|
skipdist = True
|
|
deps = flake8
|
|
commands = flake8 {posargs:--max-line-length 80} magic_app/ test/
|
|
|
|
[testenv:sort]
|
|
skipdist = True
|
|
deps = isort
|
|
commands = isort {posargs:-c} -sp setup.cfg magic_app/ test/
|
|
|
|
[testenv:format]
|
|
skipdist = True
|
|
deps = black
|
|
commands = black {posargs:--check} magic_app/ test/
|
|
|
|
[testenv:type]
|
|
skipdist = True
|
|
deps = mypy
|
|
commands = mypy {posargs:--ignore-missing-imports} magic_app/ test/
|
|
|
|
[testenv:release]
|
|
deps = twine
|
|
commands =
|
|
rm -rf {toxworkdir}/dist
|
|
python -m setup sdist --dist-dir {toxworkdir}/dist bdist_wheel
|
|
python -m setup sdist --dist-dir {toxworkdir}/dist bdist_egg
|
|
twine upload {toxworkdir}/dist/*
|
|
whitelist_externals =
|
|
rm
|
|
"""
|
|
|
|
[tool.isort]
|
|
include_trailing_comma = true
|
|
known_first_party = "magic_app"
|
|
known_third_party = "pytest"
|
|
line_length = 80
|
|
multi_line_output = 3
|
|
skip = ".venv,.tox"
|