-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
57 lines (50 loc) · 1.53 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
# -*- coding: utf-8 -*-
import os
from distutils.core import setup
here = os.path.dirname(__file__)
def get_long_desc():
return open(os.path.join(here, 'README.rst')).read()
# Function borrowed from carljm.
def get_version():
fh = open(os.path.join(here, "faq", "__init__.py"))
try:
for line in fh.readlines():
if line.startswith("__version__ ="):
return line.split("=")[1].strip().strip("'")
finally:
fh.close()
setup(
name='django-faq',
version=get_version(),
description='Frequently Asked Question (FAQ) management for Django apps.',
url='https://github.com/benspaulding/django-faq/',
author='Ben Spaulding',
author_email='[email protected]',
license='BSD',
download_url='http://github.com/benspaulding/django-faq/tarball/v%s' % get_version(),
long_description = get_long_desc(),
packages = [
'faq',
'faq.tests',
'faq.urls',
'faq.views',
],
package_data = {
'faq': [
'fixtures/*',
'locale/*/LC_MESSAGES/*',
'templates/faq/*',
'templates/search/indexes/faq/*',
],
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Site Management',
],
)