Simplify module information with python configuration
review363001
This commit is contained in:
@@ -4,6 +4,7 @@ include TODO
|
||||
include COPYRIGHT
|
||||
include CHANGELOG
|
||||
include LICENSE
|
||||
include tryton.cfg
|
||||
include *.xml
|
||||
include *.odt
|
||||
include locale/*.po
|
||||
|
||||
@@ -2,7 +2,6 @@ trytond_account_be
|
||||
==================
|
||||
|
||||
The account_be module of the Tryton application platform.
|
||||
See __tryton__.py
|
||||
|
||||
Installing
|
||||
----------
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
#This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
#this repository contains the full copyright notices and license terms.
|
||||
{
|
||||
'name': 'Account Belgium',
|
||||
'name_ca_ES': 'Comptabilitat Belga',
|
||||
'name_de_DE': 'Buchhaltung Belgien',
|
||||
'name_es_AR': 'Contabilidad Belga',
|
||||
'name_es_ES': 'Contabilidad Belga',
|
||||
'name_fr_FR': 'Comptabilité belge',
|
||||
'version': '2.5.0',
|
||||
'author': 'B2CK',
|
||||
'email': 'info@b2ck.com',
|
||||
'website': 'http://www.tryton.org/',
|
||||
'description': '''Define an account chart template for Belgium.
|
||||
Usefull to create a Belgium account chart with the wizard in
|
||||
"Financial>Configuration>General Account>Create Chart of Account from Template".
|
||||
''',
|
||||
'description_ca_ES': '''Defineix una plantilla de pla comptable per a Bèlgica.
|
||||
Permet crear un pla comptable Belga amb l'assistent
|
||||
"Comptabilitat>Configuració>Plans comptables>Crea pla comptable des de plantilla".
|
||||
''',
|
||||
'description_de_DE': '''
|
||||
- Enthält den Kontenplan für Belgien.
|
||||
''',
|
||||
'description_es_ES': '''Define una plantilla de plan contable para Bélgica.
|
||||
Permite crear un plan contable Belga con el asistente
|
||||
"Contabilidad>Configuración>Planes contables>Crear plan contable desde plantilla".
|
||||
''',
|
||||
'description_fr_FR': '''Défini le plan comptable pour la Belgique.
|
||||
''',
|
||||
'depends': [
|
||||
'account',
|
||||
],
|
||||
'xml': [
|
||||
'account_be.xml',
|
||||
'tax_be.xml',
|
||||
],
|
||||
}
|
||||
@@ -4,8 +4,19 @@
|
||||
|
||||
from setuptools import setup
|
||||
import re
|
||||
import os
|
||||
import ConfigParser
|
||||
|
||||
info = eval(open('__tryton__.py').read())
|
||||
|
||||
def read(fname):
|
||||
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||
|
||||
config = ConfigParser.ConfigParser()
|
||||
config.readfp(open('tryton.cfg'))
|
||||
info = dict(config.items('tryton'))
|
||||
for key in ('depends', 'extras_depend', 'xml'):
|
||||
if key in info:
|
||||
info[key] = info[key].strip().splitlines()
|
||||
major_version, minor_version, _ = info.get('version', '0.0.1').split('.', 2)
|
||||
major_version = int(major_version)
|
||||
minor_version = int(minor_version)
|
||||
@@ -21,20 +32,20 @@ requires.append('trytond >= %s.%s, < %s.%s' %
|
||||
|
||||
setup(name='trytond_account_be',
|
||||
version=info.get('version', '0.0.1'),
|
||||
description=info.get('description', ''),
|
||||
author=info.get('author', ''),
|
||||
author_email=info.get('email', ''),
|
||||
url=info.get('website', ''),
|
||||
description='Tryton module with Belgium chart of accounts',
|
||||
long_description=read('README'),
|
||||
author='Tryton',
|
||||
url='http://www.tryton.org/',
|
||||
download_url="http://downloads.tryton.org/" + \
|
||||
info.get('version', '0.0.1').rsplit('.', 1)[0] + '/',
|
||||
info.get('version', '0.0.1').rsplit('.', 1)[0] + '/',
|
||||
package_dir={'trytond.modules.account_be': '.'},
|
||||
packages=[
|
||||
'trytond.modules.account_be',
|
||||
],
|
||||
],
|
||||
package_data={
|
||||
'trytond.modules.account_be': info.get('xml', []) \
|
||||
+ info.get('translation', []),
|
||||
},
|
||||
+ ['tryton.cfg'],
|
||||
},
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
'Environment :: Plugins',
|
||||
@@ -49,7 +60,7 @@ setup(name='trytond_account_be',
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Topic :: Office/Business',
|
||||
'Topic :: Office/Business :: Financial :: Accounting',
|
||||
],
|
||||
],
|
||||
license='GPL-3',
|
||||
install_requires=requires,
|
||||
zip_safe=False,
|
||||
@@ -57,4 +68,4 @@ setup(name='trytond_account_be',
|
||||
[trytond.modules]
|
||||
account_be = trytond.modules.account_be
|
||||
""",
|
||||
)
|
||||
)
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
[tryton]
|
||||
version=2.5.0
|
||||
depends:
|
||||
account
|
||||
xml:
|
||||
account_be.xml
|
||||
tax_be.xml
|
||||
Reference in New Issue
Block a user