Skip to content

Commit 43a18a4

Browse files
committed
inital setup.py
1 parent 18e157f commit 43a18a4

File tree

1 file changed

+9
-38
lines changed

1 file changed

+9
-38
lines changed

setup.py

Lines changed: 9 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,20 @@
1414
import os
1515
import glob
1616
import shutil
17+
import sys
1718

1819

20+
if sys.version_info < (3, 7):
21+
sys.exit("Sorry, Python < 3.7 is not supported")
22+
1923
# %% START OF SETUP
2024
with open("README.md", "r") as fh:
2125
long_description = fh.read()
2226

2327
version_string = "v0.0.1"
2428

2529
setuptools.setup(
26-
name="pyLoopKit",
30+
name="pyloopkit",
2731
version=version_string,
2832
author="Ed Nykaza",
2933
author_email="[email protected]",
@@ -32,17 +36,13 @@
3236
long_description_content_type="text/markdown",
3337
url="https://github.com/tidepool-org/PyLoopKit",
3438
packages=setuptools.find_packages(),
35-
download_url=(
36-
'https://github.com/tidepool-org/PyLoopKit/tarball/' + version_string
37-
),
39+
include_package_data=True,
40+
3841
classifiers=[
3942
'Development Status :: 3 - Alpha',
4043
'Intended Audience :: Developers',
4144
'License :: OSI Approved :: BSD-2-Clause',
42-
'Programming Language :: Python :: 3',
43-
'Programming Language :: Python :: 3.4',
44-
'Programming Language :: Python :: 3.5',
45-
'Programming Language :: Python :: 3.6',
45+
'Programming Language :: Python :: 3.7',
4646
],
4747
install_requires=[
4848
'numpy==1.16.4',
@@ -51,33 +51,4 @@
5151
'plotly==4.1.0',
5252
'matplotlib==3.1.1',
5353
],
54-
)
55-
56-
57-
# %% CLEAN UP
58-
# remove the excess files if package is installed with pip from github
59-
# TODO: make tidals its own repository under tidepool_org
60-
# once tidals becomes its own github repository, then this step will no longer be necessary
61-
# TODO: publish tidals as a PyPi pacakge
62-
63-
files = glob.glob(os.path.abspath(
64-
os.path.join(os.path.dirname(__file__), "..", "*")))
65-
66-
hidFiles = glob.glob(os.path.abspath(
67-
os.path.join(os.path.dirname(__file__), "..", ".*")))
68-
69-
allFiles = files + hidFiles
70-
71-
# if loaded from github with pip in environmental.yml, then when it will
72-
# create a source file (src) and clone the entire data-analytics repo
73-
"""
74-
for i in allFiles:
75-
# make sure you are in the src/tidals/ directory
76-
if "src" in i.split(sep=os.sep)[-3]:
77-
# delete all BUT files in tidals package
78-
if "tidepool-analysis-tools" not in i:
79-
if os.path.isdir(i):
80-
shutil.rmtree(i)
81-
else:
82-
os.remove(i)
83-
"""
54+
)

0 commit comments

Comments
 (0)