1
|
#!/usr/bin/python
|
2
|
from setuptools import setup, find_packages
|
3
|
import os
|
4
|
|
5
|
def get_version():
|
6
|
from calebasse import __version__
|
7
|
version = __version__
|
8
|
if os.path.exists('.git'):
|
9
|
import subprocess
|
10
|
p = subprocess.Popen(['git','describe','--dirty'],
|
11
|
stdout=subprocess.PIPE)
|
12
|
result = p.communicate()[0]
|
13
|
assert p.returncode == 0, 'git returned non-zero'
|
14
|
new_version = result.split()[0]
|
15
|
assert new_version.split('-')[0] == version, '__version__ must match the last git annotated tag'
|
16
|
version = new_version.replace('-', '.')
|
17
|
return version
|
18
|
|
19
|
|
20
|
setup(name='calebasse',
|
21
|
version=get_version(),
|
22
|
license='AGPLv3',
|
23
|
description='',
|
24
|
url='http://dev.entrouvert.org/projects/calebasse/',
|
25
|
download_url='http://repos.entrouvert.org/calebasse.git/',
|
26
|
author="Entr'ouvert",
|
27
|
author_email="info@entrouvert.com",
|
28
|
packages=find_packages(os.path.dirname(__file__) or '.'),
|
29
|
install_requires=[
|
30
|
'Django >= 1.5, < 1.6',
|
31
|
'south >= 0.8.4',
|
32
|
'django-reversion == 1.6.6',
|
33
|
'python-dateutil >= 2.2, < 2.3',
|
34
|
'django-model-utils >= 1.5.0',
|
35
|
'django-ajax-selects < 1.3.0',
|
36
|
'django-widget-tweaks < 1.2.0',
|
37
|
'django-tastypie == 0.9.14',
|
38
|
'django-select2 < 4.3',
|
39
|
'interval == 1.0.0',
|
40
|
'python-entrouvert >= 1.3',
|
41
|
'django-localflavor',
|
42
|
'xhtml2pdf',
|
43
|
'M2Crypto',
|
44
|
'django_journal',
|
45
|
],
|
46
|
dependency_links = [
|
47
|
'http://django-swingtime.googlecode.com/files/django-swingtime-0.2.1.tar.gz#egg=django-swingtime-0.2.1',
|
48
|
],
|
49
|
)
|