Skip to content

Commit

Permalink
Merge pull request #5 from mpsonntag/verWarn
Browse files Browse the repository at this point in the history
Version warning, packaging updates

LGTM
  • Loading branch information
achilleas-k authored Feb 13, 2020
2 parents e422144 + df76580 commit f534bec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
include LICENSE
include README.md
include LICENSE README.md
include odmltools/info.json
recursive-include test/resources *
7 changes: 5 additions & 2 deletions odmltools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import warnings

from sys import version_info

if version_info.major < 3 or version_info.major == 3 and version_info.minor < 6:
print("WARNING: The odMLtools package is not tested with your Python version. "
"Please consider upgrading to the latest Python distribution.")
msg = "The '%s' package is not tested with your Python version. " % __name__
msg += "Please consider upgrading to the latest Python distribution."
warnings.warn(msg)
1 change: 0 additions & 1 deletion odmltools/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"CLASSIFIERS": [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
Expand Down

0 comments on commit f534bec

Please sign in to comment.