-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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="[email protected]", | ||
|
@@ -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) | ||
""" | ||
) |