From 4e63226f6b6d7c7ba12eefaff88a8911e67697bd Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 12 Jan 2021 09:31:43 -0500 Subject: [PATCH] Fix setup.py test invocation (#263) --- .gitignore | 1 + setup.cfg | 2 ++ setup.py | 1 + 3 files changed, 4 insertions(+) create mode 100644 setup.cfg diff --git a/.gitignore b/.gitignore index cf67fa0..930f0bf 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ *.egg *.egg-info .coverage +.eggs .DS_Store __pycache__ build diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..b7e4789 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[aliases] +test=pytest diff --git a/setup.py b/setup.py index d682ec1..9842fb9 100644 --- a/setup.py +++ b/setup.py @@ -77,6 +77,7 @@ setup( packages = find_packages("src"), package_dir = {"": "src"}, ext_modules = [tokenizer] if use_extension else [], + setup_requires = ["pytest-runner"] if "test" in sys.argv or "pytest" in sys.argv else [], tests_require = ["pytest"], version = __version__, python_requires = ">= 3.5",