From 4a037796fd46ea367d331a115dd7218f29fc775e Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 12 Jun 2020 13:21:41 -0400 Subject: [PATCH 1/2] add python_requires Fixes #48 Signed-off-by: Doug Hellmann --- setup.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.cfg b/setup.cfg index 0127fe44..2a09516e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,6 +5,7 @@ author = Doug Hellmann author-email = doug@doughellmann.com summary = Sphinx spelling extension home-page = https://github.com/sphinx-contrib/spelling +python_requires = >=3.5 classifier = Development Status :: 4 - Beta Environment :: Console From ed671ff15f8082959d740bd9a34439ce135c2e2f Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 12 Jun 2020 13:21:52 -0400 Subject: [PATCH 2/2] add tox environment for testing package settings Signed-off-by: Doug Hellmann --- .travis.yml | 2 ++ tox.ini | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index f7206739..c9bcf9d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,8 @@ matrix: python: 3.8 - env: BUILD=linter python: 3.8 + - env: BUILD=pkglint + python: 3.8 # travis pre-installs some packages that may conflict with our test # dependencies, so remove them before we set ourselves up. Also diff --git a/tox.ini b/tox.ini index 1413ea64..8b96fe41 100644 --- a/tox.ini +++ b/tox.ini @@ -24,6 +24,13 @@ setenv = commands = flake8 sphinxcontrib setup.py +[testenv:pkglint] +deps= + twine +commands= + python setup.py sdist + twine check dist/*.tar.gz + [flake8] show-source = True exclude = .tox,dist,doc,*.egg,build