author | Lennard de Rijk <ljvderijk@gmail.com> |
Sat, 03 Oct 2009 21:49:08 +0200 | |
changeset 3003 | 6a84c1ff5b5c |
parent 2587 | ec7818110fd2 |
permissions | -rw-r--r-- |
2587
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
1 |
"""Minimal setup script to appease buildout for Melange. |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
2 |
""" |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
3 |
import os |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
4 |
import re |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
5 |
from setuptools import setup, find_packages |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
6 |
|
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
7 |
match_version = re.compile("version: ([0-9\-]+)") |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
8 |
try: |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
9 |
appyaml = open(os.path.join("app", "app.yaml.template")) |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
10 |
version = match_version.findall(appyaml.read())[0] |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
11 |
except: |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
12 |
version = "UNKNOWN" |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
13 |
|
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
14 |
|
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
15 |
setup( |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
16 |
name = 'melange', |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
17 |
description=("The goal of this project is to create a framework for " |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
18 |
"representing Open Source contribution workflows, such as" |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
19 |
" the existing Google Summer of Code TM (GSoC) program."), |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
20 |
version = version, |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
21 |
packages = find_packages(exclude=['app.django.*','thirdparty','parts']), |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
22 |
author=open("AUTHORS").read(), |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
23 |
url='http://code.google.com/p/soc', |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
24 |
license='Apache2', |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
25 |
install_requires = [ |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
26 |
], |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
27 |
tests_require=[ |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
28 |
'zope.testbrowser', |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
29 |
'gaeftest', |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
30 |
'nose', |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
31 |
], |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
32 |
entry_points = {'console_scripts': ['run-tests = tests.run:main', |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
33 |
], |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
34 |
}, |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
35 |
include_package_data = True, |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
36 |
zip_safe = False, |
ec7818110fd2
Start using buildout to bring in external dependencies.
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
37 |
) |