From 34fa04594f549e902ce73b9dbd9f490e149ebf49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Falc=C3=A3o?= Date: Mon, 4 Mar 2024 20:53:13 +0000 Subject: [PATCH] runtime no longer imports `mock' --- Makefile | 4 +++- setup.py | 5 ++++- sure/runtime.py | 1 - sure/version.py | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d400c61..85a1567 100644 --- a/Makefile +++ b/Makefile @@ -54,9 +54,11 @@ html-docs: clean-docs docs: html-docs $(OPEN_COMMAND) docs/build/html/index.html -test tests: +test: @$(VENV)/bin/pytest --cov=sure tests +tests: test run + # runs main command-line tool run: | $(LIBEXEC_PATH) $(LIBEXEC_PATH) --reap-warnings tests/crashes diff --git a/setup.py b/setup.py index eac4c70..7df277c 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ # with unicode strings. If there is an urgent reason why # to support it after all or if you have a quick fix # please open an issue on GitHub. -EXPL_NOT_SUPPORTED_VERSIONS = ((3, 0), (3, 1), (3, 2)) +EXPL_NOT_SUPPORTED_VERSIONS = ((3, 0), (3, 1), (3, 2), (3, 3), (3, 4)) if sys.version_info[0:2] in EXPL_NOT_SUPPORTED_VERSIONS: raise SystemExit( @@ -98,6 +98,9 @@ def read_readme(): entry_points={ "console_scripts": ["sure = sure.cli:entrypoint"], }, + extras_require={ + "mock": tests_require, + }, tests_require=tests_require, classifiers=[ "Development Status :: 1 - Planning", diff --git a/sure/runtime.py b/sure/runtime.py index 076b67e..f348f7c 100644 --- a/sure/runtime.py +++ b/sure/runtime.py @@ -26,7 +26,6 @@ from pathlib import Path from functools import reduce from typing import Dict, List, Optional, Any, Callable, Union -from mock import Mock from sure.reporter import Reporter from sure.errors import InternalRuntimeError diff --git a/sure/version.py b/sure/version.py index 3477736..5548d57 100644 --- a/sure/version.py +++ b/sure/version.py @@ -1 +1 @@ -version = "3.0a1" +version = "3.0a2"