diff --git a/.gitignore b/.gitignore index ffe6e427..080d5f82 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,6 @@ build/ dist/ *.egg-info/ .idea/ -MANIFEST* .DS_Store *.orig *.jpg diff --git a/CHANGELOG b/CHANGELOG index f1c88ab6..cb06db8e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,9 @@ History: +5.0.1 2020/xx/xx + - produce wheels for Python 3 only + 5.0.0 2019/12/31 - removed support for Python 2.7 - MSS: improve type annotations and add CI check diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..b8cdc5d1 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,3 @@ +# Include tests files and data +include mss/tests/*.py +recursive-include mss/tests/res * diff --git a/mss/tests/test_setup.py b/mss/tests/test_setup.py new file mode 100644 index 00000000..e1a213c4 --- /dev/null +++ b/mss/tests/test_setup.py @@ -0,0 +1,17 @@ +""" +This is part of the MSS Python's module. +Source: https://github.com/BoboTiG/python-mss +""" + +from subprocess import check_output + +from mss import __version__ + +CMD = "python setup.py sdist bdist_wheel".split() + + +def test_wheel_python_3_only(): + """Ensure the produced wheel is Python 3 only.""" + output = str(check_output(CMD)) + text = "mss-{}-py3-none-any.whl".format(__version__) + assert text in output diff --git a/setup.cfg b/setup.cfg index 9403a756..2a123949 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,18 +31,13 @@ classifiers = [options] zip-safe = False include_package_data = True -packages = - mss - mss.tests +packages = mss python_requires = >=3.5 [options.entry_points] console_scripts = mss = mss.__main__:main -[bdist_wheel] -universal = 1 - [flake8] ignore = # E203 whitespace before ':', but E203 is not PEP 8 compliant diff --git a/tox.ini b/tox.ini index 0340e69d..1b402bb0 100644 --- a/tox.ini +++ b/tox.ini @@ -14,6 +14,7 @@ deps = # Must pin that version to support PyPy3 numpy==1.15.4 pillow + wheel commands = python -m pytest {posargs}