-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
34 lines (29 loc) · 991 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
30
31
32
33
34
from setuptools import setup, find_packages
import os
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(os.path.abspath(os.path.join(os.path.dirname(__file__), 'requirements.txt'))) as f:
install_reqs = f.read().splitlines()
setup(
name='devdeck',
version=get_version(),
description="A developer's approach to using a Stream Deck.",
long_description=open('README.md').read(),
author='James Ridgway',
url='https://github.com/jamesridgway/devdeck',
license='MIT',
packages=find_packages(),
entry_points={
'console_scripts': [
'devdeck = devdeck.main:main'
]
},
install_requires=install_reqs,
include_package_data=True
)