-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
30 lines (25 loc) · 937 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
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_slack',
version=get_version(),
description="Slack deck and controls for DevDeck.",
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author='James Ridgway',
url='https://github.com/jamesridgway/devdeck-slack',
license='MIT',
packages=find_packages(),
include_package_data=True,
install_requires=install_reqs
)