-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
49 lines (43 loc) · 1.42 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
49
# -*- coding: utf-8 -*-
#! /usr/bin/env python
import os
import subprocess
from setuptools import setup
import six
here = os.path.dirname(os.path.abspath(__file__))
README = open(os.path.join(here, 'README.md')).read()
REQUIREMENTS = open(os.path.join(here, 'requirements/base.txt')).readlines()
def get_version_from_git_tag():
command = "git describe --abbrev=0 --tags"
if six.PY2:
return subprocess.check_output(
command, shell=True, stderr=subprocess.STDOUT).strip()
return subprocess.getoutput(command).strip()
scripts = {
"console_scripts": [
"eccehomo=eccehomo.app:app",
]
}
setup(
name='eccehomo',
version=get_version_from_git_tag(),
description='Micro application to serve images with customized cropping',
long_description=README,
author='DictGet Team',
author_email='[email protected]',
url="https://github.com/dictget/ecce-homo",
download_url="https://github.com/dictget/ecce-homo/archive/{}.tar.gz".format(
get_version_from_git_tag()
),
packages=['eccehomo'],
test_suite="eccehomo.tests",
entry_points=scripts,
install_requires=REQUIREMENTS,
classifiers=[
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
)