2013-02-11 11:06:47 +01:00
|
|
|
#!/usr/bin/python
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
import os
|
2013-05-15 15:52:05 +02:00
|
|
|
import subprocess
|
|
|
|
|
|
|
|
VERSION='0.1'
|
|
|
|
|
|
|
|
def get_version():
|
|
|
|
if os.path.exists('.git'):
|
|
|
|
p = subprocess.Popen(['git','describe','--dirty'], stdout=subprocess.PIPE)
|
|
|
|
result = p.communicate()[0]
|
|
|
|
return result.split()[0].replace('-','.')
|
|
|
|
return VERSION
|
2013-02-11 11:06:47 +01:00
|
|
|
|
|
|
|
setup(name='passerelle',
|
2013-05-15 15:52:05 +02:00
|
|
|
version=get_version(),
|
2013-02-11 11:06:47 +01:00
|
|
|
license='AGPLv3',
|
|
|
|
description='',
|
|
|
|
url='https://dev.entrouvert.org/projects/passerelle/',
|
|
|
|
download_url='http://repos.entrouvert.org/passerelle.git/',
|
|
|
|
author="Entr'ouvert",
|
|
|
|
author_email="info@entrouvert.com",
|
|
|
|
packages=find_packages(os.path.dirname(__file__) or '.'),
|
2013-05-16 10:45:15 +02:00
|
|
|
scripts=['passerelle_manage.py'],
|
2013-04-26 11:58:49 +02:00
|
|
|
include_package_data = True,
|
2013-02-11 11:06:47 +01:00
|
|
|
install_requires=[
|
2013-05-15 10:33:26 +02:00
|
|
|
'django >= 1.5.1, < 1.6',
|
2013-02-11 14:36:33 +01:00
|
|
|
'django-model-utils',
|
2013-06-18 11:07:13 +02:00
|
|
|
'south >= 0.8, < 0.9',
|
2013-02-11 11:06:47 +01:00
|
|
|
],
|
2013-02-11 11:28:50 +01:00
|
|
|
dependency_links = [
|
|
|
|
'http://pypi.python.org/packages/source/d/django-jsonresponse/django-jsonresponse-0.5.tar.gz',
|
2013-04-26 11:24:56 +02:00
|
|
|
],
|
2013-02-11 11:06:47 +01:00
|
|
|
)
|