public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-lazr-config] epel10: Update to 3.0 (rhbz#1697350)
@ 2026-11-24 20:45 Michel Lind
0 siblings, 0 replies; only message in thread
From: Michel Lind @ 2026-11-24 20:45 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-lazr-config
Branch : epel10
Commit : 3884ee3d869dd5f1a7f11dae2c8676fc65041a5e
Author : Michel Lind <salimma@fedoraproject.org>
Date : 2023-09-13T12:48:00-05:00
Stats : +34/-83 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-lazr-config/c/3884ee3d869dd5f1a7f11dae2c8676fc65041a5e?branch=epel10
Log:
Update to 3.0 (rhbz#1697350)
- Use SPDX license identifier
- Update to the latest Python packaging guidelines
Signed-off-by: Michel Lind <salimma@fedoraproject.org>
---
diff --git a/.gitignore b/.gitignore
index 35948c8..f053a55 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/lazr.config-2.1.tar.gz
+/lazr.config-3.0.tar.gz
diff --git a/python-lazr-config.spec b/python-lazr-config.spec
index 9b41af1..b24c5ff 100644
--- a/python-lazr-config.spec
+++ b/python-lazr-config.spec
@@ -1,108 +1,58 @@
-%global srcname lazr.config
-%global pkgname lazr-config
-%global summary Create configuration schemas, and process and validate configurations
-%global _description \
-The LAZR config system is typically used to manage process configuration. \
-Process configuration is for saying how things change when we run systems on \
-different machines, or under different circumstances. \
-\
-This system uses ini-like file format of section, keys, and values. The config \
-file supports inheritance to minimize duplication of information across files. \
-The format supports schema validation.
-
-Name: python-%{pkgname}
-Version: 2.1
+Name: python-lazr-config
+Version: 3.0
Release: %autorelease
-Summary: %{summary}
+Summary: Create configuration schemas, and process and validate configurations.
-License: LGPLv3
+License: LGPL-3.0-only
URL: https://launchpad.net/lazr.config
-Source0: https://files.pythonhosted.org/packages/source/l/%{srcname}/%{srcname}-%{version}.tar.gz
+Source: %{pypi_source lazr.config}
+
BuildArch: noarch
+BuildRequires: python3-devel
-# Python3
-BuildRequires: python%{python3_pkgversion}-devel
-BuildRequires: python%{python3_pkgversion}-setuptools
-BuildRequires: python%{python3_pkgversion}-zope-interface
-BuildRequires: python%{python3_pkgversion}-nose
-BuildRequires: python%{python3_pkgversion}-lazr-delegates
-%if 0%{?with_python3_other}
-BuildRequires: python%{python3_other_pkgversion}-devel
-BuildRequires: python%{python3_other_pkgversion}-setuptools
-BuildRequires: python%{python3_other_pkgversion}-zope-interface
-BuildRequires: python%{python3_other_pkgversion}-nose
-BuildRequires: python%{python3_other_pkgversion}-lazr-delegates
-%endif
-
-%description %{_description}
-
-%package -n python%{python3_pkgversion}-%{pkgname}
-Summary: %{summary}
-%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
-Requires: python%{python3_pkgversion}-setuptools
-Requires: python%{python3_pkgversion}-zope-interface
-Requires: python%{python3_pkgversion}-lazr-delegates
-%description -n python%{python3_pkgversion}-%{pkgname} %{_description}
+%global _description %{expand:
+The LAZR config system is typically used to manage process configuration.
+Process configuration is for saying how things change when we run systems on
+different machines, or under different circumstances.
+
+This system uses ini-like file format of section, keys, and values. The config
+file supports inheritance to minimize duplication of information across files.
+The format supports schema validation.}
-%if 0%{?with_python3_other}
-%package -n python%{python3_other_pkgversion}-%{pkgname}
+%description %_description
+
+%package -n python3-lazr-config
Summary: %{summary}
-%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{pkgname}}
-Requires: python%{python3_other_pkgversion}-setuptools
-Requires: python%{python3_other_pkgversion}-zope-interface
-Requires: python%{python3_other_pkgversion}-lazr-delegates
-%description -n python%{python3_other_pkgversion}-%{pkgname} %{_description}
-%endif
+%description -n python3-lazr-config %_description
%prep
-%autosetup -n %{srcname}-%{version}
+%autosetup -p1 -n lazr.config-%{version}
+
-sed -i -e '/^with-coverage/d;/^pdb /d;/^cover-package/d' setup.cfg
+%generate_buildrequires
+%pyproject_buildrequires -t
%build
-%py3_build
-%if 0%{?with_python3_other}
-%py3_other_build
-%endif
+%pyproject_wheel
%install
-%py3_install
-%if 0%{?with_python3_other}
-%py3_other_install
-%endif
+%pyproject_install
+%pyproject_save_files lazr
%check
-# In Python3, namespace packages don't have an __init__.py file in the parent
-# dir. Keeping it would shadow the lazr.delegates module.
-rm lazr/__init__.py*
-sed -i -e 's/^\(\s*namespace_packages=.*\)/#\1/' setup.py
-%{__python3} setup.py nosetests
-%if 0%{?with_python3_other}
-%{__python3_other} setup.py nosetests
-%endif
-
-%files -n python%{python3_pkgversion}-%{pkgname}
-%license COPYING.txt
-%doc README.rst HACKING.rst
-%{python3_sitelib}/lazr/
-%{python3_sitelib}/%{srcname}-%{version}*-py%{python3_version}.egg-info/
-%{python3_sitelib}/%{srcname}-%{version}*-py%{python3_version}-nspkg.pth
-
-%if 0%{?with_python3_other}
-%files -n python%{python3_other_pkgversion}-%{pkgname}
-%license COPYING.txt
-%doc README.rst HACKING.rst
-%{python3_other_sitelib}/lazr/
-%{python3_other_sitelib}/%{srcname}-%{version}*-py%{python3_other_version}.egg-info/
-%{python3_other_sitelib}/%{srcname}-%{version}*-py%{python3_other_version}-nspkg.pth
-%endif
+%pyproject_check_import
+%tox
+
+
+%files -n python3-lazr-config -f %{pyproject_files}
+%{python3_sitelib}/lazr.config-%{version}-py%{python3_version}-nspkg.pth
%changelog
diff --git a/sources b/sources
index b10fae8..c811f54 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (lazr.config-2.1.tar.gz) = 12814738d60c13b800b438fef5900481f1a1c52d9b3b6a2175dc4a5890969e1de35d1dd21d43d391202def229ee9e52a706cfc1220df88afb74c9a6169efb900
+SHA512 (lazr.config-3.0.tar.gz) = 15f61ca9e53e0677e228365318b99c1a65f674bf82dc1f8210335f93f4c74da2e9b09d8f8650506a133db85c45bfba12ff28ad3bc7c56edcf8c6e19c152f13f9
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-24 20:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 20:45 [rpms/python-lazr-config] epel10: Update to 3.0 (rhbz#1697350) Michel Lind
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox