-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
101 lines (91 loc) · 2.26 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[build-system]
requires = ["flit", "setuptools_scm"]
build-backend = "flit.buildapi"
[tool.flit.metadata]
module = "barbacoa"
author = "Daniel Wallace"
author-email = "[email protected]"
home-page = "https://github.com/SADevs/barbacoa"
requires-python = ">=3.5"
requires = [
"pytoml",
"click",
"xdg"
]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Development Status :: 1 - Planning",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: POSIX :: Linux",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Clustering",
"Topic :: System :: Distributed Computing"
]
[tool.flit.metadata.requires-extra]
test = [
"pytest",
"pytest-asyncio",
"pytest-cov",
"flake8",
]
sqlite = [
"sqlalchemy",
"sqlalchemy_aio"
]
[tool.flit.entrypoints."barbacoa.loader"]
storage = "barbacoa.storage"
queues = "barbacoa.queues"
tasks = "barbacoa.tasks"
[tool.flit.entrypoints."console_scripts"]
barbacoa = "barbacoa:cli"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist =
py35
py36
py37
coverage
flake8
skip_missing_interpreters = true
isolated_build = True
[testenv]
passenv = TOXENV CI TRAVIS TRAVIS_* CODECOV_*
commands = pytest --cov=barbacoa/ --cov-config=setup.cfg --cov-report= {posargs}
changedir = {toxinidir}
setenv = COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
extras = test
[testenv:flake8]
skip_install = True
basepython = python3
deps = flake8
commands = flake8 tests/ pepper/ scripts/pepper setup.py
[testenv:coverage]
skip_install = True
deps = coverage >= 4.4.1, < 5
setenv = COVERAGE_FILE={toxworkdir}/.coverage
changedir = {toxinidir}
commands =
coverage erase
coverage combine
coverage report -m
coverage html
coverage xml -o {toxworkdir}/coverage.xml
[testenv:codecov]
deps = codecov
skip_install = True
changedir = {toxinidir}
commands = codecov --file "{toxworkdir}/coverage.xml"
[testenv:http]
skip_install = True
basepython = python36
deps =
changedir = {toxinidir}/htmlcov
commands = python -m http.server
"""