summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-11-19 05:46:43 -0500
committerNed Batchelder <ned@nedbatchelder.com>2018-11-25 15:11:54 -0500
commit0c4bc043b11ad97cdb3bde5843ee34f9d7809a70 (patch)
tree1771d3d5e8d5fad9ab68eba0828bdf307c777300
parent20998572517413d52e4ca63a79d5a790578d19cb (diff)
downloadpython-coveragepy-git-0c4bc043b11ad97cdb3bde5843ee34f9d7809a70.tar.gz
Test that we have the right Python versions in the classifiers
-rw-r--r--setup.py1
-rw-r--r--tests/test_setup.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 95b4944c..77dcab3d 100644
--- a/setup.py
+++ b/setup.py
@@ -32,6 +32,7 @@ Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
+Programming Language :: Python :: 3.8
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Programming Language :: Python :: Implementation :: Jython
diff --git a/tests/test_setup.py b/tests/test_setup.py
index d786ca05..9ab10391 100644
--- a/tests/test_setup.py
+++ b/tests/test_setup.py
@@ -40,6 +40,8 @@ class SetupPyTest(CoverageTest):
classifiers = setup_args['classifiers']
self.assertGreater(len(classifiers), 7)
self.assert_starts_with(classifiers[-1], "Development Status ::")
+ self.assertIn("Programming Language :: Python :: %d" % sys.version_info[:1], classifiers)
+ self.assertIn("Programming Language :: Python :: %d.%d" % sys.version_info[:2], classifiers)
long_description = setup_args['long_description'].splitlines()
self.assertGreater(len(long_description), 7)