-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev: produce wheels for Python 3 only
For instance, the version 5.0.0 shipped a wheel letting users know that Python 2 and 3 are supported. This is not true for Python 2. The patch will changes the wheel name: `mss-VERSION-py2.py3-none-any.whl` -> `mss-VERSION-py3-none-any.whl` Also fixed missing test data.
- Loading branch information
Showing
6 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ build/ | |
dist/ | ||
*.egg-info/ | ||
.idea/ | ||
MANIFEST* | ||
.DS_Store | ||
*.orig | ||
*.jpg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Include tests files and data | ||
include mss/tests/*.py | ||
recursive-include mss/tests/res * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters