14
14
import os
15
15
import glob
16
16
import shutil
17
+ import sys
17
18
18
19
20
+ if sys .version_info < (3 , 7 ):
21
+ sys .exit ("Sorry, Python < 3.7 is not supported" )
22
+
19
23
# %% START OF SETUP
20
24
with open ("README.md" , "r" ) as fh :
21
25
long_description = fh .read ()
22
26
23
27
version_string = "v0.0.1"
24
28
25
29
setuptools .setup (
26
- name = "pyLoopKit " ,
30
+ name = "pyloopkit " ,
27
31
version = version_string ,
28
32
author = "Ed Nykaza" ,
29
33
32
36
long_description_content_type = "text/markdown" ,
33
37
url = "https://github.com/tidepool-org/PyLoopKit" ,
34
38
packages = setuptools .find_packages (),
35
- download_url = (
36
- 'https://github.com/tidepool-org/PyLoopKit/tarball/' + version_string
37
- ),
39
+ include_package_data = True ,
40
+
38
41
classifiers = [
39
42
'Development Status :: 3 - Alpha' ,
40
43
'Intended Audience :: Developers' ,
41
44
'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' ,
46
46
],
47
47
install_requires = [
48
48
'numpy==1.16.4' ,
51
51
'plotly==4.1.0' ,
52
52
'matplotlib==3.1.1' ,
53
53
],
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