Grammalecte  Check-in [6eca84f2dc]

Overview
Comment:[server] don’t use global ini file for server options
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | server
Files: files | file ages | folders
SHA3-256: 6eca84f2dc3321546ee62f1c44928e97aff25568c805ef22405e0067e0627814
User & Date: olr on 2018-07-07 12:27:28
Other Links: manifest | tags
Context
2018-07-07
12:38
[server] don’t use locale ini file for grammar options check-in: 88c61f02e9 user: olr tags: trunk, server
12:27
[server] don’t use global ini file for server options check-in: 6eca84f2dc user: olr tags: trunk, server
12:08
[server] don’t use global ini file for server options check-in: 1724e34975 user: olr tags: trunk, server
Changes

Modified gc_lang/fr/setup.py from [84260050cd] to [170cb6a021].

58
59
60
61
62
63
64
65

66
67
68
69
70
71
72
58
59
60
61
62
63
64

65
66
67
68
69
70
71
72







-
+







        'Programming Language :: Python :: 3.6',
    ],

    # What does your project relate to?
    keywords='French grammar checker correcteur grammatical français',

    # Scripts
    scripts=['grammalecte-cli.py', 'grammalecte-server.py', 'grammalecte-server-options.fr.ini', 'grammalecte-server-options._global.ini'],
    scripts=['grammalecte-cli.py', 'grammalecte-server.py', 'grammalecte-server-options.fr.ini'],

    # You can just specify the packages manually here if your project is
    # simple. Or you can use find_packages().
    # packages=find_packages(exclude=['contrib', 'docs', 'tests']),
    packages=['grammalecte', 'grammalecte.graphspell', 'grammalecte.fr'],

    # Alternatively, if you want to distribute just a my_module.py, uncomment

Modified make.py from [dcf6a6310a] to [4fb0107a18].

154
155
156
157
158
159
160
161

162
163
164
165
166
167
168
169
154
155
156
157
158
159
160

161

162
163
164
165
166
167
168







-
+
-









def createPackageZip (sLang, dVars, spLangPack):
    "create server zip"
    spfZip = "_build/" + dVars['name'] + "-"+ dVars['lang'] +"-v" + dVars['version'] + '.zip'
    hZip = zipfile.ZipFile(spfZip, mode='w', compression=zipfile.ZIP_DEFLATED)
    copyGrammalectePyPackageInZipFile(hZip, spLangPack)
    for spf in ["grammalecte-cli.py", "grammalecte-server.py", \
    for spf in ["grammalecte-cli.py", "grammalecte-server.py", "grammalecte-server-options."+sLang+".ini", \
                "grammalecte-server-options._global.ini", "grammalecte-server-options."+sLang+".ini", \
                "README.txt", "LICENSE.txt", "LICENSE.fr.txt"]:
        hZip.write(spf)
    hZip.writestr("setup.py", helpers.fileFile("gc_lang/fr/setup.py", dVars))


def copyGrammalectePyPackageInZipFile (hZip, spLangPack, sAddPath=""):
    for sf in os.listdir("grammalecte"):