Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 126 lines (116 sloc) 3.602 kb
ee2a6db @glezos Preliminary setuptools support
glezos authored
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3
4 import os
5 import glob
6 from codecs import BOM
7
69ef5a9 @glezos Fix packaging to include all necessary files.
glezos authored
8 from setuptools import setup, find_packages
ee2a6db @glezos Preliminary setuptools support
glezos authored
9 from setuptools.command.build_py import build_py as _build_py
10
11 from transifex.txcommon import version
12
13 readme_file = open(u'README')
14 long_description = readme_file.read()
15 readme_file.close()
16 if long_description.startswith(BOM):
17 long_description = long_description.lstrip(BOM)
18 long_description = long_description.decode('utf-8')
19
20 package_data = {
21 '': ['LICENCE', 'README'],
22 }
23
24 def buildlanguages():
25 import django.core.management.commands.compilemessages as c
26 oldpath = os.getcwd()
27 os.chdir(os.path.join(os.path.dirname(__FILE__), 'transifex',
28 'locale'))
29 c.compile_messages()
30 os.chdir(oldpath)
31
32 class build_py(_build_py):
33 def run(self):
34 buildlanguages()
35 _build_py.run(self)
36
37 setup(
38 # cmdclass={
39 # 'build_py': build_py,
40 # },
41 name="transifex",
42 version=version,
43 description="A platform for distributed translation submissions",
44 long_description=long_description,
45 author="The Transifex community and the staff of Indifex",
46 author_email="transifex-devel@googlegroups.com",
47 url="http://transifex.org/",
48 license="GPLv2",
4f37c74 @diegobz Fixed PIL dependency in setup.py
diegobz authored
49 dependency_links = [
777dd18 @glezos trivial: Refer to deps with >= and to their parent directory.
glezos authored
50 "http://dist.repoze.org/",
51 "http://www.aeracode.org/releases/south/",
72e9f41 @diegobz More fixes for setup.py
diegobz authored
52 "http://transifex.org/files/deps/",
4f37c74 @diegobz Fixed PIL dependency in setup.py
diegobz authored
53 "http://pypi.python.org/simple",
54 ],
ee2a6db @glezos Preliminary setuptools support
glezos authored
55 setup_requires = [
d49aec1 @glezos Added python-magic to the dependencies.
glezos authored
56 "Django >= 1.1.2",
ee2a6db @glezos Preliminary setuptools support
glezos authored
57 "Pygments >= 0.9",
6369fc0 @glezos Updated deps in setup.py
glezos authored
58 "Sphinx >= 0.4.2",
ee2a6db @glezos Preliminary setuptools support
glezos authored
59 ],
60 install_requires = [
d49aec1 @glezos Added python-magic to the dependencies.
glezos authored
61 "Django >= 1.1.2",
6369fc0 @glezos Updated deps in setup.py
glezos authored
62 "urlgrabber",
9075bb4 @diegobz Added markdown as a dependency in setup.py
diegobz authored
63 "markdown",
72e9f41 @diegobz More fixes for setup.py
diegobz authored
64 "userprofile",
6369fc0 @glezos Updated deps in setup.py
glezos authored
65 "httplib2",
b8d5b9b @diegobz minor: Updated polib dependency to 0.5.1
diegobz authored
66 "polib >= 0.5.1",
ee2a6db @glezos Preliminary setuptools support
glezos authored
67 "Pygments >= 0.9",
4f37c74 @diegobz Fixed PIL dependency in setup.py
diegobz authored
68 "PIL == 1.1.6",
ee2a6db @glezos Preliminary setuptools support
glezos authored
69 "contact_form >= 0.3", # hg 97559a887345 or newer
e3c07c0 @diegobz Added django-addons into setup.py and buildout.cfg
diegobz authored
70 "django-addons",
471aa58 @glezos ActionLog page for Projects.
glezos authored
71 "django-authority",
72 "django-filter >= 0.1",
ee2a6db @glezos Preliminary setuptools support
glezos authored
73 "django-notification >= 0.1.2",
74 "django-pagination >= 1.0.5",
6369fc0 @glezos Updated deps in setup.py
glezos authored
75 "django-piston",
71509ba @glezos trivial: Typo in setup.py requirements.
glezos authored
76 "django-sorting >= 0.1",
1477766 @glezos Renamed tagging dependency to django-tagging.
glezos authored
77 "django-tagging >= 0.3",
a2cada1 @diegobz Fixed deps
diegobz authored
78 "South >= 0.7",
63a16a4 @diegobz minor: Added django-ajax-selects dependency into the build scripts
diegobz authored
79 "django-ajax-selects",
e4c03cb @diegobz More updates of dependencies
diegobz authored
80 "django-threadedcomments >= 0.9",
a2cada1 @diegobz Fixed deps
diegobz authored
81 "django-staticfiles",
4f21df6 Updated dependencies and the documentation for the latest changes.
Korkakakis Nikos authored
82 "pygooglechart",
d49aec1 @glezos Added python-magic to the dependencies.
glezos authored
83 "python-magic",
ee2a6db @glezos Preliminary setuptools support
glezos authored
84 ],
85 data_files=[
e558ab0 @glezos trivial: These file in setup.py were dumped in tarball/ for no reason.
glezos authored
86 ('templates', glob.glob('transifex/templates/*.html')),
ee2a6db @glezos Preliminary setuptools support
glezos authored
87 ],
88
89 zip_safe=False,
69ef5a9 @glezos Fix packaging to include all necessary files.
glezos authored
90 packages=find_packages(),
ee2a6db @glezos Preliminary setuptools support
glezos authored
91 include_package_data=True,
92 package_data = package_data,
93 keywords = (
94 'django.app',
95 'translation localization internationalization vcs',),
96 classifiers = [line for line in '''
97 Development Status :: 5 - Production/Stable
98 Environment :: Web Environment
99 Framework :: Django
100 Intended Audience :: Developers
101 License :: OSI Approved :: GNU General Public License (GPL)
102 Operating System :: OS Independent
103 Programming Language :: Python
104 Topic :: Software Development :: Localization
105 Topic :: Software Development :: Internationalization
106 #84 Natural Language :: Catalan
107 #84 Natural Language :: Chinese (Simplified)
108 Natural Language :: English
109 #84 Natural Language :: German
110 #84 Natural Language :: Greek
111 #84 Natural Language :: Hungarian
112 #84 Natural Language :: Italian
113 #84 Natural Language :: Macedonian
114 #84 Natural Language :: Malay
115 #84 Natural Language :: Persian
116 Natural Language :: Polish
117 #84 Natural Language :: Portuguese (Brazilian)
118 #84 Natural Language :: Romanian
119 #84 Natural Language :: Russian
120 #84 Natural Language :: Slovak
121 #84 Natural Language :: Spanish
122 #84 Natural Language :: Swedish'''.strip().split('\n')
123 if not line.startswith('#')
124 ],
125 )
Something went wrong with that request. Please try again.