17
0

Compare commits

4 Commits

Author SHA256 Message Date
c5edfbc01b Accepting request 1245779 from devel:languages:python
- Drop patch add-missing-xcg.patch, subsumed into:
- Add patch add-missing-currencies.patch:
  * Support the Zimbabwean ZiG (ZWG) as well.

OBS-URL: https://build.opensuse.org/request/show/1245779
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-py-moneyed?expand=0&rev=6
2025-02-14 18:21:03 +00:00
ea23553e6e - Drop patch add-missing-xcg.patch, subsumed into:
- Add patch add-missing-currencies.patch:
  * Support the Zimbabwean ZiG (ZWG) as well.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py-moneyed?expand=0&rev=11
2025-02-14 04:30:06 +00:00
050957c6f3 Accepting request 1229977 from devel:languages:python
- Add patch add-missing-xcg.patch:
  * Support the upcoming Caribbean guilder (XCG)
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1229977
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-py-moneyed?expand=0&rev=5
2024-12-11 20:03:55 +00:00
4ae72c63c3 - Add patch add-missing-xcg.patch:
* Support the upcoming Caribbean guilder (XCG)
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py-moneyed?expand=0&rev=9
2024-12-11 01:38:07 +00:00
3 changed files with 41 additions and 6 deletions

View File

@@ -0,0 +1,18 @@
Index: py-moneyed-3.0/src/moneyed/classes.py
===================================================================
--- py-moneyed-3.0.orig/src/moneyed/classes.py
+++ py-moneyed-3.0/src/moneyed/classes.py
@@ -723,6 +723,7 @@ XBB = add_currency("XBB", "956")
XBC = add_currency("XBC", "957")
XBD = add_currency("XBD", "958")
XCD = add_currency("XCD", "951", 100)
+XCG = add_currency("XCG", None, 100)
XDR = add_currency("XDR", "960")
XFO = add_currency("XFO", None)
XFU = add_currency("XFU", None)
@@ -744,4 +745,5 @@ XXX = add_currency(
YER = add_currency("YER", "886", 100)
ZAR = add_currency("ZAR", "710", 100)
ZMW = add_currency("ZMW", "967", 100)
+ZWG = add_currency("ZWG", "924", 100)
ZWN = add_currency("ZWN", "942", 100)

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
Fri Feb 14 04:29:31 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Drop patch add-missing-xcg.patch, subsumed into:
- Add patch add-missing-currencies.patch:
* Support the Zimbabwean ZiG (ZWG) as well.
-------------------------------------------------------------------
Wed Dec 11 01:37:46 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch add-missing-xcg.patch:
* Support the upcoming Caribbean guilder (XCG)
- Switch to pyproject macros.
-------------------------------------------------------------------
Mon Nov 28 07:29:42 UTC 2022 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-py-moneyed
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,8 +23,13 @@ Summary: Python currency and money classes
License: BSD-3-Clause
URL: https://github.com/limist/py-moneyed
Source: https://github.com/py-moneyed/py-moneyed/archive/refs/tags/v%{version}.tar.gz#/py-moneyed-%{version}.tar.gz
# PATCH-FIX-OPENSUSE Add XCG -- Caribbean guilder
# ZWG -- Zimbabwean ZiG
Patch0: add-missing-currencies.patch
BuildRequires: %{python_module base >= 3.6}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Babel >= 2.8.0
@@ -34,8 +39,6 @@ BuildArch: noarch
BuildRequires: %{python_module mypy >= 0.812}
BuildRequires: %{python_module Babel >= 2.8.0}
BuildRequires: %{python_module pytest >= 2.3.0}
BuildRequires: %{python_module pytest >= 2.3.0}
BuildRequires: %{python_module tox >= 1.6.0}
BuildRequires: %{python_module typing-extensions >= 3.7.4.3}
# /SECTION
%python_subpackages
@@ -47,10 +50,10 @@ Provides Currency and Money classes for use in your Python code.
%autosetup -p1 -n py-moneyed-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -60,6 +63,6 @@ Provides Currency and Money classes for use in your Python code.
%doc CHANGES.rst README.rst
%license LICENSE
%{python_sitelib}/moneyed
%{python_sitelib}/py_moneyed-%{version}*-info
%{python_sitelib}/py_moneyed-%{version}.dist-info
%changelog