[tryton-debian-vcs] tryton-modules-currency branch upstream updated. upstream/4.4.1-1-g050e064

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Fri Nov 10 12:10:43 UTC 2017


The following commit has been merged in the upstream branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-currency.git;a=commitdiff;h=upstream/4.4.1-1-g050e064

commit 050e064c3fa2402329128d9472833db4c96089ab
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Mon Nov 6 14:40:54 2017 +0100

    Adding upstream version 4.6.0.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

diff --git a/.drone.yml b/.drone.yml
new file mode 100644
index 0000000..e0bc2f7
--- /dev/null
+++ b/.drone.yml
@@ -0,0 +1,51 @@
+clone:
+    hg:
+        image: plugins/hg
+
+pipeline:
+    tox:
+        image: ${IMAGE}
+        environment:
+            - CFLAGS=-O0
+            - DB_CACHE=/cache
+            - TOX_TESTENV_PASSENV=CFLAGS DB_CACHE
+            - POSTGRESQL_URI=postgresql://postgres@postgresql:5432/
+        commands:
+            - pip install tox
+            - tox -e "${TOXENV}-${DATABASE}"
+        volumes:
+            - cache:/root/.cache
+
+services:
+    postgresql:
+        image: postgres
+        when:
+            matrix:
+                DATABASE: postgresql
+
+matrix:
+    include:
+        - IMAGE: python:2.7
+          TOXENV: py27
+          DATABASE: sqlite
+        - IMAGE: python:2.7
+          TOXENV: py27
+          DATABASE: postgresql
+        - IMAGE: python:3.4
+          TOXENV: py34
+          DATABASE: sqlite
+        - IMAGE: python:3.4
+          TOXENV: py34
+          DATABASE: postgresql
+        - IMAGE: python:3.5
+          TOXENV: py35
+          DATABASE: sqlite
+        - IMAGE: python:3.5
+          TOXENV: py35
+          DATABASE: postgresql
+        - IMAGE: python:3.6
+          TOXENV: py36
+          DATABASE: sqlite
+        - IMAGE: python:3.6
+          TOXENV: py36
+          DATABASE: postgresql
diff --git a/CHANGELOG b/CHANGELOG
index 2491702..11c1867 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,4 @@
-Version 4.4.1 - 2017-09-04
+Version 4.6.0 - 2017-10-30
 * Bug fixes (see mercurial logs for details)
 
 Version 4.4.0 - 2017-05-01
diff --git a/PKG-INFO b/PKG-INFO
index 43d2803..12b2881 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond_currency
-Version: 4.4.1
+Version: 4.6.0
 Summary: Tryton module with currencies
 Home-page: http://www.tryton.org/
 Author: Tryton
 Author-email: issue_tracker at tryton.org
 License: GPL-3
-Download-URL: http://downloads.tryton.org/4.4/
+Download-URL: http://downloads.tryton.org/4.6/
 Description: trytond_currency
         ================
         
@@ -70,9 +70,9 @@ Classifier: Natural Language :: Slovenian
 Classifier: Natural Language :: Spanish
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 3.3
 Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Office/Business
diff --git a/locale/bg.po b/locale/bg.po
index 500f7c2..f718999 100644
--- a/locale/bg.po
+++ b/locale/bg.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -103,8 +103,8 @@ msgid "Rates"
 msgstr "Курсове"
 
 msgctxt "field:currency.currency,rec_name:"
-msgid "Name"
-msgstr "Име"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:currency.currency,rounding:"
 msgid "Rounding factor"
@@ -147,8 +147,8 @@ msgid "Rate"
 msgstr "Отношение"
 
 msgctxt "field:currency.currency.rate,rec_name:"
-msgid "Name"
-msgstr "Име"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:currency.currency.rate,write_date:"
 msgid "Write Date"
diff --git a/locale/ca.po b/locale/ca.po
index d674ea5..0d5f2b1 100644
--- a/locale/ca.po
+++ b/locale/ca.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -105,8 +105,8 @@ msgid "Rates"
 msgstr "Taxes de canvi"
 
 msgctxt "field:currency.currency,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom del registre"
 
 msgctxt "field:currency.currency,rounding:"
 msgid "Rounding factor"
@@ -149,8 +149,8 @@ msgid "Rate"
 msgstr "Taxa de canvi"
 
 msgctxt "field:currency.currency.rate,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom del registre"
 
 msgctxt "field:currency.currency.rate,write_date:"
 msgid "Write Date"
diff --git a/locale/cs.po b/locale/cs.po
index 3409bc2..319f135 100644
--- a/locale/cs.po
+++ b/locale/cs.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -103,10 +103,9 @@ msgctxt "field:currency.currency,rates:"
 msgid "Rates"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:currency.currency,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:currency.currency,rounding:"
 msgid "Rounding factor"
@@ -148,10 +147,9 @@ msgctxt "field:currency.currency.rate,rate:"
 msgid "Rate"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:currency.currency.rate,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:currency.currency.rate,write_date:"
 msgid "Write Date"
diff --git a/locale/de.po b/locale/de.po
index a629da1..da2bbb8 100644
--- a/locale/de.po
+++ b/locale/de.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -103,8 +103,8 @@ msgid "Rates"
 msgstr "Kurse"
 
 msgctxt "field:currency.currency,rec_name:"
-msgid "Name"
-msgstr "Name"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:currency.currency,rounding:"
 msgid "Rounding factor"
@@ -147,8 +147,8 @@ msgid "Rate"
 msgstr "Kurs"
 
 msgctxt "field:currency.currency.rate,rec_name:"
-msgid "Name"
-msgstr "Name"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:currency.currency.rate,write_date:"
 msgid "Write Date"
diff --git a/locale/es.po b/locale/es.po
index 6184b6e..510d5ef 100644
--- a/locale/es.po
+++ b/locale/es.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -105,8 +105,8 @@ msgid "Rates"
 msgstr "Tasas de cambio"
 
 msgctxt "field:currency.currency,rec_name:"
-msgid "Name"
-msgstr "Nombre"
+msgid "Record Name"
+msgstr "Nombre del registro"
 
 msgctxt "field:currency.currency,rounding:"
 msgid "Rounding factor"
@@ -149,8 +149,8 @@ msgid "Rate"
 msgstr "Tasa de cambio"
 
 msgctxt "field:currency.currency.rate,rec_name:"
-msgid "Name"
-msgstr "Nombre"
+msgid "Record Name"
+msgstr "Nombre del registro"
 
 msgctxt "field:currency.currency.rate,write_date:"
 msgid "Write Date"
diff --git a/locale/es_419.po b/locale/es_419.po
index c29f687..a0e429b 100644
--- a/locale/es_419.po
+++ b/locale/es_419.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -103,7 +103,7 @@ msgid "Rates"
 msgstr ""
 
 msgctxt "field:currency.currency,rec_name:"
-msgid "Name"
+msgid "Record Name"
 msgstr ""
 
 msgctxt "field:currency.currency,rounding:"
@@ -148,7 +148,7 @@ msgid "Rate"
 msgstr ""
 
 msgctxt "field:currency.currency.rate,rec_name:"
-msgid "Name"
+msgid "Record Name"
 msgstr ""
 
 msgctxt "field:currency.currency.rate,write_date:"
diff --git a/locale/fr.po b/locale/fr.po
index d8ce191..351a456 100644
--- a/locale/fr.po
+++ b/locale/fr.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -105,8 +105,8 @@ msgid "Rates"
 msgstr "Taux"
 
 msgctxt "field:currency.currency,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom de l'enregistrement"
 
 msgctxt "field:currency.currency,rounding:"
 msgid "Rounding factor"
@@ -149,8 +149,8 @@ msgid "Rate"
 msgstr "Taux"
 
 msgctxt "field:currency.currency.rate,rec_name:"
-msgid "Name"
-msgstr "Nom"
+msgid "Record Name"
+msgstr "Nom de l'enregistrement"
 
 msgctxt "field:currency.currency.rate,write_date:"
 msgid "Write Date"
diff --git a/locale/hu_HU.po b/locale/hu_HU.po
index 442e039..eae25c8 100644
--- a/locale/hu_HU.po
+++ b/locale/hu_HU.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -104,8 +104,8 @@ msgid "Rates"
 msgstr "Árfolyam"
 
 msgctxt "field:currency.currency,rec_name:"
-msgid "Name"
-msgstr "Név"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:currency.currency,rounding:"
 msgid "Rounding factor"
@@ -148,8 +148,8 @@ msgid "Rate"
 msgstr "Árfolyam"
 
 msgctxt "field:currency.currency.rate,rec_name:"
-msgid "Name"
-msgstr "Név"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:currency.currency.rate,write_date:"
 msgid "Write Date"
diff --git a/locale/it_IT.po b/locale/it_IT.po
index e38e804..3b15a1b 100644
--- a/locale/it_IT.po
+++ b/locale/it_IT.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -110,10 +110,9 @@ msgctxt "field:currency.currency,rates:"
 msgid "Rates"
 msgstr "Tassi"
 
-#, fuzzy
 msgctxt "field:currency.currency,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:currency.currency,rounding:"
 msgid "Rounding factor"
@@ -161,10 +160,9 @@ msgctxt "field:currency.currency.rate,rate:"
 msgid "Rate"
 msgstr "Cambio"
 
-#, fuzzy
 msgctxt "field:currency.currency.rate,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:currency.currency.rate,write_date:"
diff --git a/locale/ja_JP.po b/locale/ja_JP.po
index 3fe2a9b..ff6ca32 100644
--- a/locale/ja_JP.po
+++ b/locale/ja_JP.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -103,7 +103,7 @@ msgid "Rates"
 msgstr ""
 
 msgctxt "field:currency.currency,rec_name:"
-msgid "Name"
+msgid "Record Name"
 msgstr ""
 
 msgctxt "field:currency.currency,rounding:"
@@ -148,7 +148,7 @@ msgid "Rate"
 msgstr ""
 
 msgctxt "field:currency.currency.rate,rec_name:"
-msgid "Name"
+msgid "Record Name"
 msgstr ""
 
 msgctxt "field:currency.currency.rate,write_date:"
diff --git a/locale/lo.po b/locale/lo.po
index b52de86..1d9e319 100644
--- a/locale/lo.po
+++ b/locale/lo.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -103,8 +103,8 @@ msgid "Rates"
 msgstr "ອັດຕາ"
 
 msgctxt "field:currency.currency,rec_name:"
-msgid "Name"
-msgstr "ຊື່"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:currency.currency,rounding:"
 msgid "Rounding factor"
@@ -147,8 +147,8 @@ msgid "Rate"
 msgstr "ອັດຕາ"
 
 msgctxt "field:currency.currency.rate,rec_name:"
-msgid "Name"
-msgstr "ຊື່"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:currency.currency.rate,write_date:"
 msgid "Write Date"
diff --git a/locale/lt.po b/locale/lt.po
index 6db5a58..e1d2e25 100644
--- a/locale/lt.po
+++ b/locale/lt.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -103,10 +103,9 @@ msgctxt "field:currency.currency,rates:"
 msgid "Rates"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:currency.currency,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:currency.currency,rounding:"
 msgid "Rounding factor"
@@ -148,10 +147,9 @@ msgctxt "field:currency.currency.rate,rate:"
 msgid "Rate"
 msgstr ""
 
-#, fuzzy
 msgctxt "field:currency.currency.rate,rec_name:"
-msgid "Name"
-msgstr "Namu"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:currency.currency.rate,write_date:"
 msgid "Write Date"
diff --git a/locale/nl.po b/locale/nl.po
index 30838fa..ef8d4c4 100644
--- a/locale/nl.po
+++ b/locale/nl.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -113,10 +113,9 @@ msgctxt "field:currency.currency,rates:"
 msgid "Rates"
 msgstr "Verhouding"
 
-#, fuzzy
 msgctxt "field:currency.currency,rec_name:"
-msgid "Name"
-msgstr "Naam bijlage"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:currency.currency,rounding:"
 msgid "Rounding factor"
@@ -167,10 +166,9 @@ msgctxt "field:currency.currency.rate,rate:"
 msgid "Rate"
 msgstr "Verhouding"
 
-#, fuzzy
 msgctxt "field:currency.currency.rate,rec_name:"
-msgid "Name"
-msgstr "Naam bijlage"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:currency.currency.rate,write_date:"
diff --git a/locale/pl.po b/locale/pl.po
index 6da2b54..ba7b27f 100644
--- a/locale/pl.po
+++ b/locale/pl.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -103,8 +103,8 @@ msgid "Rates"
 msgstr "Kursy waluty"
 
 msgctxt "field:currency.currency,rec_name:"
-msgid "Name"
-msgstr "Nazwa"
+msgid "Record Name"
+msgstr "Nazwa rekordu"
 
 msgctxt "field:currency.currency,rounding:"
 msgid "Rounding factor"
@@ -147,8 +147,8 @@ msgid "Rate"
 msgstr "Kurs"
 
 msgctxt "field:currency.currency.rate,rec_name:"
-msgid "Name"
-msgstr "Nazwa"
+msgid "Record Name"
+msgstr "Nazwa rekordu"
 
 msgctxt "field:currency.currency.rate,write_date:"
 msgid "Write Date"
diff --git a/locale/pt_BR.po b/locale/pt_BR.po
index 21f103a..02302ce 100644
--- a/locale/pt_BR.po
+++ b/locale/pt_BR.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -105,8 +105,8 @@ msgid "Rates"
 msgstr "Taxas de câmbio"
 
 msgctxt "field:currency.currency,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr "Nome do Registro"
 
 msgctxt "field:currency.currency,rounding:"
 msgid "Rounding factor"
@@ -149,8 +149,8 @@ msgid "Rate"
 msgstr "Taxa"
 
 msgctxt "field:currency.currency.rate,rec_name:"
-msgid "Name"
-msgstr "Nome"
+msgid "Record Name"
+msgstr "Nome do Registro"
 
 msgctxt "field:currency.currency.rate,write_date:"
 msgid "Write Date"
diff --git a/locale/ru.po b/locale/ru.po
index 34fc91f..4b57e37 100644
--- a/locale/ru.po
+++ b/locale/ru.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -104,8 +104,8 @@ msgid "Rates"
 msgstr "Курсы"
 
 msgctxt "field:currency.currency,rec_name:"
-msgid "Name"
-msgstr "Валюта"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:currency.currency,rounding:"
 msgid "Rounding factor"
@@ -148,8 +148,8 @@ msgid "Rate"
 msgstr "Курс"
 
 msgctxt "field:currency.currency.rate,rec_name:"
-msgid "Name"
-msgstr "Наименование"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:currency.currency.rate,write_date:"
 msgid "Write Date"
diff --git a/locale/sl.po b/locale/sl.po
index 25a4ab3..42ba3c1 100644
--- a/locale/sl.po
+++ b/locale/sl.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -103,8 +103,8 @@ msgid "Rates"
 msgstr "Tečaji"
 
 msgctxt "field:currency.currency,rec_name:"
-msgid "Name"
-msgstr "Ime"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:currency.currency,rounding:"
 msgid "Rounding factor"
@@ -147,8 +147,8 @@ msgid "Rate"
 msgstr "Tečaj"
 
 msgctxt "field:currency.currency.rate,rec_name:"
-msgid "Name"
-msgstr "Ime"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:currency.currency.rate,write_date:"
 msgid "Write Date"
diff --git a/locale/zh_CN.po b/locale/zh_CN.po
index ef6202e..3cca4a5 100644
--- a/locale/zh_CN.po
+++ b/locale/zh_CN.po
@@ -1,4 +1,4 @@
-# 
+#
 msgid ""
 msgstr "Content-Type: text/plain; charset=utf-8\n"
 
@@ -112,10 +112,9 @@ msgctxt "field:currency.currency,rates:"
 msgid "Rates"
 msgstr "日期格式"
 
-#, fuzzy
 msgctxt "field:currency.currency,rec_name:"
-msgid "Name"
-msgstr "纳木"
+msgid "Record Name"
+msgstr ""
 
 msgctxt "field:currency.currency,rounding:"
 msgid "Rounding factor"
@@ -164,10 +163,9 @@ msgctxt "field:currency.currency.rate,rate:"
 msgid "Rate"
 msgstr "日期格式"
 
-#, fuzzy
 msgctxt "field:currency.currency.rate,rec_name:"
-msgid "Name"
-msgstr "纳木"
+msgid "Record Name"
+msgstr ""
 
 #, fuzzy
 msgctxt "field:currency.currency.rate,write_date:"
diff --git a/scripts/currencies.py b/scripts/currencies.py
new file mode 100755
index 0000000..08f65d0
--- /dev/null
+++ b/scripts/currencies.py
@@ -0,0 +1,223 @@
+#!/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': '',
+        },
+}
+
+sys.stdout.write(u'<?xml version="1.0"?>\n')
+sys.stdout.write(u'<tryton>\n')
+sys.stdout.write(u'    <data skiptest="1" grouped="1">\n')
+
+for currency in pycountry.currencies:
+    extend = ''
+    if currency.alpha_3 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.alpha_3])
+    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.alpha_3.lower(), currency.name,
+                currency.alpha_3, currency.numeric,
+                symbols.get(currency.alpha_3, currency.alpha_3), extend)
+    sys.stdout.write(record.encode('utf-8'))
+
+sys.stdout.write(u'    </data>\n')
+sys.stdout.write(u'</tryton>\n')
diff --git a/setup.py b/setup.py
index 31089ff..e44164c 100644
--- a/setup.py
+++ b/setup.py
@@ -97,9 +97,9 @@ setup(name=name,
         'Natural Language :: Spanish',
         'Operating System :: OS Independent',
         'Programming Language :: Python :: 2.7',
-        'Programming Language :: Python :: 3.3',
         'Programming Language :: Python :: 3.4',
         'Programming Language :: Python :: 3.5',
+        'Programming Language :: Python :: 3.6',
         'Programming Language :: Python :: Implementation :: CPython',
         'Programming Language :: Python :: Implementation :: PyPy',
         'Topic :: Office/Business',
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..527d859
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,18 @@
+[tox]
+envlist = {py27,py34,py35,py36}-{sqlite,postgresql,mysql},pypy-{sqlite,postgresql}
+
+[testenv]
+commands = {envpython} setup.py test
+deps =
+    {py27,py34,py35,py36}-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 --git a/tryton.cfg b/tryton.cfg
index 02669f9..e7c1481 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=4.4.1
+version=4.6.0
 depends:
     ir
     res
diff --git a/trytond_currency.egg-info/PKG-INFO b/trytond_currency.egg-info/PKG-INFO
index 8c03c42..98f10ea 100644
--- a/trytond_currency.egg-info/PKG-INFO
+++ b/trytond_currency.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond-currency
-Version: 4.4.1
+Version: 4.6.0
 Summary: Tryton module with currencies
 Home-page: http://www.tryton.org/
 Author: Tryton
 Author-email: issue_tracker at tryton.org
 License: GPL-3
-Download-URL: http://downloads.tryton.org/4.4/
+Download-URL: http://downloads.tryton.org/4.6/
 Description: trytond_currency
         ================
         
@@ -70,9 +70,9 @@ Classifier: Natural Language :: Slovenian
 Classifier: Natural Language :: Spanish
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 3.3
 Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Office/Business
diff --git a/trytond_currency.egg-info/SOURCES.txt b/trytond_currency.egg-info/SOURCES.txt
index a642eee..ef044d3 100644
--- a/trytond_currency.egg-info/SOURCES.txt
+++ b/trytond_currency.egg-info/SOURCES.txt
@@ -1,12 +1,17 @@
+.drone.yml
+.hgtags
 CHANGELOG
 COPYRIGHT
 INSTALL
 LICENSE
 MANIFEST.in
 README
+__init__.py
+currency.py
 currency.xml
 data.xml
 setup.py
+tox.ini
 tryton.cfg
 ./__init__.py
 ./currency.py
@@ -60,6 +65,10 @@ locale/pt_BR.po
 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 --git a/trytond_currency.egg-info/requires.txt b/trytond_currency.egg-info/requires.txt
index ef686e0..0f604ad 100644
--- a/trytond_currency.egg-info/requires.txt
+++ b/trytond_currency.egg-info/requires.txt
@@ -1 +1 @@
-trytond >= 4.4, < 4.5
+trytond >= 4.6, < 4.7
-- 
tryton-modules-currency



More information about the tryton-debian-vcs mailing list