This repository was archived by the owner on May 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
53 lines (41 loc) · 1.57 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
from setuptools import setup
import os
import re
# Avoid polluting the .tar.gz with ._* files under Mac OS X
os.putenv('COPYFILE_DISABLE', 'true')
# Prevent distutils from complaining that a standard file wasn't found
README = os.path.join(os.path.dirname(__file__), 'README')
if not os.path.exists(README):
os.symlink(README + '.md', README)
VERSION = os.path.join(os.path.dirname(__file__), 'o18n', '__init__.py')
with open(VERSION) as f:
version = re.match("^__version__ = '(.*)'$", f.read()).group(1)
description = "/<country>/<language>/ URL scheme, like Django's i18n_patterns."
with open(README) as f:
long_description = '\n\n'.join(f.read().split('\n\n')[1:11])
setup(
name='django-o18n',
version=version,
description=description,
long_description=long_description,
url='https://github.com/oscaro/django-o18n',
author='Aymeric Augustin',
author_email='[email protected]',
license='BSD',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
packages=['o18n'],
)