2012-09-04 19:09:44 +02:00
|
|
|
#!/usr/bin/python
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
import os
|
|
|
|
|
2013-08-08 11:12:29 +02:00
|
|
|
def get_version():
|
2014-07-18 18:49:18 +02:00
|
|
|
from calebasse import __version__
|
|
|
|
version = __version__
|
2013-08-08 11:12:29 +02:00
|
|
|
if os.path.exists('.git'):
|
|
|
|
import subprocess
|
2014-08-25 10:15:03 +02:00
|
|
|
p = subprocess.Popen(['git','describe','--dirty','--match=v*'],
|
2013-08-08 11:12:29 +02:00
|
|
|
stdout=subprocess.PIPE)
|
|
|
|
result = p.communicate()[0]
|
|
|
|
assert p.returncode == 0, 'git returned non-zero'
|
2014-08-25 10:15:03 +02:00
|
|
|
new_version = result.split()[0][1:]
|
2013-08-08 11:12:29 +02:00
|
|
|
assert new_version.split('-')[0] == version, '__version__ must match the last git annotated tag'
|
|
|
|
version = new_version.replace('-', '.')
|
|
|
|
return version
|
|
|
|
|
|
|
|
|
2012-09-05 11:26:10 +02:00
|
|
|
setup(name='calebasse',
|
2013-08-08 11:12:29 +02:00
|
|
|
version=get_version(),
|
2012-09-04 19:09:44 +02:00
|
|
|
license='AGPLv3',
|
|
|
|
description='',
|
2012-09-05 11:26:10 +02:00
|
|
|
url='http://dev.entrouvert.org/projects/calebasse/',
|
|
|
|
download_url='http://repos.entrouvert.org/calebasse.git/',
|
2012-09-04 19:09:44 +02:00
|
|
|
author="Entr'ouvert",
|
|
|
|
author_email="info@entrouvert.com",
|
|
|
|
packages=find_packages(os.path.dirname(__file__) or '.'),
|
|
|
|
install_requires=[
|
2013-12-19 12:38:31 +01:00
|
|
|
'Django >= 1.5, < 1.6',
|
2014-07-11 15:43:53 +02:00
|
|
|
'south >= 0.8.4',
|
2013-12-11 15:48:23 +01:00
|
|
|
'django-reversion == 1.6.6',
|
|
|
|
'python-dateutil >= 2.2, < 2.3',
|
|
|
|
'django-model-utils >= 1.5.0',
|
2012-10-24 13:53:43 +02:00
|
|
|
'django-ajax-selects < 1.3.0',
|
2012-10-24 18:35:38 +02:00
|
|
|
'django-widget-tweaks < 1.2.0',
|
2013-12-11 15:48:23 +01:00
|
|
|
'django-tastypie == 0.9.14',
|
2014-06-20 11:21:51 +02:00
|
|
|
'django-select2 < 4.3',
|
2012-10-25 18:49:17 +02:00
|
|
|
'interval == 1.0.0',
|
2014-07-17 15:22:46 +02:00
|
|
|
'python-entrouvert >= 1.3',
|
2013-10-30 18:07:41 +01:00
|
|
|
'django-localflavor',
|
2013-12-19 12:38:31 +01:00
|
|
|
'xhtml2pdf',
|
|
|
|
'M2Crypto',
|
2014-07-17 15:22:46 +02:00
|
|
|
'django_journal',
|
2012-09-04 19:09:44 +02:00
|
|
|
],
|
|
|
|
dependency_links = [
|
|
|
|
'http://django-swingtime.googlecode.com/files/django-swingtime-0.2.1.tar.gz#egg=django-swingtime-0.2.1',
|
|
|
|
],
|
|
|
|
)
|