3
# Copyright 2013 Canonical Ltd.
5
# This program is free software: you can redistribute it and/or modify it
6
# under the terms of the GNU Affero General Public License version 3, as
7
# published by the Free Software Foundation.
9
# This program is distributed in the hope that it will be useful, but
10
# WITHOUT ANY WARRANTY; without even the implied warranties of
11
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
12
# PURPOSE. See the GNU Affero General Public License for more details.
14
# You should have received a copy of the GNU Affero General Public License
15
# along with this program. If not, see <http://www.gnu.org/licenses/>.
20
from setuptools import find_packages, setup
22
# ensure find_packages works if our current directory isn't this project
23
basedir = os.path.abspath(os.path.dirname(__file__))
25
packages = find_packages(basedir)
27
if sys.argv[1] == 'create_db':
28
import ticket_system.settings
29
import ci_utils.create_db
30
dbconfig = ticket_system.settings.DATABASES['default']
31
exit(ci_utils.create_db.create_db(dbconfig))
37
'django-tastypie==0.9.15',
44
version=ticket_system.__version__,
45
description='Ticket system component of Ubuntu CI Services',
46
author='Chris Johnston',
47
author_email='chrisjohnston@ubuntu.com',
51
install_requires=requires,