forked from pool/python-humanreadable
- 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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user