Skip to content

Commit ce11436

Browse files
Fix: setuptools-scm lookup error for python-lazy-object-proxy (microsoft#14221)
1 parent 9436741 commit ce11436

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

SPECS-EXTENDED/python-lazy-object-proxy/python-lazy-object-proxy.spec

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
Name: python-%{srcname}
55
Version: 1.10.0
6-
Release: 6%{?dist}
6+
Release: 7%{?dist}
77
Summary: %{sum}
88

99
License: BSD-2-Clause
@@ -39,18 +39,21 @@ A fast and thorough lazy object proxy.
3939

4040

4141
%prep
42-
%autosetup -n python-%{srcname}-%{version} -p0
42+
%autosetup -p1 -n python-%{srcname}-%{version}
4343

4444
#%%generate_buildrequires
4545
#%%pyproject_buildrequires -t
4646

4747
%build
48+
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
4849
%pyproject_wheel
4950

5051
%install
52+
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
5153
%pyproject_install
5254

5355
%check
56+
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
5457
%tox
5558

5659
# Note that there is no %%files section for the unversioned python module if we are building for several python runtimes
@@ -62,8 +65,11 @@ A fast and thorough lazy object proxy.
6265
%exclude %{python3_sitearch}/lazy_object_proxy/cext.c
6366

6467
%changelog
68+
* Thu Jul 03 2025 Akhila Guruju <[email protected]> - 1.10.0-7
69+
- Fix setuptools-scm lookup error
70+
6571
* Fri Mar 14 2025 Akhila Guruju <[email protected]> - 1.10.0-6
66-
- Initial Azure Linux import from Fedora 41 (license: MIT).
72+
- Initial Azure Linux import from Fedora 41 (license: MIT).
6773
- License verified
6874

6975
* Fri Jul 19 2024 Fedora Release Engineering <[email protected]> - 1.10.0-5

0 commit comments

Comments
 (0)