diff --git a/py-moneyed-0.8.0.tar.gz b/py-moneyed-0.8.0.tar.gz deleted file mode 100644 index 579303b..0000000 --- a/py-moneyed-0.8.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ec73795171919d537880a33c44d07fcdf0a5225e8368684fe02f0e75a6404742 -size 21865 diff --git a/py-moneyed-2.0.tar.gz b/py-moneyed-2.0.tar.gz new file mode 100644 index 0000000..b30242a --- /dev/null +++ b/py-moneyed-2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc0e6ad93efbb7f5ad1d4ab1c5444bfd5f9afbbc50bcdfa46a65c114ac219ae4 +size 22318 diff --git a/python-py-moneyed.changes b/python-py-moneyed.changes index 42e75cf..f565f10 100644 --- a/python-py-moneyed.changes +++ b/python-py-moneyed.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Tue Feb 1 04:40:00 UTC 2022 - Steve Kowalik + +- Update to 2.0: + * Dropped support for Python 2.7 and 3.5 and PyPy 2. + * Dropped the moneyed.localization module that was deprecated and + announced for removal in 1.0. + * Added type hints along with a mypy pre-commit hook. + * Removed undocumented DEFAULT_CURRENCY and DEFAULT_CURRENCY_CODE + constants, and change to make instantiating Money without providing a + currency a type error. This used to result in an object with a made-up + "XYZ" currency, which could lead to surprising behaviors and bugs. + * Added zero property to Currency to conveniently access the zero value + of a given currency. + * Moved to use setuptool's declarative packaging config and PEP 517 + isolated builds. + * Removed requirements files and instead specified test requirements + using extras. +- Switch to using the GitHub release URL. + ------------------------------------------------------------------- Tue Mar 31 05:07:30 AM UTC 2020 - John Vandenberg diff --git a/python-py-moneyed.spec b/python-py-moneyed.spec index d018948..ef50a45 100644 --- a/python-py-moneyed.spec +++ b/python-py-moneyed.spec @@ -1,7 +1,7 @@ # # spec file for package python-py-moneyed # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,21 +16,24 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?!python_module:%define python_module() python3-%{**}} Name: python-py-moneyed -Version: 0.8.0 +Version: 2.0 Release: 0 Summary: Python currency and money classes License: BSD-3-Clause -Group: Development/Languages/Python URL: https://github.com/limist/py-moneyed -Source: https://files.pythonhosted.org/packages/source/p/py-moneyed/py-moneyed-%{version}.tar.gz +Source: https://github.com/py-moneyed/py-moneyed/archive/refs/tags/v%{version}.tar.gz#/py-moneyed-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-Babel >= 2.8.0 +Requires: python-typing-extensions >= 3.7 BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest >= 2.3.0} +BuildRequires: %{python_module Babel >= 2.8.0} +BuildRequires: %{python_module typing-extensions >= 3.7} # /SECTION %python_subpackages @@ -45,9 +48,7 @@ Provides Currency and Money classes for use in your Python code. %install %python_install -%{python_expand rm -rf %{buildroot}%{$python_sitelib}/moneyed/test_moneyed_classes.py* %{buildroot}%{$python_sitelib}/moneyed/__pycache__/test_moneyed_classes.* -%fdupes %{buildroot}%{$python_sitelib} -} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest