Initial MVP commits #1
@ -1,7 +1,7 @@
|
|||||||
# https://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files
|
# https://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files
|
||||||
|
|
||||||
[metadata]
|
[metadata]
|
||||||
name = hasskisok
|
name = hasskiosk
|
||||||
author = Mike Bloy
|
author = Mike Bloy
|
||||||
author_email = mike@bloy.org
|
author_email = mike@bloy.org
|
||||||
description = Helper application for homeassistant kiosk screens
|
description = Helper application for homeassistant kiosk screens
|
||||||
@ -17,6 +17,7 @@ package_dir =
|
|||||||
=src
|
=src
|
||||||
packages = find:
|
packages = find:
|
||||||
install_requires =
|
install_requires =
|
||||||
|
environs
|
||||||
paho-mqtt
|
paho-mqtt
|
||||||
|
|
||||||
[options.packages.find]
|
[options.packages.find]
|
||||||
|
|||||||
1
tests/conftest.py
Normal file
1
tests/conftest.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
"""Test configuration and fixtures."""
|
||||||
10
tests/test_version.py
Normal file
10
tests/test_version.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
"""Test version number handling."""
|
||||||
|
|
||||||
|
from importlib_metadata import version
|
||||||
|
|
||||||
|
from hasskiosk import __version__
|
||||||
|
|
||||||
|
|
||||||
|
def test_package_version_matches_dunder_version():
|
||||||
|
"""Test that package metadata version matches the package __version__."""
|
||||||
|
assert __version__ == version("hasskiosk")
|
||||||
6
tox.ini
6
tox.ini
@ -5,12 +5,14 @@ isolated_build = True
|
|||||||
[testenv]
|
[testenv]
|
||||||
wheel = true
|
wheel = true
|
||||||
wheel_build_env = build
|
wheel_build_env = build
|
||||||
|
basepython = python3.7
|
||||||
|
|
||||||
[testenv:build]
|
[testenv:build]
|
||||||
deps = setuptools
|
deps = setuptools
|
||||||
|
|
||||||
[testenv:py37]
|
[testenv:py37]
|
||||||
deps =
|
deps =
|
||||||
|
importlib_metadata
|
||||||
pytest
|
pytest
|
||||||
pytest-cov
|
pytest-cov
|
||||||
pdbpp
|
pdbpp
|
||||||
@ -32,14 +34,12 @@ commands =
|
|||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
deps =
|
deps =
|
||||||
flake8
|
flake8
|
||||||
flake8-bandit
|
|
||||||
flake8-blind-except
|
flake8-blind-except
|
||||||
flake8-builtins
|
flake8-builtins
|
||||||
flake8-docstrings
|
flake8-docstrings
|
||||||
flake8-executable
|
flake8-executable
|
||||||
flake8-isort
|
flake8-isort
|
||||||
flake8-logging-format
|
flake8-logging-format
|
||||||
flake8-mypy
|
|
||||||
pycodestyle
|
pycodestyle
|
||||||
pydocstyle
|
pydocstyle
|
||||||
commands =
|
commands =
|
||||||
@ -51,6 +51,7 @@ commands =
|
|||||||
|
|
||||||
[testenv:dev]
|
[testenv:dev]
|
||||||
# this environment lets tox create a development env quickly and easily
|
# this environment lets tox create a development env quickly and easily
|
||||||
|
recreate=True
|
||||||
deps =
|
deps =
|
||||||
bpython
|
bpython
|
||||||
mypy
|
mypy
|
||||||
@ -60,7 +61,6 @@ deps =
|
|||||||
{[testenv:security]deps}
|
{[testenv:security]deps}
|
||||||
{[testenv:security]deps}
|
{[testenv:security]deps}
|
||||||
{[testenv:lint]deps}
|
{[testenv:lint]deps}
|
||||||
basepython = python3.7
|
|
||||||
envdir = {toxinidir}/.venv
|
envdir = {toxinidir}/.venv
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user