forked from microsoft/azurelinux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix PTest for python-repoze-lru (microsoft#9123)
Co-authored-by: Daniel McIlvaney <[email protected]>
- Loading branch information
1 parent
a3c0281
commit 34daae6
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} | ||
|
||
%define pkgname repoze-lru | ||
%define pypiname repoze.lru | ||
|
||
Summary: A tiny LRU cache implementation and decorator | ||
Name: python-%{pkgname} | ||
Version: 0.7 | ||
Release: 5%{?dist} | ||
Release: 6%{?dist} | ||
License: BSD | ||
URL: https://github.com/repoze/repoze.lru | ||
Vendor: Microsoft Corporation | ||
|
@@ -27,7 +25,7 @@ BuildRequires: python3-devel | |
BuildRequires: python3-xml | ||
BuildRequires: python3-setuptools | ||
Requires: python3 | ||
%if %{with check} | ||
%if 0%{?with_check} | ||
BuildRequires: python3-pip | ||
%endif | ||
|
||
|
@@ -44,15 +42,17 @@ python3 setup.py build | |
python3 setup.py install --root=%{buildroot} | ||
|
||
%check | ||
pip3 install tox | ||
LANG=en_US.UTF-8 tox -e py%{python3_version_nodots} | ||
python3 setup.py test | ||
|
||
%files -n python3-%{pkgname} | ||
%license LICENSE.txt | ||
%doc README.rst | ||
%{python3_sitelib}/* | ||
|
||
%changelog | ||
* Wed May 15 2024 Sam Meluch <[email protected]> - 0.7-6 | ||
- fix with_check macro, remove sitelibs redef to fix tests | ||
|
||
* Wed Apr 27 2022 Pawel Winogrodzki <[email protected]> - 0.7-5 | ||
- Updating source URL. | ||
|
||
|