From 43a18a4abd5c8ea431d486ce03908cac21a87705 Mon Sep 17 00:00:00 2001 From: russ Date: Mon, 9 Sep 2019 20:00:35 -0500 Subject: [PATCH] inital setup.py --- setup.py | 47 +++++++++-------------------------------------- 1 file changed, 9 insertions(+), 38 deletions(-) diff --git a/setup.py b/setup.py index 89f0e10..ce9a713 100644 --- a/setup.py +++ b/setup.py @@ -14,8 +14,12 @@ import os import glob import shutil +import sys +if sys.version_info < (3, 7): + sys.exit("Sorry, Python < 3.7 is not supported") + # %% START OF SETUP with open("README.md", "r") as fh: long_description = fh.read() @@ -23,7 +27,7 @@ version_string = "v0.0.1" setuptools.setup( - name="pyLoopKit", + name="pyloopkit", version=version_string, author="Ed Nykaza", author_email="ed@tidepool.org", @@ -32,17 +36,13 @@ long_description_content_type="text/markdown", url="https://github.com/tidepool-org/PyLoopKit", packages=setuptools.find_packages(), - download_url=( - 'https://github.com/tidepool-org/PyLoopKit/tarball/' + version_string - ), + include_package_data=True, + classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD-2-Clause', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', ], install_requires=[ 'numpy==1.16.4', @@ -51,33 +51,4 @@ 'plotly==4.1.0', 'matplotlib==3.1.1', ], -) - - -# %% CLEAN UP -# remove the excess files if package is installed with pip from github -# TODO: make tidals its own repository under tidepool_org -# once tidals becomes its own github repository, then this step will no longer be necessary -# TODO: publish tidals as a PyPi pacakge - -files = glob.glob(os.path.abspath( - os.path.join(os.path.dirname(__file__), "..", "*"))) - -hidFiles = glob.glob(os.path.abspath( - os.path.join(os.path.dirname(__file__), "..", ".*"))) - -allFiles = files + hidFiles - -# if loaded from github with pip in environmental.yml, then when it will -# create a source file (src) and clone the entire data-analytics repo -""" -for i in allFiles: - # make sure you are in the src/tidals/ directory - if "src" in i.split(sep=os.sep)[-3]: - # delete all BUT files in tidals package - if "tidepool-analysis-tools" not in i: - if os.path.isdir(i): - shutil.rmtree(i) - else: - os.remove(i) -""" \ No newline at end of file +) \ No newline at end of file