Merge pull request #3552 from asottile/remove_setup_py_test

Remove setup.py test now that it's broken
This commit is contained in:
Bruno Oliveira 2018-06-08 08:28:18 -03:00 committed by GitHub
commit 472354c714
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 21 deletions

View File

@ -2,7 +2,7 @@ import os
import sys import sys
import setuptools import setuptools
import pkg_resources import pkg_resources
from setuptools import setup, Command from setuptools import setup
classifiers = [ classifiers = [
"Development Status :: 6 - Mature", "Development Status :: 6 - Mature",
@ -102,7 +102,6 @@ def main():
entry_points={"console_scripts": ["pytest=pytest:main", "py.test=pytest:main"]}, entry_points={"console_scripts": ["pytest=pytest:main", "py.test=pytest:main"]},
classifiers=classifiers, classifiers=classifiers,
keywords="test unittest", keywords="test unittest",
cmdclass={"test": PyTest},
# the following should be enabled for release # the following should be enabled for release
setup_requires=["setuptools-scm"], setup_requires=["setuptools-scm"],
package_dir={"": "src"}, package_dir={"": "src"},
@ -115,24 +114,5 @@ def main():
) )
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
python_path = [x for x in os.environ.get("PYTHONPATH", "").split(":") if x]
python_path.insert(0, os.getcwd())
os.environ["PYTHONPATH"] = ":".join(python_path)
errno = subprocess.call([sys.executable, "pytest.py", "--ignore=doc"])
raise SystemExit(errno)
if __name__ == "__main__": if __name__ == "__main__":
main() main()