[schema2sql] inline eschema_attrs method
* not a public API
* doesn't makes things easier to grasp
-> useless
Related to #14050899
# pylint: disable=W0622,C0103# copyright 2003-2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved.# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr## This file is part of CubicWeb.## CubicWeb is free software: you can redistribute it and/or modify it under the# terms of the GNU Lesser General Public License as published by the Free# Software Foundation, either version 2.1 of the License, or (at your option)# any later version.## CubicWeb is distributed in the hope that it will be useful, but WITHOUT# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more# details.## You should have received a copy of the GNU Lesser General Public License along# with CubicWeb. If not, see <http://www.gnu.org/licenses/>."""cubicweb global packaging information for the cubicweb knowledge managementsoftware"""importsysfromosimportlistdirfromos.pathimportjoin,isdirimportglobmodname=distname="cubicweb"numversion=(3,23,1)version='.'.join(str(num)fornuminnumversion)description="a repository of entities / relations for knowledge management"author="Logilab"author_email="contact@logilab.fr"web='https://www.cubicweb.org'license='LGPL'classifiers=['Environment :: Web Environment','Framework :: CubicWeb','Programming Language :: Python','Programming Language :: JavaScript',]__depends__={'six':'>= 1.4.0','logilab-common':'>= 1.2.2','logilab-mtconverter':'>= 0.8.0','rql':'>= 0.34.0','yams':'>= 0.44.0',#gettext # for xgettext, msgcat, etc...# web dependencies'lxml':'',# XXX graphviz# server dependencies'logilab-database':'>= 1.15.0','passlib':'','pytz':'','Markdown':'','unittest2':'>= 0.7.0',}__recommends__={'docutils':'>= 0.6','Pillow':'',# for captcha'pycrypto':'',# for crypto extensions'fyzz':'>= 0.1.0',# for sparql'vobject':'>= 0.6.0',# for ical view'rdflib':None,#'pyzmq':None,'Twisted':'< 16.0.0',#'Products.FCKeditor':'',#'SimpleTAL':'>= 4.1.6',}scripts=[sforsinglob.glob(join('bin','cubicweb-*'))ifnots.endswith('.bat')]include_dirs=[join('test','data'),join('server','test','data'),join('hooks','test','data'),join('web','test','data'),join('devtools','data'),join('devtools','test','data'),'schemas','skeleton']_server_migration_dir=join(modname,'misc','migration')_data_dir=join(modname,'web','data')_wdoc_dir=join(modname,'web','wdoc')_wdocimages_dir=join(_wdoc_dir,'images')_views_dir=join(modname,'web','views')_i18n_dir=join(modname,'i18n')_pyversion='.'.join(str(num)fornuminsys.version_info[0:2])if'--home'insys.argv:# --home installpydir='python'+_pyversionelse:pydir=join('python'+_pyversion,'site-packages')# data files that shall be copied into the main package directorypackage_data={'cubicweb.web.views':['*.pt'],}try:# data files that shall be copied outside the main package directorydata_files=[# server data[join('share','cubicweb','schemas'),glob.glob(join(modname,'schemas','*.sql'))],[join('share','cubicweb','migration'),[join(_server_migration_dir,filename)forfilenameinlistdir(_server_migration_dir)]],# web data[join('share','cubicweb','cubes','shared','data'),[join(_data_dir,fname)forfnameinlistdir(_data_dir)ifnotisdir(join(_data_dir,fname))]],[join('share','cubicweb','cubes','shared','data','images'),[join(_data_dir,'images',fname)forfnameinlistdir(join(_data_dir,'images'))]],[join('share','cubicweb','cubes','shared','data','jquery-treeview'),[join(_data_dir,'jquery-treeview',fname)forfnameinlistdir(join(_data_dir,'jquery-treeview'))ifnotisdir(join(_data_dir,'jquery-treeview',fname))]],[join('share','cubicweb','cubes','shared','data','jquery-treeview','images'),[join(_data_dir,'jquery-treeview','images',fname)forfnameinlistdir(join(_data_dir,'jquery-treeview','images'))]],[join('share','cubicweb','cubes','shared','wdoc'),[join(_wdoc_dir,fname)forfnameinlistdir(_wdoc_dir)ifnotisdir(join(_wdoc_dir,fname))]],[join('share','cubicweb','cubes','shared','wdoc','images'),[join(_wdocimages_dir,fname)forfnameinlistdir(_wdocimages_dir)]],[join('share','cubicweb','cubes','shared','i18n'),glob.glob(join(_i18n_dir,'*.po'))],# skeleton]exceptOSError:# we are in an installed directory, don't care about thispass