-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
71 lines (64 loc) · 2.13 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
# Inspired by
# http://www.jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
from setuptools import setup
import io
import re
def read(*filenames, **kwargs):
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
def find_version(filename):
version_file = read(filename)
version_match = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]',
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError('Unable to find version string.')
long_description = read('README')
setup(
name='Beams',
version=find_version('beams/__init__.py'),
packages=['beams'],
include_package_data=True,
eager_resources=['beams/icons'],
entry_points={
'gui_scripts': ['beams = beams.MainWindow:main'],
'camera_plugins': [
'apogee = beams.ApogeeCam:ApogeeCam',
'ds = beams.DirectShow:DirectShow',
'dummy = beams.DummyGaussian:DummyGaussian',
'webcam = beams.Webcam:Webcam',
]
},
install_requires=[
'traits >= 4',
'traitsui >= 4',
'pyface >= 4',
'chaco >= 4',
'scipy >= 0.11',
'pyxdg'
],
platforms='any',
# Metadata
author='Philip Chimento',
author_email='[email protected]',
url='http://ptomato.name/opensource/beams/beams.html',
description='Laser beam profiling software designed for cheap webcams',
long_description=long_description,
license='MIT License',
classifiers=[
'Programming Language :: Python',
'Development Status :: 4 - Beta',
'Natural Language :: English',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Multimedia :: Video :: Capture',
],
)