Skip to content

Commit

Permalink
Fix PTest for python-repoze-lru (microsoft#9123)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel McIlvaney <[email protected]>
  • Loading branch information
sameluch and dmcilvaney authored May 17, 2024
1 parent a3c0281 commit 34daae6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions SPECS/python-repoze-lru/python-repoze-lru.spec
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
Expand All @@ -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

Expand All @@ -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.

Expand Down

0 comments on commit 34daae6

Please sign in to comment.