forked from pool/python-bidict
Accepting request 679991 from home:jayvdb:noflake8
- Remove unused build dependencies - Add export LANG=en_US.UTF-8 - Add docs/*.rst to %doc - Update to v0.18.0 OBS-URL: https://build.opensuse.org/request/show/679991 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bidict?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
9304aac2a9
commit
80497f1f5c
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a6477740bb73b925c1814d0f0d6deca1b74aa19f2d31f252d71f14acc53b187d
|
||||
size 266275
|
||||
3
bidict-0.18.0.tar.gz
Normal file
3
bidict-0.18.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4d10630fd5d86b7c165387473c5180e7fca7635f12e24b1f426aac259c72c81a
|
||||
size 382114
|
||||
@@ -1,3 +1,40 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 10 11:49:33 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Remove unused build dependencies
|
||||
- Add export LANG=en_US.UTF-8
|
||||
- Add docs/*.rst to %doc
|
||||
- Update to v0.18.0
|
||||
+ Rename BidirectionalMapping.inv to BidirectionalMapping.inverse
|
||||
and make BidictBase.inv an alias.
|
||||
+ BidirectionalMapping.__subclasshook__ now requires an ``inverse``
|
||||
attribute rather than an inv attribute for a class to qualify as a
|
||||
virtual subclass.
|
||||
This breaking change is expected to affect few if any users.
|
||||
+ Add Python 2/3-compatible compat.collections_abc alias.
|
||||
+ Drop support for Python 3.4
|
||||
- from v0.17.5
|
||||
+ Remove the ``__delegate__`` instance attribute added in the previous release.
|
||||
Instead of checking ``self.__delegate__`` and delegating accordingly
|
||||
each time a possibly-delegating method is called,
|
||||
revert back to using "delegated-to-fwdm" mixin classes
|
||||
now found in bidict._delegating_mixins, and resurrect a mutable bidict
|
||||
parent class that omits the mixins
|
||||
+ Rename __repr_delegate__ to BidictBase._repr_delegate
|
||||
- Update to v0.17.4
|
||||
+ `~bidict.OrderedBidict` optimizations and code improvements.
|
||||
+ Refactor proxied- (i.e. delegated-) to-_fwdm logic
|
||||
for better composability and interoperability.
|
||||
+ Change ``__repr_delegate__`` to simply take a type like dict or list
|
||||
+ Upgrade to latest major release of sortedcontainers
|
||||
+ bidict.compat.{view,iter}{keys,values,items} on Python 2
|
||||
no longer assumes the target object implements these methods,
|
||||
as they're not actually part of the collections.abc.Mapping interface,
|
||||
and provides fallback implementations when the methods are unavailable.
|
||||
- Update to v0.17.3
|
||||
+ Improve packaging by adding a pyproject.toml
|
||||
+ Drop pytest-runner and support for running tests via setup.py test
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:46:05 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-bidict
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-bidict
|
||||
Version: 0.17.2
|
||||
Version: 0.18.0
|
||||
Release: 0
|
||||
Summary: Bidirectional map implementation for Python
|
||||
License: MPL-2.0
|
||||
@@ -30,15 +30,9 @@ BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module coverage >= 4.3.4}
|
||||
BuildRequires: %{python_module flake8 >= 3.2.1}
|
||||
BuildRequires: %{python_module hypothesis >= 3.6.1}
|
||||
BuildRequires: %{python_module py >= 1.4.31}
|
||||
BuildRequires: %{python_module pydocstyle >= 1.1.1}
|
||||
BuildRequires: %{python_module pytest >= 3.0.7}
|
||||
BuildRequires: %{python_module pytest-benchmark >= 3.1.0a1}
|
||||
BuildRequires: %{python_module pytest-cov >= 2.4.0}
|
||||
BuildRequires: %{python_module pytest-runner}
|
||||
BuildRequires: %{python_module sortedcollections >= 0.4.2}
|
||||
BuildRequires: %{python_module sortedcontainers >= 1.5.5}
|
||||
# /SECTION
|
||||
@@ -53,17 +47,20 @@ Bidirectional map implementation and related functionality.
|
||||
%setup -q -n bidict-%{version}
|
||||
|
||||
%build
|
||||
export LANG=en_US.UTF-8
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
export LANG=en_US.UTF-8
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
%python_expand py.test-%{$python_bin_suffix}
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGELOG.rst README.rst
|
||||
%doc CHANGELOG.rst README.rst docs/*.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user