Skip to content

Commit

Permalink
runtime no longer imports `mock'
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfalcao committed Mar 4, 2024
1 parent 129df51 commit 34fa045
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Makefile
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Expand Up @@ -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(
Expand Down Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion sure/runtime.py
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sure/version.py
@@ -1 +1 @@
version = "3.0a1"
version = "3.0a2"

0 comments on commit 34fa045

Please sign in to comment.