forked from muhuk/django-simple-friends
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (36 loc) · 1.46 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
import os, sys
from distutils.core import setup
from django.core.management.commands.compilemessages import compile_messages
from friends import __version__, __maintainer__, __email__
def compile_translations():
curdir = os.getcwdu()
os.chdir(os.path.join(os.path.dirname(__file__), 'friends'))
try:
compile_messages(stderr=sys.stderr)
except TypeError:
# compile_messages doesn't accept stderr parameter prior to 1.2.4
compile_messages()
os.chdir(curdir)
compile_translations()
license_text = open('LICENSE.txt').read()
long_description = open('README.rst').read()
setup(
name = 'django-simple-friends',
version = __version__,
url = 'http://github.com/muhuk/django-simple-friends',
author = __maintainer__,
author_email = __email__,
license = license_text,
packages = ['friends', 'friends.templatetags'],
package_data= {'friends': ['fixtures/*.json',
'locale/*/LC_MESSAGES/django.*']},
data_files=[('', ['LICENSE.txt', 'README.rst'])],
description = 'Like django-friends, but simpler',
long_description=long_description,
classifiers = ['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content']
)