15
0

- update to 0.4.0:

* Add `to_humanreadable` method to `BitsPerSecond` class
  * Fix `to_humanreadable` method failed when the value is over 1
    day: #2 (Thanks to @giobri)
  * Fix `__all__` in `__init__.py`
  * Drop support for Python 3.6
  * Improve type annotations
  * Modify to use `pypa/build` for package build
- update to 0.3.0:
  * Add additional formats support for `BitPerSecond` class
  * Add `__add__` method to `BitPerSecond` and `Time` classes
  * Add `BitsPerSecond` class that is an alias of the
    `BitPerSecond` class
  * Add `to_humanreadable` method to the `Time` class
- update to 0.2.0:
  * Add support for Python 3.10/3.11
  * Drop support for Python 3.5
  * Change `BitPerSecond.bps` property type from `int` to `float`
  * Add type annotations
  * Update requirements

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanreadable?expand=0&rev=5
This commit is contained in:
2023-12-07 22:55:21 +00:00
committed by Git OBS Bridge
parent 26fdc82c9a
commit b6319635f0
4 changed files with 33 additions and 9 deletions

View File

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

View File

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

View File

@@ -1,3 +1,27 @@
-------------------------------------------------------------------
Thu Dec 7 22:53:31 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.4.0:
* Add `to_humanreadable` method to `BitsPerSecond` class
* Fix `to_humanreadable` method failed when the value is over 1
day: #2 (Thanks to @giobri)
* Fix `__all__` in `__init__.py`
* Drop support for Python 3.6
* Improve type annotations
* Modify to use `pypa/build` for package build
- update to 0.3.0:
* Add additional formats support for `BitPerSecond` class
* Add `__add__` method to `BitPerSecond` and `Time` classes
* Add `BitsPerSecond` class that is an alias of the
`BitPerSecond` class
* Add `to_humanreadable` method to the `Time` class
- update to 0.2.0:
* Add support for Python 3.10/3.11
* Drop support for Python 3.5
* Change `BitPerSecond.bps` property type from `int` to `float`
* Add type annotations
* Update requirements
-------------------------------------------------------------------
Sat Apr 4 11:17:46 UTC 2020 - Martin Hauke <mardnh@gmx.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-humanreadable
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,22 +19,22 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-humanreadable
Version: 0.1.0
Version: 0.4.0
Release: 0
Summary: A Python library to convert from human-readable values to Python values
License: MIT
Group: Development/Languages/Python
URL: https://github.com/thombashi/humanreadable
Source: https://files.pythonhosted.org/packages/source/h/humanreadable/humanreadable-%{version}.tar.gz
BuildRequires: %{python_module setuptools >= 38.3.0}
BuildRequires: %{python_module setuptools >= 61}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module typepy >= 0.6.4}
BuildRequires: %{python_module typepy >= 1.2.0}
# /SECTION
BuildRequires: fdupes
Requires: python-setuptools >= 38.3.0
Requires: python-typepy >= 0.6.4
Requires: python-setuptools >= 61
Requires: python-typepy >= 1.2.0
BuildArch: noarch
%python_subpackages