Simplify module information with python configuration
review363001
This commit is contained in:
1 parent
baf5e8e023
commit
f09c3e90e8
4 files changed
+33
-66
No files matched your search
@@ -2,7 +2,6 @@ trytond_account_stock_continental
|
||||
=================================
|
||||
|
||||
The account_stock_continental module of the Tryton application platform.
|
||||
See __tryton__.py
|
||||
|
||||
Installing
|
||||
----------
|
||||
|
||||
@@ -1,54 +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 Stock Continental',
|
||||
'name_ca_ES': 'Gestió d''estocs continental',
|
||||
'name_de_DE': 'Buchhaltung Lagerbewertung Kontinentale Methode',
|
||||
'name_es_AR': 'Contabilidad de existencias continental',
|
||||
'name_es_ES': 'Gestión de stock continental',
|
||||
'name_fr_FR': 'Gestion de stock continentale',
|
||||
'version': '2.5.0',
|
||||
'author': 'B2CK',
|
||||
'email': 'info@b2ck.com',
|
||||
'website': 'http://www.tryton.org/',
|
||||
'description': '''Add continental stock accounting for real-time stock valuation.
|
||||
''',
|
||||
'description_ca_ES': '''Afegeix comptabilitat d'estocs continental per
|
||||
la valoració d'estocs en temps real.
|
||||
''',
|
||||
'description_de_DE': '''
|
||||
- Fügt die kontinentale Methode der Lagerbewertung in Echt-Zeit hinzu.
|
||||
''',
|
||||
'description_es_AR': '''Añade contabilidad de existencias continental para
|
||||
la valuación de existencias en tiempo real.
|
||||
''',
|
||||
'description_es_ES': '''Añade contabilidad de stocks continental para
|
||||
la valoración de existencias en tiempo real.
|
||||
''',
|
||||
'description_fr_FR': '''
|
||||
Ajoute la gestion de stock continentale pour l'évaluation en temps réel de la valeur du stock
|
||||
''',
|
||||
'depends': [
|
||||
'ir',
|
||||
'res',
|
||||
'account',
|
||||
'account_product',
|
||||
'stock',
|
||||
],
|
||||
'xml': [
|
||||
'product.xml',
|
||||
'account.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)
|
||||
@@ -28,21 +39,21 @@ for dep in ['sale', 'purchase', 'account_invoice']:
|
||||
|
||||
setup(name='trytond_account_stock_continental',
|
||||
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 for continental real-time stock valuation',
|
||||
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_stock_continental': '.'},
|
||||
packages=[
|
||||
'trytond.modules.account_stock_continental',
|
||||
'trytond.modules.account_stock_continental.tests',
|
||||
],
|
||||
],
|
||||
package_data={
|
||||
'trytond.modules.account_stock_continental': info.get('xml', []) \
|
||||
+ info.get('translation', []),
|
||||
},
|
||||
+ ['tryton.cfg', 'locale/*.po'],
|
||||
},
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
'Environment :: Plugins',
|
||||
@@ -64,7 +75,7 @@ setup(name='trytond_account_stock_continental',
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Topic :: Office/Business',
|
||||
'Topic :: Office/Business :: Financial :: Accounting',
|
||||
],
|
||||
],
|
||||
license='GPL-3',
|
||||
install_requires=requires,
|
||||
zip_safe=False,
|
||||
@@ -75,4 +86,4 @@ setup(name='trytond_account_stock_continental',
|
||||
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_product
|
||||
ir
|
||||
res
|
||||
stock
|
||||
xml:
|
||||
product.xml
|
||||
account.xml
|
||||
Reference in new issue
Block a user