Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

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

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

110

111

112

113

114

115

116

117

118

119

120

121

122

123

124

125

126

127

128

129

130

131

132

133

134

135

136

137

138

139

140

141

142

143

144

145

146

147

148

149

150

151

152

153

154

155

156

157

158

159

160

161

162

163

164

165

166

167

168

169

170

171

172

173

174

175

176

177

178

179

180

181

182

183

184

185

186

187

188

189

190

191

192

193

194

195

196

197

198

199

200

201

202

203

204

205

206

207

208

209

210

211

212

213

214

215

216

217

218

219

220

221

222

223

224

225

226

227

228

229

230

231

232

233

234

# -*- coding: UTF-8 -*- 

# Copyright 2009-2016 Luc Saffre 

# License: BSD (see file COPYING for details) 

 

#~ Note that this module may not have a docstring because any 

#~ global variable defined here will override the global 

#~ namespace of lino/__init__.py who includes it with execfile. 

 

# This module is part of the Lino test suite. 

# To test only this module: 

# 

#   $ python setup.py test -s tests.PackagesTests 

 

from __future__ import unicode_literals 

import sys 

PY2 = sys.version_info[0] == 2 

PY3 = sys.version_info[0] == 3 

 

SETUP_INFO = dict( 

    name='lino', 

    version='1.7.0', 

    install_requires=[ 

        # 'django<1.7', 

        'django', 

        'Sphinx', 

        'atelier', 'unipath', 'python_dateutil', 

        'Babel', 'odfpy>1.3', 'lxml', 

        'beautifulsoup4', 'html5lib', 'pisa', 

        'jinja2', 'pytidylib', 'PyYAML', 

        'clint',  # lino.modlib.plausibility.management.commands 

        'django-localflavor',  # lino.modlib.sepa 

        # 'django-iban',  # lino.modlib.sepa 

        'xlwt', 'xlrd'], 

    tests_require=[], 

    # pisa has a bug which makes it complain that "Reportlab Version 

    # 2.1+ is needed!" when reportlab 3 is installed. 

    # So we install reportlab 2.7 (the latest 2.x version) 

 

    # beautifulsoup4, html5lib, reportlab and pisa are actually needed 

    # only when you want to run the test suite, not for normal 

    # operation.  Despite this they must be specified in 

    # `install_requires`, not in `tests_require`, because the doctests 

    # are run in the environment specified by `install_requires`. 

 

    description="A framework for writing desktop-like web applications " 

    "using Django and ExtJS", 

    license='BSD License', 

    include_package_data=True, 

    zip_safe=False, 

    obsoletes=['djangosite', 'north'], 

    author='Luc Saffre', 

    author_email='luc.saffre@gmail.com', 

    url="http://www.lino-framework.org", 

    #~ test_suite = 'lino.test_apps', 

    test_suite='tests', 

    classifiers="""\ 

  Programming Language :: Python 

  Programming Language :: Python :: 2 

  Programming Language :: Python :: 3 

  Development Status :: 5 - Production/Stable 

  Environment :: Web Environment 

  Framework :: Django 

  Intended Audience :: Developers 

  Intended Audience :: System Administrators 

  License :: OSI Approved :: BSD License 

  Natural Language :: English 

  Natural Language :: French 

  Natural Language :: German 

  Operating System :: OS Independent 

  Topic :: Database :: Front-Ends 

  Topic :: Home Automation 

  Topic :: Office/Business 

  Topic :: Software Development :: Libraries :: Application Frameworks""".splitlines()) 

 

if PY2: 

    SETUP_INFO['install_requires'].append('reportlab<2.7') 

else: 

    SETUP_INFO['install_requires'].append('reportlab') 

 

SETUP_INFO.update(long_description="""\ 

Lino is a high-level framework for writing desktop-like customized 

database applications based on `Django <https://www.djangoproject.com/>`_ 

and `Sencha ExtJS <http://www.sencha.com/products/extjs/>`_. 

Lino applications are Django projects 

where the application developer does not need to write any 

URLconf, HTML nor CSS (`more <http://lino-framework.org/about/what.html>`__). 

Examples of Lino applications are 

`Lino Welfare <http://welfare.lino-framework.org>`__, 

`Lino Così <http://cosi.lino-framework.org>`__ 

or 

`Lino Voga <http://voga.lino-framework.org>`__ 

(`more <http://lino-framework.org/about/projects.html>`__) 

""") 

 

SETUP_INFO.update(packages=[str(n) for n in """ 

lino 

lino.api 

lino.core 

lino.fake_migrations 

lino.history 

lino.mixins 

lino.modlib 

lino.modlib.about 

lino.modlib.awesomeuploader 

lino.modlib.bootstrap3 

lino.modlib.changes 

lino.modlib.comments 

lino.modlib.concepts 

lino.modlib.contacts 

lino.modlib.contacts.fixtures 

lino.modlib.contacts.management 

lino.modlib.contacts.management.commands 

lino.modlib.gfks 

lino.modlib.gfks.fixtures 

lino.modlib.countries 

lino.modlib.countries.fixtures 

lino.modlib.database_ready 

lino.modlib.davlink 

lino.modlib.eid_jslib 

lino.modlib.eid_jslib.beid 

lino.modlib.events 

lino.modlib.events.fixtures 

lino.modlib.events.tests 

lino.modlib.export_excel 

lino.modlib.extjs 

lino.modlib.jinja 

lino.modlib.importfilters 

lino.modlib.languages 

lino.modlib.languages.fixtures 

lino.modlib.lino_startup 

lino.modlib.lino_startup.management 

lino.modlib.lino_startup.management.commands 

lino.modlib.office 

lino.modlib.plausibility 

lino.modlib.plausibility.fixtures 

lino.modlib.plausibility.management 

lino.modlib.plausibility.management.commands 

lino.modlib.polls 

lino.modlib.polls.fixtures 

lino.modlib.print_pisa 

lino.modlib.printing 

lino.modlib.smtpd 

lino.modlib.smtpd.management 

lino.modlib.smtpd.management.commands 

lino.modlib.notifier 

lino.modlib.statbel 

lino.modlib.statbel.countries 

lino.modlib.statbel.countries.fixtures 

lino.modlib.summaries 

lino.modlib.summaries.fixtures 

lino.modlib.summaries.management 

lino.modlib.summaries.management.commands 

lino.modlib.system 

lino.modlib.system.tests 

lino.modlib.tinymce 

lino.modlib.tinymce.fixtures 

lino.modlib.uploads 

lino.modlib.users 

lino.modlib.users.fixtures 

lino.modlib.vocbook 

lino.modlib.wkhtmltopdf 

lino.projects 

lino.projects.babel_tutorial 

lino.projects.babel_tutorial.fixtures 

lino.projects.belref 

lino.projects.belref.fixtures 

lino.projects.belref.settings 

lino.projects.docs 

lino.projects.docs.settings 

lino.projects.estref 

lino.projects.estref.settings 

lino.projects.estref.tests 

lino.projects.events 

lino.projects.polly 

lino.projects.polly.settings 

lino.projects.polly.tests 

lino.projects.std 

lino.sphinxcontrib 

lino.sphinxcontrib.logo 

lino.test_apps 

lino.test_apps.20090714 

lino.test_apps.20090717 

lino.test_apps.20100126 

lino.test_apps.20100127 

lino.test_apps.20100206 

lino.test_apps.20100212 

lino.test_apps.20121124 

lino.test_apps.chooser 

lino.test_apps.example 

lino.test_apps.nomti 

lino.test_apps.properties 

lino.test_apps.quantityfield 

lino.utils 

lino.utils.demonames 

lino.utils.mldbc 

lino.utils.xmlgen 

lino.utils.xmlgen.cbss 

lino.utils.xmlgen.intervat 

lino.utils.xmlgen.odf 

lino.utils.xmlgen.sepa 

""".splitlines() if n]) 

 

SETUP_INFO.update(message_extractors={ 

    'lino': [ 

        ('**/sandbox/**',        'ignore', None), 

        ('**/cache/**',          'ignore', None), 

        ('**.py',                'python', None), 

        ('**/linoweb.js',        'jinja2', None), 

        #~ ('**.js',                'javascript', None), 

        ('**/config/**.html', 'jinja2', None), 

        #~ ('**/templates/**.txt',  'genshi', { 

        #~ 'template_class': 'genshi.template:TextTemplate' 

        #~ }) 

    ], 

}) 

 

SETUP_INFO.update(package_data=dict()) 

 

 

def add_package_data(package, *patterns): 

    package = str(package) 

    l = SETUP_INFO['package_data'].setdefault(package, []) 

    l.extend(patterns) 

    return l 

 

add_package_data('lino', 'config/*.odt') 

#add_package_data('lino_xl.lib.cal', 'config/*.odt') 

#add_package_data('lino_xl.lib.notes', 'config/notes/Note/*.odt') 

#add_package_data('lino_xl.lib.outbox', 'config/outbox/Mail/*.odt') 

add_package_data('lino.modlib.languages.fixtures', '*.tab') 

 

l = add_package_data('lino.modlib.lino_startup') 

for lng in 'de fr et nl'.split(): 

    l.append('lino/modlib/lino_startup/locale/%s/LC_MESSAGES/*.mo' % lng)