Hello community, here is the log from the commit of package trytond_currency for openSUSE:Factory checked in at 2018-05-15 10:14:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/trytond_currency (Old) and /work/SRC/openSUSE:Factory/.trytond_currency.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "trytond_currency" Tue May 15 10:14:07 2018 rev:4 rq:606652 version:4.2.2 Changes: -------- --- /work/SRC/openSUSE:Factory/trytond_currency/trytond_currency.changes 2017-09-17 22:40:05.225821496 +0200 +++ /work/SRC/openSUSE:Factory/.trytond_currency.new/trytond_currency.changes 2018-05-15 10:33:36.403736979 +0200 @@ -1,0 +2,5 @@ +Sat May 12 12:59:03 UTC 2018 - [email protected] + +- Version 4.2.2 - Bugfix Release + +------------------------------------------------------------------- Old: ---- trytond_currency-4.2.1.tar.gz New: ---- trytond_currency-4.2.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ trytond_currency.spec ++++++ --- /var/tmp/diff_new_pack.MZgzWZ/_old 2018-05-15 10:33:37.091711711 +0200 +++ /var/tmp/diff_new_pack.MZgzWZ/_new 2018-05-15 10:33:37.091711711 +0200 @@ -1,7 +1,7 @@ # # spec file for package trytond_currency # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2014-2016 Dr. Axel Braun # # All modifications and additions to the file contributed by third parties @@ -19,10 +19,10 @@ %define majorver 4.2 Name: trytond_currency -Version: %{majorver}.1 +Version: %{majorver}.2 Release: 0 Summary: The "currency" module for the Tryton ERP system -License: GPL-3.0 +License: GPL-3.0-only Group: Productivity/Office/Management Url: http://www.tryton.org/ Source: http://downloads.tryton.org/%{majorver}/%{name}-%{version}.tar.gz ++++++ trytond_currency-4.2.1.tar.gz -> trytond_currency-4.2.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_currency-4.2.1/.drone.yml new/trytond_currency-4.2.2/.drone.yml --- old/trytond_currency-4.2.1/.drone.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/trytond_currency-4.2.2/.drone.yml 2016-11-28 18:38:49.000000000 +0100 @@ -0,0 +1,9 @@ +image: python:all +env: + - POSTGRESQL_URI=postgresql://[email protected]:5432/ + - MYSQL_URI=mysql://[email protected]:3306/ +script: + - pip install tox + - tox -e "{py27,py33,py34,py35}-{sqlite,postgresql}" --skip-missing-interpreters +services: + - postgres diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_currency-4.2.1/.hgtags new/trytond_currency-4.2.2/.hgtags --- old/trytond_currency-4.2.1/.hgtags 1970-01-01 01:00:00.000000000 +0100 +++ new/trytond_currency-4.2.2/.hgtags 2018-05-08 22:24:59.000000000 +0200 @@ -0,0 +1,19 @@ +9d9bdc65a7583f7d9372c146dd8c84404d818da1 1.0.0 +4c18a681b16db8ed5ab327ce60ed83157be5a11e 1.2.0 +c1f124674fbc1c5e6555c12dadf3ac5e751a5d62 1.4.0 +24460c6a7edddd95e3eccd7b5f4dac02f53b7067 1.6.0 +35322c65837422ed3c108b002502c28067817246 1.8.0 +ed5c39f1c94205aaea8803f634ae848f4328bf4e 2.0.0 +b6e2bab62e6e99a16a6137e280c05cf090aecc27 2.2.0 +d8d987a8b8f7a9ca827e13bfaf0a6418fa93c088 2.4.0 +c391c4d2e0e41cdb1c4345fd9366d95435012c1e 2.6.0 +6af280ac38ada264adec613ee8d003b1666e854d 2.8.0 +68ff5923ae1d38736307e42ad80819d8b00a1ed2 3.0.0 +aeb255e67b8bab29d4a80a0257de8d92aaabe6e5 3.2.0 +6d886565069958d9d1a8000f728ecca34b8523fb 3.4.0 +e3b0a6ef8833a372629a4236ba5de183a52214b2 3.6.0 +d70aa7851f3c6cbe0e5474ca38f44a99671ffe26 3.8.0 +23e7c495b5019b237f60c39390c9c4e606cea244 4.0.0 +de2bfefb09a7916b4d1c7f90fd553fca49bd749a 4.2.0 +53fb4e2ed294963eae79ddb3cfdc64db85d2350e 4.2.1 +3c60b52f49e320da718c8744306acbb74aca4a80 4.2.2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_currency-4.2.1/CHANGELOG new/trytond_currency-4.2.2/CHANGELOG --- old/trytond_currency-4.2.1/CHANGELOG 2017-09-04 22:46:27.000000000 +0200 +++ new/trytond_currency-4.2.2/CHANGELOG 2018-05-08 22:24:59.000000000 +0200 @@ -1,3 +1,6 @@ +Version 4.2.2 - 2018-05-08 +* Bug fixes (see mercurial logs for details) + Version 4.2.1 - 2017-09-04 * Bug fixes (see mercurial logs for details) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_currency-4.2.1/COPYRIGHT new/trytond_currency-4.2.2/COPYRIGHT --- old/trytond_currency-4.2.1/COPYRIGHT 2017-09-04 22:46:27.000000000 +0200 +++ new/trytond_currency-4.2.2/COPYRIGHT 2018-05-08 22:24:58.000000000 +0200 @@ -1,6 +1,6 @@ -Copyright (C) 2008-2017 Cédric Krier. +Copyright (C) 2008-2018 Cédric Krier. Copyright (C) 2008-2013 Bertrand Chenal. -Copyright (C) 2008-2017 B2CK SPRL. +Copyright (C) 2008-2018 B2CK SPRL. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_currency-4.2.1/PKG-INFO new/trytond_currency-4.2.2/PKG-INFO --- old/trytond_currency-4.2.1/PKG-INFO 2017-09-04 22:46:28.000000000 +0200 +++ new/trytond_currency-4.2.2/PKG-INFO 2018-05-08 22:25:00.000000000 +0200 @@ -1,12 +1,13 @@ Metadata-Version: 1.1 Name: trytond_currency -Version: 4.2.1 +Version: 4.2.2 Summary: Tryton module with currencies Home-page: http://www.tryton.org/ Author: Tryton Author-email: [email protected] License: GPL-3 Download-URL: http://downloads.tryton.org/4.2/ +Description-Content-Type: UNKNOWN Description: trytond_currency ================ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_currency-4.2.1/currency.py new/trytond_currency-4.2.2/currency.py --- old/trytond_currency-4.2.1/currency.py 2017-09-04 22:46:26.000000000 +0200 +++ new/trytond_currency-4.2.2/currency.py 2018-05-08 22:24:57.000000000 +0200 @@ -51,7 +51,7 @@ 'currency "%(currency)s".'), }) cls.__rpc__.update({ - 'compute': RPC(), + 'compute': RPC(instantiate=slice(0, 3, 2)), }) @staticmethod @@ -212,8 +212,8 @@ ''' Date = Pool().get('ir.date') Lang = Pool().get('ir.lang') - from_currency = cls(from_currency.id) - to_currency = cls(to_currency.id) + from_currency = cls(int(from_currency)) + to_currency = cls(int(to_currency)) if to_currency == from_currency: if round: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_currency-4.2.1/scripts/currencies.py new/trytond_currency-4.2.2/scripts/currencies.py --- old/trytond_currency-4.2.1/scripts/currencies.py 1970-01-01 01:00:00.000000000 +0100 +++ new/trytond_currency-4.2.2/scripts/currencies.py 2016-11-28 18:38:49.000000000 +0100 @@ -0,0 +1,216 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# This file is part of Tryton. The COPYRIGHT file at the top level of +# this repository contains the full copyright notices and license terms. + +import sys +import pycountry + +symbols = { + 'AFN': u'؋', + 'ARS': u'$', + 'AWG': u'ƒ', + 'AZN': u'ман', + 'BSD': u'$', + 'THB': u'฿', + 'PAB': u'B/.', + 'BBD': u'$', + 'BYR': u'p.', + 'BZD': u'BZ$', + 'BMD': u'$', + 'VEF': u'Bs', + 'BOB': u'$b', + 'BRL': u'R$', + 'BGN': u'лв', + 'CAD': u'$', + 'KYD': u'$', + 'CLP': u'$', + 'COP': u'$', + 'BAM': u'KM', + 'NIO': u'C$', + 'CRC': u'₡', + 'HRK': u'kn', + 'CUP': u'₱', + 'CZK': u'Kč', + 'DKK': u'kr', + 'MKD': u'ден', + 'DOP': u'RD$', + 'VND': u'₫', + 'XCD': u'$', + 'EGP': u'£', + 'EUR': u'€', + 'FJD': u'$', + 'HUF': u'Ft', + 'GBP': u'£', + 'GIP': u'£', + 'PYG': u'Gs', + 'GYD': u'$', + 'HKD': u'HK$', + 'UAH': u'₴', + 'ISK': u'kr', + 'INR': u'₨', + 'IRR': u'﷼', + 'JMD': u'J$', + 'LAK': u'₭', + 'EEK': u'kr', + 'LBP': u'£', + 'ALL': u'Lek', + 'HNL': u'L', + 'LRD': u'$', + 'LTL': u'Lt', + 'MYR': u'RM', + 'MUR': u'₨', + 'MZN': u'MT', + 'NGN': u'₦', + 'NAD': u'$', + 'NPR': u'₨', + 'ANG': u'ƒ', + 'ILS': u'₪', + 'RON': u'lei', + 'TWD': u'NT$', + 'TRY': u'YTL', + 'NZD': u'$', + 'KPW': u'₩', + 'NOK': u'kr', + 'PEN': u'S/.', + 'PKR': u'₨', + 'UYU': u'$U', + 'PHP': u'Php', + 'BWP': u'P', + 'QAR': u'﷼', + 'GTQ': u'Q', + 'ZAR': u'R', + 'OMR': u'﷼', + 'KHR': u'៛', + 'IDR': u'Rp', + 'RUB': u'руб', + 'SHP': u'£', + 'SAR': u'﷼', + 'RSD': u'Дин.', + 'SCR': u'₨', + 'SGD': u'$', + 'SBD': u'$', + 'KGS': u'лв', + 'SOS': u'S', + 'LKR': u'₨', + 'SRD': u'$', + 'SEK': u'kr', + 'CHF': u'CHF', + 'KZT': u'лв', + 'TTD': u'TT$', + 'MNT': u'₮', + 'USD': u'$', + 'UZS': u'лв', + 'YER': u'﷼', + 'JPY': u'¥', + 'CNY': u'元', + 'ZWD': u'Z$', + 'PLN': u'zł', +} + +currencies = { + 'EUR': { + 'rounding': "Decimal('0.01')", + 'digits': '2', + 'p_cs_precedes': 'False', + 'n_cs_precedes': 'False', + 'p_sep_by_space': 'True', + 'n_sep_by_space': 'True', + 'mon_grouping': '[3, 3, 0]', + 'mon_decimal_point': ',', + 'mon_thousands_sep': ' ', + 'p_sign_posn': '1', + 'n_sign_posn': '1', + 'negative_sign': '-', + 'positive_sign': '', + }, + 'GBP': { + 'rounding': "Decimal('0.01')", + 'digits': '2', + 'p_cs_precedes': 'True', + 'n_cs_precedes': 'True', + 'p_sep_by_space': 'False', + 'n_sep_by_space': 'False', + 'mon_grouping': '[]', + 'mon_decimal_point': '.', + 'mon_thousands_sep': ',', + 'p_sign_posn': '1', + 'n_sign_posn': '1', + 'negative_sign': '-', + 'positive_sign': '', + }, + 'CHF': { + 'rounding': "Decimal('0.01')", + 'digits': '2', + 'p_cs_precedes': 'False', + 'n_cs_precedes': 'False', + 'p_sep_by_space': 'True', + 'n_sep_by_space': 'True', + 'mon_grouping': '[3, 3, 0]', + 'mon_decimal_point': ',', + 'mon_thousands_sep': ' ', + 'p_sign_posn': '1', + 'n_sign_posn': '1', + 'negative_sign': '-', + 'positive_sign': '', + }, + 'USD': { + 'rounding': "Decimal('0.01')", + 'digits': '2', + 'p_cs_precedes': 'True', + 'n_cs_precedes': 'True', + 'p_sep_by_space': 'False', + 'n_sep_by_space': 'False', + 'mon_grouping': '[3, 3, 0]', + 'mon_decimal_point': '.', + 'mon_thousands_sep': ',', + 'p_sign_posn': '1', + 'n_sign_posn': '1', + 'negative_sign': '-', + 'positive_sign': '', + }, + 'ARS': { + 'rounding': "Decimal('0.01')", + 'digits': '2', + 'p_cs_precedes': 'True', + 'n_cs_precedes': 'True', + 'p_sep_by_space': 'True', + 'n_sep_by_space': 'True', + 'mon_grouping': '[3, 3, 0]', + 'mon_decimal_point': ',', + 'mon_thousands_sep': '.', + 'p_sign_posn': '1', + 'n_sign_posn': '1', + 'negative_sign': '-', + 'positive_sign': '', + }, +} + +for currency in pycountry.currencies: + extend = '' + if currency.letter in currencies: + extend = u''' + <field name="rounding" eval="%(rounding)s"/> + <field name="digits" eval="%(digits)s"/> + <field name="p_cs_precedes" eval="%(p_cs_precedes)s"/> + <field name="n_cs_precedes" eval="%(n_cs_precedes)s"/> + <field name="p_sep_by_space" eval="%(p_sep_by_space)s"/> + <field name="n_sep_by_space" eval="%(n_sep_by_space)s"/> + <field name="mon_grouping">%(mon_grouping)s</field> + <field name="mon_decimal_point">%(mon_decimal_point)s</field> + <field name="mon_thousands_sep">%(mon_thousands_sep)s</field> + <field name="p_sign_posn" eval="%(p_sign_posn)s"/> + <field name="n_sign_posn" eval="%(n_sign_posn)s"/> + <field name="negative_sign">%(negative_sign)s</field> + <field name="positive_sign">%(positive_sign)s</field>''' % ( + currencies[currency.letter]) + record = u''' + <record model="currency.currency" id="%s"> + <field name="name">%s</field> + <field name="code">%s</field> + <field name="numeric_code">%s</field> + <field name="symbol">%s</field>%s + </record>\n''' % (currency.letter.lower(), currency.name, + currency.letter, getattr(currency, 'numeric', ''), + symbols.get(currency.letter, currency.letter), extend) + sys.stdout.write(record.encode('utf-8')) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_currency-4.2.1/tox.ini new/trytond_currency-4.2.2/tox.ini --- old/trytond_currency-4.2.1/tox.ini 1970-01-01 01:00:00.000000000 +0100 +++ new/trytond_currency-4.2.2/tox.ini 2016-11-28 18:38:49.000000000 +0100 @@ -0,0 +1,18 @@ +[tox] +envlist = {py27,py33,py34,py35}-{sqlite,postgresql,mysql},pypy-{sqlite,postgresql} + +[testenv] +commands = {envpython} setup.py test +deps = + {py27,py33,py34,py35}-postgresql: psycopg2 >= 2.5 + pypy-postgresql: psycopg2cffi >= 2.5 + mysql: MySQL-python + sqlite: sqlitebck +setenv = + sqlite: TRYTOND_DATABASE_URI={env:SQLITE_URI:sqlite://} + postgresql: TRYTOND_DATABASE_URI={env:POSTGRESQL_URI:postgresql://} + mysql: TRYTOND_DATABASE_URI={env:MYSQL_URI:mysql://} + sqlite: DB_NAME={env:SQLITE_NAME::memory:} + postgresql: DB_NAME={env:POSTGRESQL_NAME:test} + mysql: DB_NAME={env:MYSQL_NAME:test} +install_command = pip install --pre --find-links https://trydevpi.tryton.org/ {opts} {packages} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_currency-4.2.1/tryton.cfg new/trytond_currency-4.2.2/tryton.cfg --- old/trytond_currency-4.2.1/tryton.cfg 2016-11-28 18:42:04.000000000 +0100 +++ new/trytond_currency-4.2.2/tryton.cfg 2017-09-04 22:46:41.000000000 +0200 @@ -1,5 +1,5 @@ [tryton] -version=4.2.1 +version=4.2.2 depends: ir res diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_currency-4.2.1/trytond_currency.egg-info/PKG-INFO new/trytond_currency-4.2.2/trytond_currency.egg-info/PKG-INFO --- old/trytond_currency-4.2.1/trytond_currency.egg-info/PKG-INFO 2017-09-04 22:46:28.000000000 +0200 +++ new/trytond_currency-4.2.2/trytond_currency.egg-info/PKG-INFO 2018-05-08 22:24:59.000000000 +0200 @@ -1,12 +1,13 @@ Metadata-Version: 1.1 Name: trytond-currency -Version: 4.2.1 +Version: 4.2.2 Summary: Tryton module with currencies Home-page: http://www.tryton.org/ Author: Tryton Author-email: [email protected] License: GPL-3 Download-URL: http://downloads.tryton.org/4.2/ +Description-Content-Type: UNKNOWN Description: trytond_currency ================ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_currency-4.2.1/trytond_currency.egg-info/SOURCES.txt new/trytond_currency-4.2.2/trytond_currency.egg-info/SOURCES.txt --- old/trytond_currency-4.2.1/trytond_currency.egg-info/SOURCES.txt 2017-09-04 22:46:28.000000000 +0200 +++ new/trytond_currency-4.2.2/trytond_currency.egg-info/SOURCES.txt 2018-05-08 22:25:00.000000000 +0200 @@ -1,11 +1,16 @@ +.drone.yml +.hgtags CHANGELOG COPYRIGHT INSTALL LICENSE MANIFEST.in README +__init__.py +currency.py currency.xml setup.py +tox.ini tryton.cfg ./__init__.py ./currency.py @@ -58,6 +63,10 @@ locale/ru.po locale/sl.po locale/zh_CN.po +scripts/currencies.py +tests/__init__.py +tests/test_currency.py +tests/tools.py trytond_currency.egg-info/PKG-INFO trytond_currency.egg-info/SOURCES.txt trytond_currency.egg-info/dependency_links.txt diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/trytond_currency-4.2.1/trytond_currency.egg-info/requires.txt new/trytond_currency-4.2.2/trytond_currency.egg-info/requires.txt --- old/trytond_currency-4.2.1/trytond_currency.egg-info/requires.txt 2017-09-04 22:46:28.000000000 +0200 +++ new/trytond_currency-4.2.2/trytond_currency.egg-info/requires.txt 2018-05-08 22:24:59.000000000 +0200 @@ -1 +1 @@ -trytond >= 4.2, < 4.3 +trytond<4.3,>=4.2
