Skip to content

Commit

Permalink
inital setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rpwils committed Sep 10, 2019
1 parent 18e157f commit 43a18a4
Showing 1 changed file with 9 additions and 38 deletions.
47 changes: 9 additions & 38 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,20 @@
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()

version_string = "v0.0.1"

setuptools.setup(
name="pyLoopKit",
name="pyloopkit",
version=version_string,
author="Ed Nykaza",
author_email="ed@tidepool.org",
Expand All @@ -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',
Expand All @@ -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)
"""
)

0 comments on commit 43a18a4

Please sign in to comment.