-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
48 lines (42 loc) · 1.5 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
# -*- coding: utf-8 -*-
import os
from setuptools import setup
from setuptools import find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md')) as f:
long_description = f.read()
# import version number
version = {}
with open("./sr700api/version.py") as fp:
exec(fp.read(), version)
# later on we use: version['__version__']
# get deploy key from https://help.github.com/articles/git-automation-with-oauth-tokens/
# github_token = os.environ['GITHUB_TOKEN']
setup(
name='sr700api',
version=version['__version__'],
description='A Python module to control a FreshRoast SR700 coffee roaster'
' with Artisan software, requiring a temperature probe connected '
'to a v3.6 Bus Pirate.',
long_description=long_description,
url='https://none',
author='int3ll3ct',
author_email='[email protected]',
maintainer='int3ll3ct',
maintainer_email='[email protected]',
license='MIT',
packages=find_packages(),
install_requires=[
'flask-restful>=0.3.6',
'requests',
'freshroastsr700>=0.2.4'
# 'pyBusPirateLite'
],
scripts=['bin/sr700api']
# This requires git OAuth tokens to run,
# and requires pip install with --process-dependency-links option
# dependency_links=[
# 'git+https://{github_token}@github.com/juhasch/{package}.git/@{version}#egg={package}-0'
# .format(github_token=github_token, package=pyBusPirateLite, version=master)
# ]
)