15
0

Accepting request 950333 from devel:languages:python

- 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.

OBS-URL: https://build.opensuse.org/request/show/950333
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-py-moneyed?expand=0&rev=2
This commit is contained in:
2022-02-01 13:02:50 +00:00
committed by Git OBS Bridge
4 changed files with 32 additions and 11 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ec73795171919d537880a33c44d07fcdf0a5225e8368684fe02f0e75a6404742
size 21865

3
py-moneyed-2.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bc0e6ad93efbb7f5ad1d4ab1c5444bfd5f9afbbc50bcdfa46a65c114ac219ae4
size 22318

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Tue Feb 1 04:40:00 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <jayvdb@gmail.com>

View File

@@ -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