1 |
2bd63098
|
Frédéric Péters
|
#! /usr/bin/python
|
2 |
|
|
|
3 |
|
|
from setuptools import setup, find_packages
|
4 |
|
|
import os
|
5 |
|
|
import subprocess
|
6 |
|
|
|
7 |
|
|
VERSION='0.1'
|
8 |
|
|
|
9 |
|
|
def get_version():
|
10 |
|
|
if os.path.exists('.git'):
|
11 |
|
|
p = subprocess.Popen(['git','describe','--dirty'], stdout=subprocess.PIPE)
|
12 |
|
|
result = p.communicate()[0]
|
13 |
|
|
return result.split()[0].replace('-','.')
|
14 |
|
|
return VERSION
|
15 |
|
|
|
16 |
|
|
setup(name='wcsinst',
|
17 |
|
|
version=get_version(),
|
18 |
|
|
license='AGPLv3',
|
19 |
|
|
description='',
|
20 |
|
|
url='https://dev.entrouvert.org/projects/wcsinst/',
|
21 |
|
|
download_url='http://repos.entrouvert.org/wcsinst.git/',
|
22 |
|
|
author="Entr'ouvert",
|
23 |
|
|
author_email="info@entrouvert.com",
|
24 |
|
|
packages=find_packages(os.path.dirname(__file__) or '.'),
|
25 |
|
|
scripts=['manage.py'],
|
26 |
|
|
include_package_data = True,
|
27 |
|
|
install_requires=[
|
28 |
|
|
'django >= 1.5.1, < 1.6',
|
29 |
9994d72b
|
Benjamin Dauvergne
|
'django-jsonresponse==0.5',
|
30 |
2bd63098
|
Frédéric Péters
|
],
|
31 |
|
|
)
|