-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
61 lines (47 loc) · 1.67 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# {# pkglts, pysetup.kwds
# format setup arguments
from setuptools import setup, find_packages
short_descr = "Generating high-quality meshes of cell tissue from 3D segmented images"
readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
def parse_requirements(fname):
with open(fname, 'r') as f:
txt = f.read()
reqs = []
for line in txt.splitlines():
line = line.strip()
if len(line) > 0 and not line.startswith("#"):
reqs.append(line)
return reqs
# find version number in src/openalea/draco_stem/version.py
version = {}
with open("src/openalea/draco_stem/version.py") as fp:
exec(fp.read(), version)
setup_kwds = dict(
name='openalea.draco_stem',
version=version["__version__"],
description=short_descr,
long_description=readme + '\n\n' + history,
author="Guillaume Cerutti, ",
author_email="guillaume.cerutti@inria.fr, ",
url='https://github.com/Guillaume Cerutti/draco_stem',
license='cecill-c',
zip_safe=False,
packages=find_packages('src'),
package_dir={'': 'src'},
install_requires=parse_requirements("requirements.txt"),
tests_require=parse_requirements("dvlpt_requirements.txt"),
entry_points={},
keywords='',
test_suite='nose.collector',
)
# #}
# change setup_kwds below before the next pkglts tag
setup_kwds['entry_points']['wralea'] = ['draco_stem = openalea.draco_stem_wralea']
setup_kwds['entry_points']['oalab.applet'] = ['oalab.applet/draco = openalea.draco_stem.draco_oalab.plugin.applet']
# do not change things below
# {# pkglts, pysetup.call
setup(**setup_kwds)
# #}