forked from mattermost/mattermost-integration-giphy
-
Notifications
You must be signed in to change notification settings - Fork 87
/
setup.py
45 lines (39 loc) · 1.23 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
import os
import subprocess
from setuptools import setup
from setuptools import find_packages
def version():
if not os.path.isdir(".git"):
print("This does not appear to be a Git repository.")
return
try:
p = subprocess.Popen(["git", "describe",
"--tags", "--always"],
stdout=subprocess.PIPE)
except EnvironmentError:
print("unable to run git, leaving ecdsa/_version.py alone")
return
stdout = p.communicate()[0]
if p.returncode != 0:
print("unable to run git, leaving ecdsa/_version.py alone")
return
return str(stdout[:-1])
README = os.path.join(os.path.dirname(__file__), 'README.md')
setup(
name='mattermost_giphy',
version=version(),
description="Giphy Integration Service for Mattermost.",
long_description=README,
classifiers=[],
author='Lujeni',
author_email='[email protected]',
url='https://github.com/numberly/mattermost-integration-giphy',
license='',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data=True,
zip_safe=False,
install_requires=[
'Flask==1.0',
'requests==2.20.0',
]
)