From 38ce833bb15b7eb8892afc8da93cc91d5e3eccc3 Mon Sep 17 00:00:00 2001 From: theonepath Date: Wed, 4 May 2022 21:24:47 +0100 Subject: [PATCH] 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 --- setup.cfg | 2 +- setup.py | 3 ++- tox.ini | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/setup.cfg b/setup.cfg index 1f8e7d4..5bf019b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -29,7 +29,7 @@ package_dir = =clog zip_safe = no -[options.extra_require] +[options.extras_require] testing = pytest>=7.0 pytest-cov>=3.0 diff --git a/setup.py b/setup.py index f3dc35d..4463731 100644 --- a/setup.py +++ b/setup.py @@ -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) diff --git a/tox.ini b/tox.ini index 53dbef4..68f9bd6 100644 --- a/tox.ini +++ b/tox.ini @@ -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 =