-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup.py
60 lines (53 loc) · 2.03 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
__author__ = 'Richard Bowman'
from setuptools import setup, find_packages
from codecs import open
from os import path
import re
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
def find_version():
"""Determine the version based on __init__.py"""
with open(path.join(here, "openflexure_microscope", "__init__.py"), 'r') as f:
init_py = f.read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", init_py, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Couldn't parse version string from __init__.py")
version = find_version()
setup(name = 'openflexure_microscope',
version = version,
description = 'Control scripts for the OpenFlexure Microscope',
long_description = long_description,
url = 'http://www.github.com/rwb27/openflexure_microscope_software',
author = 'Richard Bowman',
author_email = '[email protected]',
download_url = 'https://github.com/rwb27/openflexure_microscope_software/archive/{}.tar.gz'.format(version),
packages = find_packages(),
keywords = ['arduino','serial','microscope'],
zip_safe = True,
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 2.7'
],
install_requires = [
'pyserial',
'future',
'openflexure_stage',
'readchar',
'numpy',
'scipy',
'matplotlib',
'picamera',
],
dependency_links = [ # The aim is to be backwards-compatible; the lens shading is not required
#'https://github.com/rwb27/picamera/tarball/lens-shading'
],
entry_points = {
'console_scripts': [
'openflexure_microscope = openflexure_microscope.__main__:main'
]
},
)