-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpavement.py
executable file
·51 lines (40 loc) · 1.58 KB
/
pavement.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
import sys
from paver.setuputils import install_distutils_tasks
from paver.easy import task, needs, options, sh
sys.path.insert(0, '.')
import version
properties = dict(
package_name='dmf_sma',
version=version.getVersion(),
url='http://github.com/wheeler-microfluidics/dmf-sma.git',
short_description='Code for simulating, modeling, and analysing Digital '
'Microfluidics force and velocity data.',
long_description='',
category='Analysis',
author='Ryan Fobel',
author_email='[email protected]')
install_distutils_tasks()
options(
LIB_PROPERTIES=properties,
setup=dict(name=properties['package_name'].replace('_', '-'),
description='\n'.join([properties['short_description'],
properties['long_description']]),
author_email=properties['author_email'],
author=properties['author'],
url=properties['url'],
version=properties['version'],
install_requires=['numpy', 'pandas', 'path-helpers>=0.2',
'sympy', 'matplotlib'],
# Install data listed in `MANIFEST.in`
include_package_data=True,
license='BSD-3-Clause',
packages=[properties['package_name']]))
@task
def nosetests():
nose_options = '-v'
sh('nosetests %s' % nose_options)\
@task
@needs('generate_setup', 'minilib', 'setuptools.command.sdist', 'nosetests')
def sdist():
"""Override sdist to make sure that our setup.py is generated."""
pass