forked from pool/python-py-moneyed
Compare commits
4 Commits
Author | SHA256 | Date | |
---|---|---|---|
21571f4caa | |||
5d2e555d83 | |||
da0b3e82c9 | |||
1a51613a06 |
18
add-missing-currencies.patch
Normal file
18
add-missing-currencies.patch
Normal 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)
|
@@ -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>
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user