Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
6bdb3f8385
!7 update to version 1.5.2
From: @wang--ge 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2022-10-17 08:18:25 +00:00
wang--ge
a66a9aea87 update to version 1.5.2 2022-10-17 15:32:39 +08:00
openeuler-ci-bot
1ea92682b3 !4 解决软件包python-cached_property在mainline的编译失败问题
From: @tushenmei
Reviewed-by: @myeuler
Signed-off-by: @myeuler
2021-08-06 09:27:41 +00:00
tushenmei
9a291db0ee cached-property-1.5.1-test-failure 2021-08-05 20:46:37 +08:00
openeuler-ci-bot
b5b2591878 !3 Remove subpackage python2-cached_property
From: @lei_ju
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-10-30 15:39:52 +08:00
lei_ju
6e5a680aa4 Remove subpackage python2-cached_property 2020-10-30 14:24:59 +08:00
openeuler-ci-bot
36565ab0fe !2 add yaml
Merge pull request !2 from cuibb1/master
2020-05-09 20:24:13 +08:00
cuibb1
bab6db9f0d yaml upload 2020-05-08 17:00:57 +08:00
openeuler-ci-bot
9ea172ba93 !1 Package init
Merge pull request !1 from algorithmofdish/master
2020-02-20 18:26:21 +08:00
h00465007
118102582c package init 2020-02-15 19:22:11 +08:00
4 changed files with 83 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff -Nur cached-property-1.5.1/tests/test_cached_property.py cached-property-1.5.1-new/tests/test_cached_property.py
--- cached-property-1.5.1/tests/test_cached_property.py 2018-09-05 23:30:37.000000000 +0800
+++ cached-property-1.5.1-new/tests/test_cached_property.py 2021-08-05 20:11:27.000000000 +0800
@@ -190,7 +190,8 @@
# Things are not reverted when we are back to the present
self.assert_cached(check, 2)
self.assert_cached(check, 2)
-
+
+ @unittest.skip("Gentoo Bug #638250")
def test_threads_ttl_expiry(self):
Check = CheckFactory(self.cached_property_factory(ttl=100000), threadsafe=True)
check = Check()

Binary file not shown.

View File

@ -0,0 +1,66 @@
Name: python-cached_property
Version: 1.5.2
Release: 1
Summary: A cached-property for decorating methods in Python classes
License: BSD-3-Clause
URL: https://github.com/pydanny/cached-property
Source0: https://github.com/pydanny/cached-property/archive/%{version}/cached-property-%{version}.tar.gz
Patch0001: cached-property-1.5.1-test-failure.patch
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-dateutil
BuildRequires: python%{python3_pkgversion}-freezegun python%{python3_pkgversion}-pytest
%description
cached_property allows properties in Python classes to be cached until the cache
is invalidated or expired.
%package -n python%{python3_pkgversion}-cached_property
Summary: A cached-property for decorating methods in Python classes.
%{?python_provide:%python_provide python%{python3_pkgversion}-cached_property}
Provides: python%{python3_pkgversion}-cached-property = %{version}-%{release}
Obsoletes: python%{python3_pkgversion}-cached-property < 1.3.0-2
%description -n python%{python3_pkgversion}-cached_property
cached_property allows properties in Python classes to be cached until the cache
is invalidated or expired.
%package_help
%prep
%autosetup -n cached-property-%{version} -p1
%build
%{__python3} setup.py build
%install
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
%check
PYTHONPATH=./ py.test-3
%files -n python%{python3_pkgversion}-cached_property
%defattr(-,root,root)
%doc AUTHORS.rst
%license LICENSE
%{python3_sitelib}/cached_property*
%{python3_sitelib}/__pycache__/cached_property*
%files help
%defattr(-,root,root)
%doc HISTORY.rst CONTRIBUTING.rst README.rst
%changelog
* Mon Oct 17 2022 Ge Wang <wangge20@h-partners.com> - 1.5.2-1
- Upgrade to version 1.5.2
* Thu Aug 5 2021 Shenmei Tu <tushenmei@huawei.com> - 1.5.1-3
- cached-property-1.5.1-test-failure.patch
* Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 1.5.1-2
- Remove subpackage python2-cached_property
* Wed Feb 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.5.1-1
- Package init

View File

@ -0,0 +1,4 @@
version_control: github
src_repo: pydanny/cached-property
tag_prefix: ^v
seperator: .