-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
62 lines (54 loc) · 2.1 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
import os
import re, os
import unittest
from setuptools import setup, find_packages
base_dir = os.path.dirname(os.path.abspath(__file__))
version_file=os.path.join(base_dir, "picraftzero", "version.py")
with open(version_file, "rt") as f:
verstrline = f.read()
vsre = r"^version = ['\"]([^'\"]*)['\"]"
mo = re.search(vsre, verstrline, re.M)
if mo:
__version__ = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (version_file,))
install_requires = ['gpiozero'] # optional: #cap1xxx==0.1.3 evdev==0.6.4x
tests_require = ['selenium']
def test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('test')
return test_suite
setup(
name='picraftzero',
version=__version__ ,
description="A library for building universal controls for robots",
#long_description="\n\n".join([
# open(os.path.join(base_dir, "README.md"), "r").read(),
#]),
long_description="PiCraftZero, universal robot remote controls and viewer",
url='https://www.thebubbleworks.com/picraftzero',
author='Wayne Keenan',
author_email='[email protected]',
maintainer='Wayne Keenan',
maintainer_email='[email protected]',
license='MIT',
packages=find_packages(),
include_package_data=True,
#package_data={'picraftzero': ['picraftzero.cfg']},
zip_safe=False,
install_requires=install_requires,
tests_require=tests_require,
test_suite="setup.test_suite",
platforms=['Raspberry Pi', 'Linux', 'Mac'],
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=['Development Status :: 4 - Beta',
'Programming Language :: Python :: 3',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)