forked from muhuk/django-inviting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (48 loc) · 1.8 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
import os
import sys
from distutils.core import setup
from invitation import __version__, __maintainer__, __email__
def compile_translations():
try:
from django.core.management.commands.compilemessages \
import compile_messages
except ImportError:
return None
curdir = os.getcwdu()
os.chdir(os.path.join(os.path.dirname(__file__), 'invitation'))
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-inviting',
version = __version__,
url = 'https://github.com/muhuk/django-inviting',
author = __maintainer__,
author_email = __email__,
license = license_text,
packages = ['invitation',
'invitation.tests',
'invitation.templatetags'],
package_data= {
'invitation': ['templates/admin/invitation/invitationstats/*',
'tests/templates/invitations/*',
'tests/templates/registration/*',
'locale/*/LC_MESSAGES/django.*']
},
data_files=[('', ['LICENSE.txt',
'README.rst'])],
description = 'Registration through invitations',
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']
)