From aef4e17ed50c9f757eba8be593b922e00ca95e5f Mon Sep 17 00:00:00 2001 From: Cooper Lees Date: Wed, 1 Jan 2020 15:53:46 -0800 Subject: [PATCH] Remove 3.5 Classifiers + Cleanup CI (#101) - Use official 3.8 release - Run tests via coverage + show coverage (setuptools has deprecated test option) - Use black's recursive file finding abilities Fixes #95 --- .travis.yml | 9 +++++---- setup.py | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 61a89eb..a6ae145 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,15 +8,16 @@ matrix: include: - python: 3.6 - python: 3.7 - - python: 3.8-dev + - python: 3.8 - python: nightly allow_failures: - - python: 3.8-dev - python: nightly install: - - pip install --upgrade pip setuptools black + - pip install --upgrade pip setuptools coverage black - pip install . script: - - python setup.py test && find . -type f -name '*.py' | xargs black --check + - coverage run tests/test_bugbear.py + - coverage report -m | grep 'bugbear\.py' + - black --check . diff --git a/setup.py b/setup.py index 29ed7e0..1cd53f6 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ import sys -assert sys.version_info >= (3, 5, 0), "bugbear requires Python 3.5+" +assert sys.version_info >= (3, 6, 0), "bugbear requires Python 3.6+" current_dir = os.path.abspath(os.path.dirname(__file__)) @@ -37,7 +37,7 @@ license="MIT", py_modules=["bugbear"], zip_safe=False, - python_requires=">=3.5", + python_requires=">=3.6", install_requires=["flake8 >= 3.0.0", "attrs"], test_suite="tests.test_bugbear", classifiers=[ @@ -49,9 +49,9 @@ "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Quality Assurance",