Updated automation build scripts

Added dependencies for testenv with tox using requirement-dev.txt
Fixed typo bug for `options.extras_require`
Satisfied setup.py for flake8 and mypy
This commit is contained in:
Ethan Smith-Coss 2022-05-04 21:24:47 +01:00
parent 17109872cb
commit 38ce833bb1
Signed by: TheOnePath
GPG Key ID: 4E7D436CE1A0BAF1
3 changed files with 6 additions and 5 deletions

View File

@ -29,7 +29,7 @@ package_dir =
=clog
zip_safe = no
[options.extra_require]
[options.extras_require]
testing =
pytest>=7.0
pytest-cov>=3.0

View File

@ -1,6 +1,7 @@
#!/usr/bin/env python
import os
import sys
from typing import Dict
from setuptools import setup
CURRENT_PYVERSION = sys.version_info[:2]
@ -28,7 +29,7 @@ official Python website to the minimum required version.
sys.exit(1)
info = {}
info: Dict[str, str] = {}
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "clog", "__version__.py"), "r", encoding="utf-8") as f:
exec(f.read(), info)

View File

@ -6,6 +6,6 @@ isolated_build = true
[testenv]
setenv =
PYTHONPATH = {toxinidir}
#deps =
# -r{toxinidir}/requirements-dev.txt
#commands =
deps =
-r{toxinidir}/requirements-dev.txt
commands =