Simplify module information with python configuration
review363001
This commit is contained in:
1 parent
c0f3f872fb
commit
080af0abe9
5 files changed
+34
-87
No files matched your search
@@ -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_statement
|
||||
=========================
|
||||
|
||||
The account_statement module of the Tryton application platform.
|
||||
See __tryton__.py
|
||||
|
||||
Installing
|
||||
----------
|
||||
|
||||
@@ -1,75 +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 Statement',
|
||||
'name_bg_BG': 'Отчет на сметка',
|
||||
'name_ca_ES': 'Extractes comptables',
|
||||
'name_de_DE': 'Buchhaltung Bankauszüge',
|
||||
'name_es_AR': 'Estado de Cuentas',
|
||||
'name_es_CO': 'Estado de Cuentas',
|
||||
'name_es_ES': 'Extractos contables',
|
||||
'name_fr_FR': 'Relevé comptable',
|
||||
'name_nl_NL': 'Bankafschriften',
|
||||
'version': '2.5.0',
|
||||
'author': 'B2CK',
|
||||
'email': 'info@b2ck.com',
|
||||
'website': 'http://www.tryton.org/',
|
||||
'description': '''Financial and Accounting Module with:
|
||||
- Statement
|
||||
- Statement journal
|
||||
''',
|
||||
'description_bg_BG': '''Финансов и счетоводен модул с:
|
||||
- Отчети
|
||||
- Дневник на отчети
|
||||
''',
|
||||
'description_ca_ES': '''Mòdul financer i comptable amb:
|
||||
- Extractes comptables
|
||||
- Diari d'extracte
|
||||
''',
|
||||
'description_de_DE': '''Modul für Buchhaltung und Bankauszüge mit
|
||||
- Abstimmung von Bankauszügen und Rechnungen
|
||||
''',
|
||||
'description_es_AR': '''Módulo financiero y contable con:
|
||||
- Estado de cuentas
|
||||
- Diario de estado de cuentas
|
||||
''',
|
||||
'description_es_CO': '''Módulo Financiero y Contable con:
|
||||
- Estado de cuentas
|
||||
- Diario de estado de cuentas
|
||||
''',
|
||||
'description_es_ES': '''Módulo financiero y contable con:
|
||||
- Extractos contables
|
||||
- Diario de extracto
|
||||
''',
|
||||
'description_fr_FR': '''Module financier et comptable avec:
|
||||
- Relevé
|
||||
- Journal de relevés
|
||||
''',
|
||||
'description_nl_NL': '''Module voor het verwerken van bankafschriften met:
|
||||
- bankboeken
|
||||
- afletteren van rekeningen
|
||||
''',
|
||||
'depends': [
|
||||
'account',
|
||||
'company',
|
||||
'currency',
|
||||
'party',
|
||||
'account_invoice',
|
||||
],
|
||||
'xml': [
|
||||
'statement.xml',
|
||||
'journal.xml',
|
||||
],
|
||||
'translation': [
|
||||
'locale/bg_BG.po',
|
||||
'locale/ca_ES.po',
|
||||
'locale/cs_CZ.po',
|
||||
'locale/de_DE.po',
|
||||
'locale/es_AR.po',
|
||||
'locale/es_CO.po',
|
||||
'locale/es_ES.po',
|
||||
'locale/fr_FR.po',
|
||||
'locale/nl_NL.po',
|
||||
'locale/ru_RU.po',
|
||||
],
|
||||
}
|
||||
@@ -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)
|
||||
@@ -24,21 +35,21 @@ tests_require = ['proteus >= %s.%s, < %s.%s' %
|
||||
|
||||
setup(name='trytond_account_statement',
|
||||
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 account statements',
|
||||
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_statement': '.'},
|
||||
packages=[
|
||||
'trytond.modules.account_statement',
|
||||
'trytond.modules.account_statement.tests',
|
||||
],
|
||||
],
|
||||
package_data={
|
||||
'trytond.modules.account_statement': info.get('xml', []) \
|
||||
+ info.get('translation', []),
|
||||
},
|
||||
+ ['tryton.cfg', 'locale/*.po'],
|
||||
},
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
'Environment :: Plugins',
|
||||
@@ -60,7 +71,7 @@ setup(name='trytond_account_statement',
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Topic :: Office/Business',
|
||||
'Topic :: Office/Business :: Financial :: Accounting',
|
||||
],
|
||||
],
|
||||
license='GPL-3',
|
||||
install_requires=requires,
|
||||
zip_safe=False,
|
||||
@@ -71,4 +82,4 @@ setup(name='trytond_account_statement',
|
||||
test_suite='tests',
|
||||
test_loader='trytond.test_loader:Loader',
|
||||
tests_require=tests_require,
|
||||
)
|
||||
)
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
[tryton]
|
||||
version=2.5.0
|
||||
depends:
|
||||
account
|
||||
account_invoice
|
||||
company
|
||||
currency
|
||||
party
|
||||
xml:
|
||||
statement.xml
|
||||
journal.xml
|
||||
Reference in new issue
Block a user