Skip to content

Commit

Permalink
Moved the version check to __init__.py for wheels.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed May 30, 2014
1 parent e539ba9 commit cd0c175
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions doorstop/__init__.py
Expand Up @@ -7,6 +7,12 @@
GUI = 'doorstop-gui'
VERSION = __project__ + '-' + __version__

MIN_PYTHON_VERSION = 3, 3

import sys
if not sys.version_info >= MIN_PYTHON_VERSION: # pragma: no cover (manual test)
exit("Python {}.{}+ is required.".format(*MIN_PYTHON_VERSION))

try:
from doorstop.common import DoorstopError, DoorstopWarning, DoorstopInfo
from doorstop.core import Item, Document, Tree
Expand Down
6 changes: 0 additions & 6 deletions setup.py
Expand Up @@ -4,12 +4,6 @@
Setup script for Doorstop.
"""

MIN_PYTHON_VERSION = 3, 3

import sys
if not sys.version_info >= MIN_PYTHON_VERSION:
exit("Python {}.{}+ is required.".format(*MIN_PYTHON_VERSION))

import setuptools

from doorstop import __project__, __version__, CLI, GUI
Expand Down

0 comments on commit cd0c175

Please sign in to comment.