public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-lesscpy] rawhide: Use pyproject macros
@ 2026-06-18 6:41 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-06-18 6:41 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-lesscpy
Branch : rawhide
Commit : 8d78fd9824732873afb095c8194fb8e6f7ef53da
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-06-10T10:33:18-04:00
Stats : +14/-22 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-lesscpy/c/8d78fd9824732873afb095c8194fb8e6f7ef53da?branch=rawhide
Log:
Use pyproject macros
---
diff --git a/python-lesscpy.spec b/python-lesscpy.spec
index 63ef0e7..49a258f 100644
--- a/python-lesscpy.spec
+++ b/python-lesscpy.spec
@@ -1,17 +1,13 @@
%global pypi_name lesscpy
-%if 0%{?rhel} > 7
-# Disable python2 build by default
-%endif
-
Name: python-%{pypi_name}
Version: 0.14.0
Release: 28%{?dist}
Summary: Lesscss compiler
License: MIT
-URL: https://github.com/robotis/lesscpy
-Source0: https://pypi.python.org/packages/source/l/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+URL: https://github.com/lesscpy/lesscpy
+Source: https://pypi.python.org/packages/source/l/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Patch: 0001-Remove-tabfile-support-as-PLY-removed-it-as-well.patch
# upstream fixes for deprecations
Patch: 0002-Update-supported-Python-versions.patch
@@ -33,13 +29,8 @@ supported (JavaScript evaluation).
%package -n python3-lesscpy
Summary: %summary
-Requires: python3-ply
BuildRequires: python3-devel
-BuildRequires: python3-setuptools
-BuildRequires: python3-ply
BuildRequires: python3-pytest
-BuildRequires: python3-pkg-resources
-%{?python_provide:%python_provide python3-lesscpy}
%description -n python3-lesscpy
A compiler written in python 3 for the lesscss language. For those of us not
@@ -50,33 +41,34 @@ supported (JavaScript evaluation).
%prep
%autosetup -p1 -n %{pypi_name}-%{version}
-%build
-%py3_build
+%generate_buildrequires
+%pyproject_buildrequires
-%install
+%build
+%pyproject_wheel
+
-%py3_install
-# link for backwards compatibility. consider removal in Fedora 30+
-ln -s ./lesscpy %{buildroot}/%{_bindir}/py3-lesscpy
+%install
+%pyproject_install
+%pyproject_save_files -l %{pypi_name}
%check
+%pyproject_check_import
%pytest
-%files -n python3-lesscpy
-%doc LICENSE
+%files -n python3-lesscpy -f %{pyproject_files}
+%doc README.rst
%{_bindir}/lesscpy
-%{_bindir}/py3-lesscpy
-%{python3_sitelib}/%{pypi_name}
-%{python3_sitelib}/%{pypi_name}*.egg-info
%changelog
* Tue Jun 09 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 0.14.0-28
- Fix deprecations
+- Use pyproject macros
* Wed Jun 03 2026 Python Maint <python-maint@redhat.com> - 0.14.0-27
- Rebuilt for Python 3.15
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-18 6:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-18 6:41 [rpms/python-lesscpy] rawhide: Use pyproject macros Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox