47 Commits

Author SHA256 Message Date
11334ea637 Accepting request 1320272 from devel:languages:python:numeric
- Only require pytest-subtests with pytest < 9.

OBS-URL: https://build.opensuse.org/request/show/1320272
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=24
2025-11-27 14:21:04 +00:00
b6d9932389 - Only require pytest-subtests with pytest < 9.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=46
2025-11-27 06:06:02 +00:00
3e86ac69b3 Accepting request 1271221 from devel:languages:python:numeric
- Support both lowercased and unnormalized metadata directory names.

OBS-URL: https://build.opensuse.org/request/show/1271221
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=23
2025-04-22 15:28:23 +00:00
ef180789b0 - Support both lowercased and unnormalized metadata directory names.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=44
2025-04-22 01:40:51 +00:00
b1cad0257c Accepting request 1225327 from devel:languages:python:numeric
- update to 0.24.4:
  * add error for prefixed non multi units (#1998)
  * build: typing_extensions version
  * build: switch from appdirs to platformdirs
  * fix GenericPlainRegistry getattr type (#2045)
  * Replace references to the deprecated
    `UnitRegistry.default_format` (#2058)
  * fix: upgrade to flexparser>=0.4, exceptions are no longer
    dataclasses.
- drop support-python-313.patch (upstream)

OBS-URL: https://build.opensuse.org/request/show/1225327
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=22
2024-11-20 16:44:46 +00:00
dd49dfe789 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=42 2024-11-20 15:44:36 +00:00
1fd1c0b062 - update to 0.24.4:
* add error for prefixed non multi units (#1998)
  * build: typing_extensions version
  * build: switch from appdirs to platformdirs
  * fix GenericPlainRegistry getattr type (#2045)
  * Replace references to the deprecated
    `UnitRegistry.default_format` (#2058)
  * fix: upgrade to flexparser>=0.4, exceptions are no longer
    dataclasses.
- drop support-python-313.patch (upstream)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=41
2024-11-20 15:44:29 +00:00
abb803cd75 Accepting request 1220380 from devel:languages:python:numeric
- Add patch support-python-313.patch:
  * Do not mix frozen and non-frozen dataclasses.

OBS-URL: https://build.opensuse.org/request/show/1220380
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=21
2024-11-03 06:18:21 +00:00
64e39571f0 - Add patch support-python-313.patch:
* Do not mix frozen and non-frozen dataclasses.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=39
2024-11-03 02:23:46 +00:00
228286e9b4 Accepting request 1191755 from devel:languages:python:numeric
- update to 0.24.3:
  * Fix the default behaviour for pint-convert (cli) for
    importing uncertainties package (PR #2032, Issue #2016)
  * Added mu and mc as alternatives for SI micro prefix
  * Added ℓ as alternative for liter
  * Support permille units and `‰` symbol (PR #2033, Issue #1963)

OBS-URL: https://build.opensuse.org/request/show/1191755
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=20
2024-08-06 07:08:10 +00:00
70e57fe768 - update to 0.24.3:
* Fix the default behaviour for pint-convert (cli) for
    importing uncertainties package (PR #2032, Issue #2016)
  * Added mu and mc as alternatives for SI micro prefix
  * Added ℓ as alternative for liter
  * Support permille units and `‰` symbol (PR #2033, Issue #1963)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=37
2024-08-05 18:59:37 +00:00
1b6a7c3726 Accepting request 1187422 from devel:languages:python:numeric
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1187422
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=19
2024-07-15 17:49:23 +00:00
e2e185a881 - Update to 0.24.1:
* Fix custom formatter needing the registry object.
  * Support python 3.9 following difficulties installing with NumPy 2.
  * Fix default formatting of dimensionless unit issue.
  * Fix bug preventing custom formatters with modifiers working.
  * Fix detection of invalid conversion between offset and delta units.
  * Added dBW, decibel Watts, which is used in RF high power applications.
  * NumPy 2.0 support
  * Implement numpy roll (Related to issue #981)
  * Implement numpy correlate
  * Add `dim_sort` function to _formatter_helpers.
  * Add `dim_order` and `default_sort_func` properties to FullFormatter.
  * Fixed bug causing operations between arrays of quantity scalars and
    quantity holding array resulting in incorrect units.
  * Fix LaTeX siuntix formatting when using non_int_type=decimal.Decimal.
  * Added refractive index units.
  * Fix converting to offset units of higher dimension e.g. gauge pressure
  * Fix unhandled TypeError when auto_reduce_dimensions=True and
    non_int_type=Decimal
  * Improved error message in `get_dimensionality()` when non existent units
    are passed.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=35
2024-07-08 01:30:38 +00:00
d4fb945652 Accepting request 1143987 from devel:languages:python:numeric
- update to 0.23:
  * Add _get_conversion_factor to registry with cache.
  * Homogenize input and ouput of internal regitry functions to
    facility typing, subclassing and wrapping.
    (_yield_unit_triplets, )
  * Generated downstream_status page to track the
    state of downstream projects.
  * Improve typing annotation.
  * Updated to flexparser 0.2.
  * Faster wraps
  * Add codspeed github action.
  * Move benchmarks to pytest-benchmarks.
  * Support pytest on python 3.12 wrt Fraction formatting change
  * Fixed Transformation type protocol.
  * Documented to_preferred and created added an
    autoautoconvert_to_preferred registry option.
  * Enable Pint to parse uncertainty numbers.
  * Optimize matplotlib unit conversion for Quantity arrays
  * Add numpy.linalg.norm implementation.

  * Better support for pandas and dask.
  * Implements a first benchmark suite in airspeed velocity (asv).
  - Improved behaviour in ScaleConverter, OffsetConverter
  - Reimplemented loading of default definitions to allow Pint in
  - Added UnitRegistry () operator to parse

OBS-URL: https://build.opensuse.org/request/show/1143987
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=18
2024-02-04 18:09:52 +00:00
8cad34ded3 - update to 0.23:
* Add _get_conversion_factor to registry with cache.
  * Homogenize input and ouput of internal regitry functions to
    facility typing, subclassing and wrapping.
    (_yield_unit_triplets, )
  * Generated downstream_status page to track the
    state of downstream projects.
  * Improve typing annotation.
  * Updated to flexparser 0.2.
  * Faster wraps
  * Add codspeed github action.
  * Move benchmarks to pytest-benchmarks.
  * Support pytest on python 3.12 wrt Fraction formatting change
  * Fixed Transformation type protocol.
  * Documented to_preferred and created added an
    autoautoconvert_to_preferred registry option.
  * Enable Pint to parse uncertainty numbers.
  * Optimize matplotlib unit conversion for Quantity arrays
  * Add numpy.linalg.norm implementation.
  * Better support for pandas and dask.
  * Implements a first benchmark suite in airspeed velocity (asv).
  - Improved behaviour in ScaleConverter, OffsetConverter
  - Reimplemented loading of default definitions to allow Pint in
  - Added UnitRegistry () operator to parse

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=33
2024-02-04 11:18:40 +00:00
e2ba3db3f0 Accepting request 1135595 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1135595
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=17
2024-01-03 11:23:36 +00:00
551ec6f2a5 Accepting request 1135499 from home:ecsos:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1135499
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=31
2023-12-29 08:55:07 +00:00
e5f13b8803 Accepting request 1101983 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1101983
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=16
2023-08-02 14:50:56 +00:00
34d80d5186 Accepting request 1101969 from home:mcalabkova:branches:devel:languages:python:numeric
- Update to 0.22
  * Add PEP621/631 support.
  * Exposed matplotlib unit formatter
  * Add new SI prefixes: ronna-, ronto-, quetta-, quecto-.
  * multiple numpy compat fixes
  * Parse '°' along with previous text, rather than adding a space,
    allowing, eg 'Δ°C' as a unit.
  * Drop Python 3.8 compatability following NEP-29.
  * Drop NumPy < 1.21 following NEP-29.
  * Migrated fully to pyproject.toml.

OBS-URL: https://build.opensuse.org/request/show/1101969
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=29
2023-08-02 12:34:53 +00:00
7453edfa6f Accepting request 1057861 from devel:languages:python:numeric
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1057861
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=15
2023-01-12 21:44:45 +00:00
2e4f639bfa - update to 0.20.1:
* Reorganized code into facets.
  * The definition parser is now completely appart, making it easy to try other formats.
  * Extra requires for optional packages are now explicit in setup.cfg
  * Parse both Greek mu and micro Unicode points without error.
  * Added angular frequency documentation page.
  * Move ASV benchmarks to dedicated folder. (Issue #1542)
  * Implement `numpy.broadcast_arrays` (#1607)
  * An ndim attribute has been added to Quantity and DataFrame has been added to upcast
    types for pint-pandas compatibility. (#1596)
  * Fix a recursion error that would be raised when passing quantities to `cond` and `x`.
  * Update test_non_int tests for pytest.
  * Create NaN-value quantities of appropriate non-int-type (Issue #1570).
  * New documentation format and organization!
  * Better support for pandas and dask.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=27
2023-01-04 20:07:50 +00:00
b2a5c2d7fd Accepting request 980050 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/980050
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=14
2022-05-31 13:47:44 +00:00
f115af598b Accepting request 979983 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/979983
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=25
2022-05-31 08:07:53 +00:00
cc5da3d83c Accepting request 934421 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/934421
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=13
2021-11-28 20:30:23 +00:00
365dafc359 Accepting request 934307 from home:apersaud:branches:devel:languages:python:numeric
update to latest version

OBS-URL: https://build.opensuse.org/request/show/934307
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=24
2021-11-28 19:16:01 +00:00
8c8db44e32 Accepting request 886518 from devel:languages:python:numeric
- Update to 0.17:
  * Add the Wh unit for battery capacity measurements
  * Fix issue with reducable dimensionless units when using power
    (Quantity**ndarray)
  * Fix comparisons between Quantities and Measurements.
  * UnitsContainer returns false if other is str and cannnot be parsed
  * Fix numpy.linalg.solve unit output. (Issue #1246)
  * Support numpy.lib.stride_tricks.sliding_window_view. (Issue #1255)
  * Move all tests to pytest.
  * Quantity comparisons now ensure other is Quantity.
  * Add sign function compatibility.
  * Fix scalar to ndarray tolist.
  * Fix tolist function with scalar ndarray.
  * Implements a first benchmark suite in airspeed velocity (asv). 
  * Power for pseudo-dimensionless units.
- No longer build for Python 3.6, due to no NumPy.

OBS-URL: https://build.opensuse.org/request/show/886518
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=12
2021-04-19 19:05:53 +00:00
6a24c21311 - Update to 0.17:
* Add the Wh unit for battery capacity measurements
  * Fix issue with reducable dimensionless units when using power
    (Quantity**ndarray)
  * Fix comparisons between Quantities and Measurements.
  * UnitsContainer returns false if other is str and cannnot be parsed
  * Fix numpy.linalg.solve unit output. (Issue #1246)
  * Support numpy.lib.stride_tricks.sliding_window_view. (Issue #1255)
  * Move all tests to pytest.
  * Quantity comparisons now ensure other is Quantity.
  * Add sign function compatibility.
  * Fix scalar to ndarray tolist.
  * Fix tolist function with scalar ndarray.
  * Implements a first benchmark suite in airspeed velocity (asv). 
  * Power for pseudo-dimensionless units.
- No longer build for Python 3.6, due to no NumPy.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=22
2021-04-19 04:14:40 +00:00
5a3f7436cb Accepting request 865060 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/865060
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=11
2021-01-26 13:46:04 +00:00
3a3e849208 Accepting request 865050 from home:jayvdb:branches:devel:languages:python:numeric
- Use %python_alternative to fix multi Python 3 builds

OBS-URL: https://build.opensuse.org/request/show/865050
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=20
2021-01-20 17:56:41 +00:00
Tomáš Chvátal
90423fbc9f Accepting request 841082 from home:apersaud:branches:devel:languages:python:numeric
added importlib, see SR840901

OBS-URL: https://build.opensuse.org/request/show/841082
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=19
2020-10-12 06:48:36 +00:00
cb27cdac1c Accepting request 835385 from devel:languages:python:numeric
- update to 0.15:
  - Change `Quantity` and `Unit` HTML (i.e., Jupyter notebook) repr away from LaTeX to a
    simpler, more performant pretty-text and table based repr inspired by Sparse and Dask.
  - Add `case_sensitive` option to registry for case (in)sensitive handling when parsing
  - Implement Dask collection interface to support Pint Quantity wrapped Dask arrays.
  - Started automatically testing examples in the documentation
  - Fixed an exception generated when reducing dimensions with three or more
    units of the same type
  - Fixed right operand power for dimensionless Quantity to reflect numpy behavior. (Issue #1136)
  - Eliminated warning when setting a masked value on an underlying MaskedArray.
  - Add `sort` option to `formatting.formatter` to permit disabling sorting of component units in format string

OBS-URL: https://build.opensuse.org/request/show/835385
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=10
2020-09-21 15:27:25 +00:00
e783a37019 - update to 0.15:
- Change `Quantity` and `Unit` HTML (i.e., Jupyter notebook) repr away from LaTeX to a
    simpler, more performant pretty-text and table based repr inspired by Sparse and Dask.
  - Add `case_sensitive` option to registry for case (in)sensitive handling when parsing
  - Implement Dask collection interface to support Pint Quantity wrapped Dask arrays.
  - Started automatically testing examples in the documentation
  - Fixed an exception generated when reducing dimensions with three or more
    units of the same type
  - Fixed right operand power for dimensionless Quantity to reflect numpy behavior. (Issue #1136)
  - Eliminated warning when setting a masked value on an underlying MaskedArray.
  - Add `sort` option to `formatting.formatter` to permit disabling sorting of component units in format string

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=17
2020-09-18 11:01:24 +00:00
20e780a705 Accepting request 819352 from devel:languages:python:numeric
- update to 0.14
  * Changes required to support Pint-Pandas 0.1.
  * Reinstated support for pickle protocol 0 and 1, which is required by pytables
    (Issue #1036, Thanks Guido Imperiale)
  * Fixed bug with multiplication of Quantity by dict (Issue #1032)
  * Bare zeros and NaNs (not wrapped by Quantity) are now gracefully accepted by all numpy
    operations; e.g. np.stack([Quantity([1, 2], "m"), [0, np.nan]) is now valid, whereas
    np.stack([Quantity([1, 2], "m"), [3, 4]) will continue raising DimensionalityError.
    (Issue #1050, Thanks Guido Imperiale)
  * NaN is now treated the same as zero in addition, subtraction, equality, and
    disequality (Issue #1051, Thanks Guido Imperiale)
  * Fixed issue where quantities with a very large magnitude would throw an IndexError
    when using to_compact()
  * Fixed crash when a Unit with prefix is declared for the first time while a Context
    containing unit redefinitions is active
    (Issues #1062 and #1097, Thanks Guido Imperiale)
  * New implementation of 'Lx' String Format Type Option
    The old implementation treated 'Lx' as 'S' as produced by 'uncertainties'
    package, but that is not fully compatible with SIunitx. The new code protects
    SIunitx by fixing what unceratinties produces.
    (Issue #814)
  * Added link to budding `pint-xarray` interface library to the docs, next to
    the link to pint*pandas. (Thanks Tom Nicholas.)
  * Removed outdated `_dir` attribute of `UnitsRegistry`, and added `__iter__`
    method so that now `list(ureg)` returns a list of all units in registry.
    (Issue #1072, Thanks Tom Nicholas)
  * Replace pkg_resources.version to importlib.metadata.version. (Issue #1083)
  * Fix typo in docs for wraps example with optional arguments. (Issue #1088)
  * Add momentum as a dimension
  * Fixed a bug where unit exponents were only partially superscripted in HTML format

OBS-URL: https://build.opensuse.org/request/show/819352
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=9
2020-07-08 17:14:46 +00:00
Tomáš Chvátal
a04f1f7c07 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=15 2020-07-08 06:40:03 +00:00
Tomáš Chvátal
a09858f8aa Accepting request 819258 from home:mcalabkova:branches:devel:languages:python:numeric
- update to 0.14
  * Changes required to support Pint-Pandas 0.1.
  * Reinstated support for pickle protocol 0 and 1, which is required by pytables
    (Issue #1036, Thanks Guido Imperiale)
  * Fixed bug with multiplication of Quantity by dict (Issue #1032)
  * Bare zeros and NaNs (not wrapped by Quantity) are now gracefully accepted by all numpy
    operations; e.g. np.stack([Quantity([1, 2], "m"), [0, np.nan]) is now valid, whereas
    np.stack([Quantity([1, 2], "m"), [3, 4]) will continue raising DimensionalityError.
    (Issue #1050, Thanks Guido Imperiale)
  * NaN is now treated the same as zero in addition, subtraction, equality, and
    disequality (Issue #1051, Thanks Guido Imperiale)
  * Fixed issue where quantities with a very large magnitude would throw an IndexError
    when using to_compact()
  * Fixed crash when a Unit with prefix is declared for the first time while a Context
    containing unit redefinitions is active
    (Issues #1062 and #1097, Thanks Guido Imperiale)
  * New implementation of 'Lx' String Format Type Option
    The old implementation treated 'Lx' as 'S' as produced by 'uncertainties'
    package, but that is not fully compatible with SIunitx. The new code protects
    SIunitx by fixing what unceratinties produces.
    (Issue #814)
  * Added link to budding `pint-xarray` interface library to the docs, next to
    the link to pint*pandas. (Thanks Tom Nicholas.)
  * Removed outdated `_dir` attribute of `UnitsRegistry`, and added `__iter__`
    method so that now `list(ureg)` returns a list of all units in registry.
    (Issue #1072, Thanks Tom Nicholas)
  * Replace pkg_resources.version to importlib.metadata.version. (Issue #1083)
  * Fix typo in docs for wraps example with optional arguments. (Issue #1088)
  * Add momentum as a dimension
  * Fixed a bug where unit exponents were only partially superscripted in HTML format

OBS-URL: https://build.opensuse.org/request/show/819258
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=14
2020-07-08 06:39:29 +00:00
0c81c15bef Accepting request 811107 from devel:languages:python:numeric
- update to 0.11:
  - Added pint-convert script.
  - Remove `default_en_0.6.txt`.
  - Make `__str__` and `__format__` locale configurable.
  (Issue #984)
  - Quantities wrapping NumPy arrays will no longer warning for the changed
  array function behavior introduced in 0.10.
  (Issue #1029, Thanks Jon Thielen)
  - **BREAKING CHANGE**:
  The array protocol fallback deprecated in version 0.10 has been removed.
  (Issue #1029, Thanks Jon Thielen)
  - Now we use `pyproject.toml` for providing `setuptools_scm` settings
  - Remove `default_en_0.6.txt`
  - Reorganize long_description.
  - Moved Pi to definitions files.
  - Use ints (not floats) a defaults at many points in the codebase as in Python 3
  the true division is the default one.
  - **BREAKING CHANGE**:
  Added `from_string` method to all Definitions subclasses. The value/converter
  argument of the constructor no longer accepts an string.
  It is unlikely that this change affects the end user.
  - Added additional NumPy function implementations (allclose, intersect1d)
  (Issue #979, Thanks Jon Thielen)
  - Allow constants in units by using a leading underscore (Issue #989, Thanks
  Juan Nunez-Iglesias)
  - Fixed bug where to_compact handled prefix units incorrectly (Issue #960)

OBS-URL: https://build.opensuse.org/request/show/811107
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=8
2020-06-03 18:36:01 +00:00
34ded80db9 - update to 0.11:
- Added pint-convert script.
  - Remove `default_en_0.6.txt`.
  - Make `__str__` and `__format__` locale configurable.
  (Issue #984)
  - Quantities wrapping NumPy arrays will no longer warning for the changed
  array function behavior introduced in 0.10.
  (Issue #1029, Thanks Jon Thielen)
  - **BREAKING CHANGE**:
  The array protocol fallback deprecated in version 0.10 has been removed.
  (Issue #1029, Thanks Jon Thielen)
  - Now we use `pyproject.toml` for providing `setuptools_scm` settings
  - Remove `default_en_0.6.txt`
  - Reorganize long_description.
  - Moved Pi to definitions files.
  - Use ints (not floats) a defaults at many points in the codebase as in Python 3
  the true division is the default one.
  - **BREAKING CHANGE**:
  Added `from_string` method to all Definitions subclasses. The value/converter
  argument of the constructor no longer accepts an string.
  It is unlikely that this change affects the end user.
  - Added additional NumPy function implementations (allclose, intersect1d)
  (Issue #979, Thanks Jon Thielen)
  - Allow constants in units by using a leading underscore (Issue #989, Thanks
  Juan Nunez-Iglesias)
  - Fixed bug where to_compact handled prefix units incorrectly (Issue #960)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=12
2020-06-03 11:28:16 +00:00
47f3605b2b Accepting request 805763 from devel:languages:python:numeric
- Package requires pytest 4.x or newer

OBS-URL: https://build.opensuse.org/request/show/805763
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=7
2020-05-15 21:52:13 +00:00
Tomáš Chvátal
492d8d439d - Package requires pytest 4.x or newer
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=10
2020-05-15 08:23:07 +00:00
0f26225ea5 Accepting request 795783 from devel:languages:python:numeric
- Remove py2 dep as the package is marked as python3 only

OBS-URL: https://build.opensuse.org/request/show/795783
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=6
2020-04-21 11:09:51 +00:00
Tomáš Chvátal
d5c275cbd4 - Remove py2 dep as the package is marked as python3 only
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=8
2020-04-20 10:55:57 +00:00
d834a29929 Accepting request 768794 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/768794
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=5
2020-02-03 10:12:47 +00:00
Todd R
ea6dfbb4b7 Accepting request 768793 from home:TheBlackCat:branches:devel:languages:python:numeric
- Update to 0.10.1
  * Fixed bug introduced in 0.10 that prevented creation of size-zero Quantities
    from NumPy arrays by multiplication.
  * Fixed several Sphinx issues. Fixed intersphinx hooks to all classes missing.
  * Fixed __array__ signature to match numpy docs
- Update to 0.10
  * **BREAKING CHANGE**:
    Boolean value of Quantities with offsets units is ambiguous, and so, now a ValueError
    is raised when attempting to cast such a Quantity to boolean.
  * **BREAKING CHANGE**:
    `__array_ufunc__` has been implemented on `pint.Unit` to permit
    multiplication/division by units on the right of ufunc-reliant array types (like
    Sparse) with proper respect for the type casting hierarchy. However, until an
    upstream issue with NumPy is resolved,
    this breaks creation of Masked Array Quantities by multiplication on the right.
  * Documentation on Pint's array type compatibility has been added to the NumPy support
    page, including a graph of the duck array type casting hierarchy as understood by Pint
    for N-dimensional arrays.
  * Improved compatibility for downcast duck array types like Sparse.COO. A collection
    of basic tests has been added.
  * Improvements to wraps and check:
    >  fail upon decoration (not execution) by checking wrapped function signature against
          wraps/check arguments.
          (might BREAK test code)
    >  wraps only accepts strings and Units (not quantities) to avoid confusion with magnitude.
          (might BREAK code not conforming to documentation)
    >  when strict=True, strings that can be parsed to quantities are accepted as arguments.
  * Add revolutions per second (rps)
  * Improved compatibility for upcast types like xarray's DataArray or Dataset, to which
    Pint Quantities now fully defer for arithmetic and NumPy operations. A collection of
    basic tests for proper deferral has been added (for full integration tests, see
    xarray's test suite). The list of upcast types is available at
    `pint.compat.upcast_types` in the API.
  * Moved docstrings to Numpy Docs
  * Added tests for immutability of the magnitude's type under common operations
  * Switched test configuration to pytest and added tests of Pint's matplotlib support.
  * Deprecate array protocol fallback except where explicitly defined (`__array__`,
    `__array_priority__`, `__array_function__`, `__array_ufunc__`). The fallback will
    remain until the next minor version, or if the environment variable
    `PINT_ARRAY_PROTOCOL_FALLBACK` is set to 0.
  * Removed eval usage when creating UnitDefinition and PrefixDefinition from string.
  * Added `fmt_locale` argument to registry.
  * Better error message when Babel is not installed.
  * It is now possible to redefine units within a context, and use pint for currency
    conversions.
  * NaN (any capitalization) in a definitions file is now treated as a number
  * Added slinch to Avoirdupois group
  * Fix bug where ureg.disable_contexts() would fail to fully disable throwaway contexts
  * Use black, flake8, and isort on the project
  * Auto-increase package version at every commit when pint is installed from the git tip,
    e.g. pip install git+https://github.com/hgrecco/pint.git.
  * Fix HTML (Jupyter Notebook) and LateX representation of some units
  * Fixed the definition of RKM unit as gf / tex
  * **BREAKING CHANGE**:
    Implement NEP-18 <https://numpy.org/neps/nep-0018-array-function-protocol.html> for
    Pint Quantities. Most NumPy functions that previously stripped units when applied to
    Pint Quantities will now return Quantities with proper units (on NumPy v1.16 with
    the array_function protocol enabled or v1.17+ by default) instead of ndarrays. Any
    non-explictly-handled functions will now raise a "no implementation found" TypeError
    instead of stripping units. The previous behavior is maintained for NumPy < v1.16 and
    when the array_function protocol is disabled.
  * Implementation of NumPy ufuncs has been refactored to share common utilities with
    NumPy function implementations
  * Pint Quantities now support the `@` matrix mulitiplication operator (on NumPy v1.16+),
    as well as the `dot`, `flatten`, `astype`, and `item` methods.
  * **BREAKING CHANGE**:
    Fix crash when applying pprint to large sets of Units.
    DefinitionSyntaxError is now a subclass of SyntaxError (was ValueError).
    DimensionalityError and OffsetUnitCalculusError are now subclasses of TypeError (was
    ValueError).
  * All Exceptions can now be pickled and can be accessed from the top-level package.
  * Mark regex as raw strings to avoid unnecessary warnings.
  * Implement registry-based string preprocessing as list of callables.
  * Context activation and deactivation is now instantaneous; drastically reduced memory
    footprint of a context (it used to be ~1.6MB per context; now it's a few bytes)
  * **BREAKING CHANGE**:
    Drop support for Python < 3.6, numpy < 1.14, and uncertainties < 3.0;
    if you still need them, please install pint 0.9.
    Pint now adheres to NEP-29 <https://numpy.org/neps/nep-0029-deprecation_policy.html>
    as a rolling dependencies version policy.
  * Show proper code location of UnitStrippedWarning exception.
  * Reimplement _Quantity.__iter__ to return an iterator.
  * Add http://www.dimensionalanalysis.org/ to README
  * Allow for user defined units formatting.
  * Quantity, Unit, and Measurement are now accessible as top-level classes
    (pint.Quantity, pint.Unit, pint.Measurement) and can be
    instantiated without explicitly creating a UnitRegistry
  * Contexts don't need to have a name anymore
  * "Board feet" unit added top default registry
  * New syntax to add aliases to already existing definitions
  * copy.deepcopy() can now copy a UnitRegistry
  * Enabled many tests in test_issues when numpy is not available
  * Document the '_' symbols found in the definitions files
  * Improve OffsetUnitCalculusError message.
  * Atomic units for intensity and electric field.
  * Allow np arrays of scalar quantities to be plotted.
  * Updated gravitational constant to CODATA 2018.
  * Update to new SI definition and CODATA 2018.
  * Allow units with aliases but no symbol.
  * Fix definition of dimensionless units and constants.
  * Added RKM unit (used in textile industry).
  * Remove __name__ method definition in BaseRegistry.
  * Added t_force, short_ton_force and long_ton_force.
  * Fixed error message of DefinitionSyntaxError
  * Expanded the potential use of Decimal type to parsing.
  * Fixed gram name to allow translation by babel.
  * Default group should only have orphan units.
  * Added custom constructors from_sequence and from_list.
  * Add quantity formatting with ndarray.
  * Add pint-pandas notebook docs
  * Use µ as default abbreviation for micro.

OBS-URL: https://build.opensuse.org/request/show/768793
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Pint?expand=0&rev=6
2020-01-30 15:50:20 +00:00
5cc9edefcd Accepting request 690080 from devel:languages:python:numeric
- Fix funcsigs dependency
- Remove unused devel package dep
- Remove test bconds

- Update to version 0.9:
  - Add support for registering with matplotlib’s unit handling
    (gh#hgrecco/pint#317, thanks dopplershift)
  - Add converters for matplotlib’s unit support.
    (gh#hgrecco/pint#317, thanks Ryan May)
  - Fix unwanted side effects in auto dimensionality reduction.
    (gh#hgrecco/pint#516, thanks Ben Loer)
  - Allow dimensionality check for non Quantity arguments.
  - Make Quantity and UnitContainer objects hashable.
    (gh#hgrecco/pint#286, thanks Nevada Sanchez)
  - Fix unit tests errors with numpy >=1.13.
    (gh#hgrecco/pint#577, thanks cpascual)
  - Avoid error in in-place exponentiation with numpy > 1.11.
    (gh#hgrecco/pint#577, thanks cpascual)
  - fix compatible units in context. (thanks enrico)
  - Added warning for unsupported ufunc. (gh#hgrecco/pint#626,
    thanks kanhua)
  - Improve IPython pretty printers. (gh#hgrecco/pint#590, thanks
    tecki)
  - Drop Support for Python 2.6, 3.0, 3.1 and 3.2.
    (gh#hgrecco/pint#567)
  - Prepare for deprecation announced in Python 3.7
    (gh#hgrecco/pint#747, thanks Simon Willison)
  - Added several new units and Systems (gh#hgrecco/pint#749,
    gh#hgrecco/pint#737)
  - Started experimental pandas support (gh#hgrecco/pint#746 and

OBS-URL: https://build.opensuse.org/request/show/690080
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=4
2019-04-01 10:39:16 +00:00
2da6620148 Accepting request 518563 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/518563
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=3
2017-08-29 09:43:58 +00:00
e9b54e8f3c Accepting request 400231 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/400231
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=2
2016-06-07 21:49:21 +00:00
71c9042af1 Accepting request 389379 from devel:languages:python
New package

OBS-URL: https://build.opensuse.org/request/show/389379
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pint?expand=0&rev=1
2016-04-28 14:53:43 +00:00