forked from rwb27/openflexure_nano_motor_controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (41 loc) · 1.65 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
__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_stage", "__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_stage',
version = version,
description = 'Control scripts for the OpenFlexure Nano Motor Controller',
long_description = long_description,
url = 'http://www.github.com/rwb27/openflexure_nano_motor_controller',
author = 'Richard Bowman',
author_email = '[email protected]',
download_url = 'https://github.com/rwb27/openflexure_nano_motor_controller/archive/v'+version+'.tar.gz',
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',
'numpy',
],
# TODO: add build requires for sphinx, sphinxcontrib-apidoc
)