-
Notifications
You must be signed in to change notification settings - Fork 22
/
setup.py
executable file
·45 lines (37 loc) · 1.22 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
#!/usr/bin/env python
# encoding: utf-8
"""
setup.py -- setup file for the libtim module
Created by Tim van Werkhoven ([email protected]) on 2010-05-19
Copyright (c) 2010--2012 Tim van Werkhoven. All rights reserved.
"""
from distutils.core import setup, Command
from unittest import TextTestRunner, TestLoader
cmdclasses = dict()
class TestCommand(Command):
"""Runs the unittests for libtim"""
description = "Runs the unittests for libtim"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
loader = TestLoader()
t = TextTestRunner()
# Run all test*py files in libtim subdirectory
t.run(loader.discover('libtim'))
# 'test' is the parameter as it gets added to setup.py
cmdclasses['test'] = TestCommand
# Setup
setup(cmdclass = cmdclasses,
name = 'libtim',
version = 'v0.1.2',
description = 'Miscellaneous image manipulation tools library',
keywords = 'wavefronts, zernike, FFT, cross-correlation',
author = 'Tim van Werkhoven',
author_email = '[email protected]',
url = 'http://work.vanwerkhoven.org/',
license = "GPL",
packages = ['libtim'],
scripts=['scripts/convert.py'])