Skip to content

Commit

Permalink
Fix setup.py test invocation (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
earwig committed Jan 12, 2021
1 parent 90b47f0 commit 4e63226
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*.egg
*.egg-info
.coverage
.eggs
.DS_Store
__pycache__
build
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[aliases]
test=pytest
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def build_ext_patched(self):
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",
Expand Down

0 comments on commit 4e63226

Please sign in to comment.