-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (60 loc) · 1.86 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
#!/usr/bin/env python
from setuptools import setup
with open('repype/version.py') as fin:
exec(fin.read(), globals())
def strip_raw(rst):
lines_in = rst.split('\n')
lines_out = list()
while len(lines_in) > 0:
line = lines_in.pop(0)
# Found a raw directive
if line.strip() == '.. raw:: html':
raw_length = 0
while len(lines_in) > 0:
line = lines_in.pop(0)
if line == '' and raw_length > 1:
break
else:
raw_length += 1
# Fast-forward
else:
lines_out.append(line)
# Strip empty lines
while len(lines_out) > 0 and lines_out[0].strip() == '':
lines_out.pop(0)
while len(lines_out) > 0 and lines_out[-1].strip() == '':
lines_out.pop(-1)
# Strip trailing '----'
if lines_out[-1] == '----':
lines_out.pop(-1)
while len(lines_out) > 0 and lines_out[-1].strip() == '':
lines_out.pop(-1)
return '\n'.join(lines_out)
setup(
name = 'repype',
version = VERSION,
python_requires = '>=3.9',
install_requires = [
'dill>=0.3.2',
'frozendict>=2.4',
'mergedeep>=1.3.4',
'pyyaml>=6.0.1',
'watchdog>=4.0.2',
'textual[syntax]==0.76.0',
'pandas>=2,<3',
],
description = 'Reproducible batch processing using pipelines for scientific computing.',
long_description = strip_raw(open('README.rst').read()),
long_description_content_type = 'text/x-rst',
author = 'Leonid Kostrykin',
author_email = '[email protected]',
url = 'https://github.com/kostrykin/repype',
license = 'MIT',
packages = ['repype', 'repype.textual'],
package_data = {
'repype.textual': [
'repype.tcss',
],
},
include_package_data = True,
)