Compare commits
10 Commits
ef5c2e9345
...
6bdb3f8385
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6bdb3f8385 | ||
|
|
a66a9aea87 | ||
|
|
1ea92682b3 | ||
|
|
9a291db0ee | ||
|
|
b5b2591878 | ||
|
|
6e5a680aa4 | ||
|
|
36565ab0fe | ||
|
|
bab6db9f0d | ||
|
|
9ea172ba93 | ||
|
|
118102582c |
13
cached-property-1.5.1-test-failure.patch
Normal file
13
cached-property-1.5.1-test-failure.patch
Normal 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()
|
||||||
BIN
cached-property-1.5.2.tar.gz
Normal file
BIN
cached-property-1.5.2.tar.gz
Normal file
Binary file not shown.
66
python-cached_property.spec
Normal file
66
python-cached_property.spec
Normal 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
|
||||||
4
python-cached_property.yaml
Normal file
4
python-cached_property.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: pydanny/cached-property
|
||||||
|
tag_prefix: ^v
|
||||||
|
seperator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user