17
0

47 Commits

Author SHA256 Message Date
a0f73286fa Accepting request 1291695 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1291695
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=22
2025-07-10 20:13:53 +00:00
db24f74402 - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=44
2025-07-10 13:11:06 +00:00
bf43797ef4 Accepting request 1221624 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1221624
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=21
2024-11-06 15:55:40 +00:00
446e4b0b82 - Add patch support-python-313.patch:
* No longer use now-removed pipes module.
- Remove Python 2 leftovers.
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=42
2024-10-30 02:58:53 +00:00
1cc537d721 Accepting request 1081893 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1081893
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=20
2023-04-21 16:48:09 +00:00
8f7e6bb945 Accepting request 1081442 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081442
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=40
2023-04-21 14:31:44 +00:00
4da4ad7469 Accepting request 992125 from devel:languages:python
- Remove unneeded BuildRequires on mock.

OBS-URL: https://build.opensuse.org/request/show/992125
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=19
2022-08-02 20:09:07 +00:00
66f0333152 - Remove unneeded BuildRequires on mock.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=38
2022-08-02 03:13:27 +00:00
c7a1ec79a9 Accepting request 991672 from devel:languages:python
- Add patch pytest-7-support.patch:
  * Support pytest >= 7.

OBS-URL: https://build.opensuse.org/request/show/991672
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=18
2022-07-29 14:48:17 +00:00
cb6fc62f0b - Add patch pytest-7-support.patch:
* Support pytest >= 7.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=36
2022-07-29 07:43:15 +00:00
e2e8a6939e Accepting request 963714 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/963714
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=17
2022-03-21 19:13:09 +00:00
fa194d8080 Accepting request 963677 from home:pgajdos:python
- do not require mock for build
- added patches
  fix https://github.com/xolox/python-humanfriendly/issues/62
  + python-humanfriendly-no-mock.patch

OBS-URL: https://build.opensuse.org/request/show/963677
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=34
2022-03-21 14:23:27 +00:00
d3e63bcb67 Accepting request 932772 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/932772
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=16
2021-11-21 22:52:12 +00:00
cce0728ad2 Accepting request 932241 from home:glaubitz:branches:devel:languages:python
- Update to 10.0
  **Noteworthy changes:**
  * Merged pull request `#45`_ to resolve the issue caused by the conditional
    :pypi:`pyreadline` requirement on Windows not supporting Python 3.9+.
  * Updated the readme to use Python 3 in the example (reported in issue `#56`_).
    Also added a mention of the ``humanfriendly --demo`` command.
  * Removed the ``humanfriendly.compat.unittest`` alias that presumably no-one is
    using at this point; it had been rendered useless quite a long time ago
    (requested in issue `#53`_).
  **Internal changes:**
  * Merged pull request `#54`_ which migrates the :pypi:`humanfriendly` project
    from Travis CI to GitHub Actions and from Coveralls.io to Codecov.
  * Fixed a deprecation warning concerning ``setup.cfg`` and some Sphinx
    documentation errors.

OBS-URL: https://build.opensuse.org/request/show/932241
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=33
2021-11-21 11:00:41 +00:00
Richard Brown
4d9044abd1 Accepting request 912717 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/912717
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=15
2021-08-18 06:56:23 +00:00
53e417006b Accepting request 912658 from home:glaubitz:branches:devel:languages:python
- Update to 9.2
  Maintenance release:
  * Merged pull request `#46`_ which fixes several :pypi:`flake8` warnings.
  * Merged pull request `#49`_ which marks Python 3.9 support final.
  * Merged pull request `#51`_ which helps to stabilize the test suite.
  * Merged pull request `#52`_ which updates the :mod:`humanfriendly.sphinx`
    module to include Sphinx extension metadata that has become mandatory in a
    recent Sphinx release. After merging the pull request I added additional
    metadata including the version.
- from version 9.1
  * Added :func:`~humanfriendly.compat.on_macos()` function to detect Apple MacOS
    (I need this in an upcoming :pypi:`coloredlogs` release and don't want to have
    to think about how to detect MacOS again in the future 😇).
- from version 9.0
  The major version number was bumped because the bug fix for
  :func:`~humanfriendly.text.pluralize()` is backwards incompatible
  and (even though this seems like very "cosmetic" functionality)
  version numbers are cheap, so who cares 😉.
  **Bug fixes:**
  * Changed :func:`~humanfriendly.format_number()` to properly support negative
    numbers (as suggested in `issue #40`_).
  * Changed :func:`~humanfriendly.text.pluralize()` to generate "1.5 seconds"
    instead of "1.5 second" (as suggested in `issue #43`_).
  **Enhancements:**
  * Enhanced :func:`~humanfriendly.text.concatenate()` to support ``conjunction``
    and ``serial_comma`` keyword arguments (as suggested in `issue #30`_).
  * Added :func:`~humanfriendly.text.pluralize_raw()` to select singular or
    plural form without prefixing the count to the text that is returned.
- from version 8.2
  * Added a simple case insensitive dictionary implementation, for details refer to

OBS-URL: https://build.opensuse.org/request/show/912658
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=32
2021-08-17 15:28:24 +00:00
32667282d3 Accepting request 796500 from devel:languages:python
- Fix build without python2

OBS-URL: https://build.opensuse.org/request/show/796500
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=14
2020-04-23 16:37:11 +00:00
Tomáš Chvátal
b8ffa2ec8b - Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=30
2020-04-23 11:02:18 +00:00
6f2ef22500 Accepting request 789697 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/789697
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=13
2020-03-30 21:04:14 +00:00
Tomáš Chvátal
e4f8cf45b6 Accepting request 789694 from home:mcalabkova:branches:devel:languages:python
- Update to 8.1
  * Make it possible to opt out of the output capturing that
    :func:`humanfriendly.testing.run_cli()` sets up by default.
  * Improve feature parity between :class:`humanfriendly.testing.CaptureOutput`
    and my :pypi:`capturer` package to the point where most of the
    :pypi:`humanfriendly` test suite can now run without :pypi:`capturer`.
  * Refactored the test suite to import all names separately instead of referring
    to identifiers via their modules (my preferences have changed since this code
    was written a long time ago).
  * Adopt :func:`functools.wraps()` to make decorator functions more robust.
  * Make the :class:`~humanfriendly.terminal.spinners.Spinner` class more
    customizable. The interval at which spinners are updated and the characters
    used to draw the animation of spinners can now be customized by callers.
    This was triggered by `executor issue #2`_.
  * Improve test skipping based on exception types.
  * The "deprecated imports" feature provided by :mod:`humanfriendly.deprecation`
    has been adopted to clean up the maze of (almost but not quite) cyclic import
    dependencies between modules.
  * HTML to ANSI functionality has been extracted to a new
    :mod:`humanfriendly.terminal.html` module.
  * Support for spinners has been extracted to a new
    :mod:`humanfriendly.terminal.spinners` module.
  * The use of positional arguments to initialize
    :class:`~humanfriendly.terminal.spinners.Spinner` objects has been deprecated
    using the new :func:`humanfriendly.deprecation.deprecated_args()` decorator
    function.
  * Added the :func:`humanfriendly.deprecation.deprecated_args()` decorator function
    which makes it easy to switch from positional arguments to keyword arguments
    without dropping backwards compatibility.
  * Accept pluralized disk size units (`#26`_). I'm not claiming this is a full

OBS-URL: https://build.opensuse.org/request/show/789694
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=28
2020-03-30 10:01:36 +00:00
1d664ccd87 Accepting request 774497 from devel:languages:python
- Update to 6.1:
  - Added a :pypy:`...` role for easy linking to packages on the
    Python Package Index, for details refer to
    :func:`humanfriendly.sphinx.pypi_role()`.
  - Wasted quite a bit of time debugging a MacOS failure on
    Travis CI caused by a broken man`pip` installation, fixed by
    using get-pip.py to bootstrap an installation that actually
    works wink.
  - Enable :class:`~humanfriendly.testing.MockedProgram` to
    customize the shell script code of mocked programs. This was
    added to make it easy to mock a program that is expected to
    generate specific output (I'm planning to use this in the
    :pypi:`linux-utils` test suite).
  - Defined __all__ for all public modules that previously lacked
    "export control" and decided to bump the major version number
    as a precaution:
    - These changes should not have any impact on backwards
      compatibility, unless I forgot entries, in which case
      callers can get :exc:`~exceptions.ImportError`
      exceptions...
    - Imports of public modules were previously exported
      (implicitly) and this pollutes code completion suggestions
      which in turn can encourage bad practices (not importing
      things using their "canonical" name).
    - I started developing the humanfriendly package years before
      I learned about the value of defining __all__ and so some
      modules lacked a definition until now. I decided that now
      was as good a time as any to add those definitions
      innocent.
  - Simplified the headings in docs/api.rst so that only the

OBS-URL: https://build.opensuse.org/request/show/774497
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=12
2020-02-15 21:25:23 +00:00
1fc9399f9b Fix changes
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=26
2020-02-15 07:56:35 +00:00
5369bc05dd - Update to 6.1:
- Added a :pypy:`…` role for easy linking to packages on the
    Python Package Index, for details refer to
    :func:`humanfriendly.sphinx.pypi_role()`.
  - Wasted quite a bit of time debugging a MacOS failure on
    Travis CI caused by a broken man`pip` installation, fixed by
    using get-pip.py to bootstrap an installation that actually
    works wink.
  - Enable :class:`~humanfriendly.testing.MockedProgram` to
    customize the shell script code of mocked programs. This was
    added to make it easy to mock a program that is expected to
    generate specific output (I'm planning to use this in the
    :pypi:`linux-utils` test suite).
  - Defined __all__ for all public modules that previously lacked
    "export control" and decided to bump the major version number
    as a precaution:
    - These changes should not have any impact on backwards
      compatibility, unless I forgot entries, in which case
      callers can get :exc:`~exceptions.ImportError`
      exceptions...
    - Imports of public modules were previously exported
      (implicitly) and this pollutes code completion suggestions
      which in turn can encourage bad practices (not importing
      things using their "canonical" name).
    - I started developing the humanfriendly package years before
      I learned about the value of defining __all__ and so some
      modules lacked a definition until now. I decided that now
      was as good a time as any to add those definitions
      innocent.
  - Simplified the headings in docs/api.rst so that only the

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=25
2020-02-15 07:55:33 +00:00
8272c15076 Accepting request 755758 from devel:languages:python
- Require full python stack for sqlite module

OBS-URL: https://build.opensuse.org/request/show/755758
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=11
2019-12-11 11:15:05 +00:00
Tomáš Chvátal
97a4a344a2 - Require full python stack for sqlite module
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=23
2019-12-11 08:57:49 +00:00
300b907c3d Accepting request 689802 from devel:languages:python
- Simplify the multibuild conditioning and name creation

OBS-URL: https://build.opensuse.org/request/show/689802
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=10
2019-03-29 19:43:35 +00:00
Tomáš Chvátal
2514e71fe7 - Simplify the multibuild conditioning and name creation
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=21
2019-03-29 10:46:34 +00:00
951ff4f962 Accepting request 684406 from devel:languages:python
- Update to 4.18:
  * Added humanfriendly.text.generate_slug() function.
  * Fixed "invalid escape sequence" DeprecationWarning (pointed out by Python >= 3.6).

OBS-URL: https://build.opensuse.org/request/show/684406
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=9
2019-03-13 08:14:40 +00:00
Tomáš Chvátal
1fe84d5bb8 - Update to 4.18:
* Added humanfriendly.text.generate_slug() function.
  * Fixed "invalid escape sequence" DeprecationWarning (pointed out by Python >= 3.6).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=19
2019-03-12 16:10:33 +00:00
Stephan Kulow
0d700a643e Accepting request 670326 from devel:languages:python
- Update to 4.17:
  * compatibility with python 3.7

OBS-URL: https://build.opensuse.org/request/show/670326
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=8
2019-02-25 16:48:50 +00:00
Tomáš Chvátal
f7f3b5e6fe - Update to 4.17:
* compatibility with python 3.7

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=17
2019-01-31 11:32:32 +00:00
efd7d0e48d Accepting request 632099 from devel:languages:python
- Move the Name declaration above lua code to work on Leap 42.3

OBS-URL: https://build.opensuse.org/request/show/632099
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=7
2018-08-31 08:45:00 +00:00
Tomáš Chvátal
ec6069eada - Move the Name declaration above lua code to work on Leap 42.3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=15
2018-08-29 08:22:51 +00:00
93ebbc5354 Accepting request 630720 from devel:languages:python
- Update to 4.16.1:
  * Added humanfriendly.text.compact_empty_lines() function.
  * Enable optional html_to_ansi(data[, callback]) argument.
  * Added a code sample and screenshot to the HTMLConverter documentation.
  * Emit vertical whitespace for block tags like <div>, <p> and <pre> and post-process the generated output in __call__() to compact empty lines.
  * Don’t pre-process preformatted text using the user defined text callback.
  * Improve robustness against malformed HTML (previously an IndexError would be raised when a closing </a> tag was encountered without a corresponding opening <a> tag).
  * Emit an ANSI reset code when HTMLConverter.close() is called and a style is still active (improves robustness against malformed HTML).
  * Support for 24-bit (RGB) terminal colors. Works by accepting a tuple or list with three integers representing an RGB (red, green, blue) color.
  * Support for italic text rendering on the terminal.
  * Make format_timespan() accept datetime.timedelta objects (fixes #27).
  * Add license key to setup.py script (pointed out to me in coloredlogs pull request #53).
  * Added the Timer.sleep() method to sleep “no more than” the given number of seconds.
  * Added the format_rst_table() function to render RST (reStructuredText) tables.
- Enable and make sure tests are run

OBS-URL: https://build.opensuse.org/request/show/630720
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=6
2018-08-22 12:19:59 +00:00
Tomáš Chvátal
7a6e4734e1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=13 2018-08-21 08:28:52 +00:00
Tomáš Chvátal
8d12a342e8 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=12 2018-08-21 08:00:58 +00:00
Tomáš Chvátal
ab2879b4b7 - Update to 2.3.1:
* updated tests for upstream wycheproof changes
  * many other tiny test tweaks

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=11
2018-08-21 07:54:13 +00:00
657cf325e5 Accepting request 629947 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/629947
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=5
2018-08-17 22:06:47 +00:00
Tomáš Chvátal
6f0556a8de Accepting request 629946 from home:sax2:branches:devel:languages:python
- Submission to SUSE:SLE-12-SP3:Update:PubClouds
    
  This commit tracks the submission for fate#326575
  and bsc#1103542

OBS-URL: https://build.opensuse.org/request/show/629946
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=9
2018-08-17 13:43:44 +00:00
13fa7d39fc Accepting request 574413 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/574413
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=4
2018-02-09 14:51:56 +00:00
7ed38a2a38 Accepting request 574412 from home:glaubitz:branches:devel:languages:python
- Update to version 4.8
  * Add coerce_pattern() function
  * Improve code consistency
- From version 4.7
  * Support background colors and 256 color mode
  * Tests for output(), message() and warning()
- From version 4.6
  * Support for bright terminal colors
- From version 4.5
  * Extend byte ranges, add RAM output to command line
- From version 4.4.2
  * Reduce clock source sensitivity* (MacOS on Travis CI)
  * Fix `Double requirement given' error
  * Try to fix Python 2.6 tests on Travis CI
  * Change Sphinx documentation theme
  * Bump copyright
  * Try to enable MacOS builds on Travis CI
  * Fix ImportError exception on Windows
- From version 4.4.1
  * Include docs to sdist
  * PEP-8 fail
  * Change cli test from 1.05 mm to 1.05 km
  * Another correction to test_cli
  * Corrected CLI format_length test
  * Aim for more CLI coverage
  * Add CLI tests for format-byte
  * Added size test cases
  * Size 1z is now valid
- From version 4.4
  * Add touch() to __all__

OBS-URL: https://build.opensuse.org/request/show/574412
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=7
2018-02-08 22:36:25 +00:00
de59e8c362 Accepting request 521725 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/521725
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=3
2017-09-11 14:17:49 +00:00
Todd R
c0dd25304f Accepting request 521724 from home:TheBlackCat:branches:devel:languages:python
- Implement single-spec version.
- Update to version 4.4.1
  * No changelog

OBS-URL: https://build.opensuse.org/request/show/521724
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=5
2017-09-06 16:38:28 +00:00
241ae0ff0b Accepting request 434210 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/434210
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=2
2016-10-13 09:31:00 +00:00
d2db72ddf9 Accepting request 434195 from home:mnhauke
- Update to version 2.1
  * Release 2.1: Support for sanitizing terminal output
  * Support for sanitizing terminal output
  * Merge #12: Update README.rst for new unit behaviour
  * Update README.rst for new unit behaviour
  * Release 2.0: Proper support for IEEE 1541 definitions of units? (fixes #4, merges #8 and #9)
  * Proper support for IEEE 1541 definitions of units?
  * Merge #9: Add note about IEEE 1541 definitions of units
  * Merge #8: Allow correct behavior of 'parse_size' and 'format_size'
  * Stop clearing coverage data on Travis CI :-)
  * Release 1.44.9 (fixes #10 and #11)
  * Restore Python 2.6 compatibility (#10 and #11)
  * Resolve timespan formatting issues (#10 and #11)
  * Reproduce timespan formatting issues reported in #10 and #11
  * Refactor makefile, switch to py.test, wheel support, etc.
  * Release 1.44.8 (fixes #7)
  * Don't test tags on Travis CI
  * Fix issue #7
  * Reproduce issue #7 in test suite
  * Minor improvements to setup script
  * Add note about IEEE 1541 definitions of units
  * Added unit tests
  * Implemented correct handling of prefixes based on IEEE 1540
- Fix source url
- Minor specfile cleanup

OBS-URL: https://build.opensuse.org/request/show/434195
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=3
2016-10-10 20:41:23 +00:00
a371bc63c4 Accepting request 420655 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/420655
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanfriendly?expand=0&rev=1
2016-09-21 16:47:10 +00:00
Denisart Benjamin
b03b87e2cc Accepting request 407653 from home:okurz
Followup to declined request https://build.opensuse.org/request/show/355695: package without _services and based on latest release. Hope this is the right way to do.

OBS-URL: https://build.opensuse.org/request/show/407653
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=1
2016-07-15 18:12:44 +00:00