Browse Source

Drops transparent translation compilation

Adrien Panay 6 years ago
parent
commit
cb9991e392
2 changed files with 7 additions and 21 deletions
  1. 6 0
      README.md
  2. 1 21
      tracim/setup.py

+ 6 - 0
README.md View File

@@ -168,6 +168,12 @@ Create configuration files for a development environment and for `WsgiDAV`:
168 168
     cp tracim/development.ini.base tracim/development.ini
169 169
     cp tracim/wsgidav.conf.sample tracim/wsgidav.conf
170 170
 
171
+## Translation ##
172
+
173
+Compile translation binary files from available catalogs:
174
+
175
+    python setup.py compile_catalog
176
+
171 177
 ## Database schema ##
172 178
 
173 179
 The last step before running the application is to initialize the database

+ 1 - 21
tracim/setup.py View File

@@ -3,8 +3,6 @@
3 3
 #  sqlalchemy: True
4 4
 #  auth:       sqlalchemy
5 5
 #  mako:       True
6
-from setuptools.command.develop import develop
7
-
8 6
 try:
9 7
     from setuptools import setup, find_packages
10 8
 except ImportError:
@@ -13,15 +11,6 @@ except ImportError:
13 11
     from setuptools import setup, find_packages
14 12
 
15 13
 
16
-class DevelopWithCompileCatalog(develop):
17
-    """Extend base develop setup.py command."""
18
-
19
-    def run(self):
20
-        """Compiles binary translation files from catalog."""
21
-        super().run()
22
-        self.run_command('compile_catalog')
23
-
24
-
25 14
 classifiers = [
26 15
     'License :: OSI Approved :: GNU Affero General Public License v3',
27 16
     'Programming Language :: Python',
@@ -34,7 +23,7 @@ testpkgs = [
34 23
     'WebTest >= 1.2.3',
35 24
     'nose',
36 25
     'coverage',
37
-    'gearbox'
26
+    'gearbox',
38 27
 ]
39 28
 
40 29
 install_requires = [
@@ -52,11 +41,6 @@ install_requires = [
52 41
     'rq==0.7.1',
53 42
     'filedepot>=0.5.0',
54 43
     'preview-generator',
55
-    'babel',
56
-]
57
-
58
-setup_requires = [
59
-    'babel',
60 44
 ]
61 45
 
62 46
 setup(
@@ -71,7 +55,6 @@ setup(
71 55
     url='https://github.com/tracim/tracim',
72 56
     packages=find_packages(exclude=['ez_setup']),
73 57
     install_requires=install_requires,
74
-    setup_requires=setup_requires,
75 58
     include_package_data=True,
76 59
     test_suite='nose.collector',
77 60
     tests_require=testpkgs,
@@ -107,7 +90,4 @@ setup(
107 90
         'http://github.com/algoo/preview-generator/tarball/master#egg=preview_generator-1.0',
108 91
     ],
109 92
     zip_safe=False,
110
-    cmdclass={
111
-        'develop': DevelopWithCompileCatalog,
112
-    },
113 93
 )