public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-lesscpy] rawhide: Use pyproject macros
Date: Thu, 18 Jun 2026 06:41:10 GMT [thread overview]
Message-ID: <178176487060.1.14223849702954240282.rpms-python-lesscpy-8d78fd982473@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-18 6:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178176487060.1.14223849702954240282.rpms-python-lesscpy-8d78fd982473@fedoraproject.org \
--to=yselkowi@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox