-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
29 lines (24 loc) · 859 Bytes
/
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
from setuptools import setup, find_packages
import subprocess
def get_version():
process = subprocess.Popen(["git", "describe", "--always", "--tags"], stdout=subprocess.PIPE, stderr=None)
last_tag = process.communicate()[0].decode('ascii').strip()
if '-g' in last_tag:
return last_tag.split('-g')[0].replace('-', '.')
else:
return last_tag
with open('requirements.txt') as f:
install_reqs = f.read().splitlines()
setup(
name='devdeck_hue',
version=get_version(),
description="Philips Hue controls for DevDeck.",
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author='Nicolas Dumazet',
url='https://github.com/nicdumz/devdeck-hue',
license='MIT',
packages=find_packages(),
include_package_data=True,
install_requires=install_reqs
)