-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
78 lines (64 loc) · 2.08 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
72
73
74
75
76
77
78
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
The setup script for the calibraxis package.
.. moduleauthor:: hbldh <henrik.blidh@nedomkull.com>
Created on 2016-04-08
'''
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
import os
import sys
import re
from codecs import open
from setuptools import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py register')
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
sys.exit()
with open('calibraxis.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
def read(f):
return open(f, encoding='utf-8').read()
setup(
name='calibraxis',
version=version,
author='Henrik Blidh',
author_email='henrik.blidh@nedobmkull.com',
url='https://github.com/hbldh/calibraxis',
description='Autocalibration method for accelerometers, implemented in Python.',
long_description=read('README.rst'),
license='MIT',
keywords=['Calibration', 'Accelerometers'],
classifiers=[
'Development Status :: 4 - Beta',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development',
'Topic :: Scientific/Engineering',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
py_modules=['calibraxis'],
test_suite="tests",
zip_safe=False,
include_package_data=True,
install_requires=[
'numpy>=1.9.0',
'six>=1.9.0'
],
setup_requires=['pytest-runner', ],
tests_require=['pytest', ],
ext_modules=[],
entry_points={}
)