Browse Source

Fix setup.py test invocation (#263)

tags/v0.6.1
Ben Kurtovic 4 years ago
parent
commit
4e63226f6b
3 changed files with 4 additions and 0 deletions
  1. +1
    -0
      .gitignore
  2. +2
    -0
      setup.cfg
  3. +1
    -0
      setup.py

+ 1
- 0
.gitignore View File

@@ -5,6 +5,7 @@
*.egg *.egg
*.egg-info *.egg-info
.coverage .coverage
.eggs
.DS_Store .DS_Store
__pycache__ __pycache__
build build


+ 2
- 0
setup.cfg View File

@@ -0,0 +1,2 @@
[aliases]
test=pytest

+ 1
- 0
setup.py View File

@@ -77,6 +77,7 @@ setup(
packages = find_packages("src"), packages = find_packages("src"),
package_dir = {"": "src"}, package_dir = {"": "src"},
ext_modules = [tokenizer] if use_extension else [], 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"], tests_require = ["pytest"],
version = __version__, version = __version__,
python_requires = ">= 3.5", python_requires = ">= 3.5",


Loading…
Cancel
Save