This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
79 lines (72 loc) · 2.37 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#setup.py - Chula
#
#Copyright (C) 2010 John McFarlane <john.mcfarlane@rockfloat.com>
#
#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2 of the License, or
#(at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with this program; if not, write to the Free Software
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Python imports
import os
import sys
# Third party imports (use distribute's setuptools, or distutils)
try:
import setuptools
if setuptools._distribute:
from setuptools import setup
except:
from distutils.core import setup
# Project imports
import chula
from chula import error
# Check for dependencies
if 'install' in sys.argv:
if sys.version_info < (2, 5):
raise error.MissingDependencyError('Python-2.6 or higher')
def find_packages():
for root, dirs, files in os.walk('chula'):
if '__init__.py' in files:
yield root.replace(os.path.sep, '.')
# Attributes
AUTHOR = 'John McFarlane'
CLASSIFIERS = """
Development Status :: 4 - Beta
Intended Audience :: Developers
License :: OSI Approved :: GNU General Public License (GPL)
Operating System :: OS Independent
Programming Language :: Python
Topic :: Database
Topic :: Internet :: WWW/HTTP :: Site Management
Topic :: Software Development
Topic :: Software Development :: Libraries :: Python Modules
"""
EMAIL = 'john.mcfarlane@rockfloat.com'
LICENSE = 'GPL'
NAME = 'Chula'
PYPI = 'http://pypi.python.org/packages/source/C/Chula'
URL = 'http://chula.rockfloat.com'
ZIP_SAFE = True
setup(
author = AUTHOR,
author_email = EMAIL,
classifiers = [c for c in CLASSIFIERS.split('\n') if c],
description = chula.__doc__.split('\n')[0],
download_url = '%s/Chula-%s.tar.gz' % (PYPI, chula.version),
license = LICENSE,
long_description = '\n'.join(chula.__doc__.split('\n')[2:]),
name = NAME,
packages = list(find_packages()),
scripts = ['scripts/chula-run'],
url = URL,
version = chula.version
)