-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsetup.py
More file actions
45 lines (39 loc) · 1.28 KB
/
setup.py
File metadata and controls
45 lines (39 loc) · 1.28 KB
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
import sys
import re
if sys.version_info > (3,):
from setuptools import setup
else:
from distutils.core import setup
NAME = "bqclient"
DESCRIPTION = "BotQueue's client bumblebee"
URL = "http://github.com/Hoektronics/bumblebee/"
PACKAGES = ["bumblebee", "bumblebee.drivers"]
PKG_DATA = {"bumblebee": ["imagesnap"]}
DEPENDS = ["git://github.com/makerbot/pyserial#egg=pyserial"]
REQUIRES = ["Pygments", "pyserial", "requests-oauth", "beautifulsoup4", "makerbot-driver", "appdirs",
"pyopenssl", "ndg-httpsclient", "pyasn1"]
EXCLUDES = ["pydoc"]
VERSIONFILE = "bumblebee/_version.py"
line = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__\s*=\s*['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, line, re.M)
if mo:
VERSION = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % VERSIONFILE)
setup(name=NAME,
author="Zach 'Hoeken' Smith",
author_email="hoeken@gmail.com",
maintainer="Justin Nesselrotte",
maintainer_email="jnesselr@harding.edu",
description=DESCRIPTION,
version=VERSION,
url=URL,
packages=PACKAGES,
entry_points={
"console_scripts": ["bumblebee = bumblebee.__main__:main"]
},
dependency_links=DEPENDS,
install_requires=REQUIRES,
package_data=PKG_DATA
)