-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
71 lines (54 loc) · 1.78 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
from setuptools import setup, find_packages
import os
def read(fname):
fpath = os.path.join(os.path.dirname(__file__), fname)
return open(fpath).read()
def find_version_from_readme():
s = read('README.md')
i0 = s.lower().find('version')
i1 = i0 + 20
v = s[i0:i1].splitlines()[0] # removes next line
v = v.split(' ')[1] # finds version number
return v
def walker(base, *paths):
file_list = set([])
cur_dir = os.path.abspath(os.curdir)
os.chdir(base)
try:
for path in paths:
for dname, _, files in os.walk(path):
for f in files:
file_list.add(os.path.join(dname, f))
finally:
os.chdir(cur_dir)
return list(file_list)
setup(
# Application name:
name='phyto_photo_utils',
# Version number (initial):
version=find_version_from_readme(),
# Application author details:
author='Thomas Ryan-Keogh, Charlotte Robinson',
author_email='[email protected]',
# Packages
packages=find_packages(),
# Include additional files into the package
include_package_data=True,
# Details
url='https://gitlab.com/tjryankeogh/phytophotoutils',
download_url= 'https://gitlab.com/tjryankeogh/phytophotoutils/-/archive/v1.4.6/phytophotoutils-v1.4.6.tar.gz',
license='MIT License',
description='Tools and utilities for active chlorophyll fluorescence data processing.',
organisation='Council for Scientific and Industrial Research, Curtin University',
long_description=read('README.md'),
long_description_content_type='text/markdown',
# Dependent packages (distributions)
install_requires=[
'tqdm',
'scipy',
'numpy',
'pandas',
'datetime',
'matplotlib',
'sklearn'],
)