X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02-2.git/blobdiff_plain/ab1eb580b3cf5e9d068d883c42088863a880d021..4cbbc360566337406c8bf7b1d3b653d19b41ae4c:/library/setup.py diff --git a/library/setup.py b/library/setup.py index aefc022..40d6dbc 100755 --- a/library/setup.py +++ b/library/setup.py @@ -22,9 +22,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ -from setuptools import setup +from setuptools import setup, __version__ +from pkg_resources import parse_version -setup( - packages=['enviroplus'], - install_requires=['pimoroni-bme280', 'pms5003', 'ltr559', 'st7735', 'ads1015'] -) +minimum_version = parse_version('30.4.0') + +if parse_version(__version__) < minimum_version: + raise RuntimeError("Package setuptools must be at least version {}".format(minimum_version)) + +setup()