public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-interface-meta] rawhide: Update to 2.0.1 rhbz#2460501
@ 2026-11-07 21:59 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-11-07 21:59 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-interface-meta
Branch : rawhide
Commit : b2d2d6ae1467c3b68874bae97baca3c283d0cb76
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2026-11-07T18:59:43-03:00
Stats : +14/-6 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-interface-meta/c/b2d2d6ae1467c3b68874bae97baca3c283d0cb76?branch=rawhide
Log:
Update to 2.0.1 rhbz#2460501
---
diff --git a/.gitignore b/.gitignore
index aac4fc5..bdf5b95 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/python-interface-meta-1.3.0.tar.gz
+/interface_meta-2.0.1.tar.gz
diff --git a/python-interface-meta.spec b/python-interface-meta.spec
index bb9a1f1..e4ee3fb 100644
--- a/python-interface-meta.spec
+++ b/python-interface-meta.spec
@@ -29,13 +29,13 @@ the parent API. As such, this library boasts the following features:
}
Name: python-interface-meta
-Version: 1.3.0
+Version: 2.0.1
Release: %{autorelease}
Summary: Provides a convenient way to expose an extensible API
License: MIT
URL: https://github.com/matthewwardrop/interface_meta
-Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+Source: %{url}/archive/v%{version}/interface_meta-%{version}.tar.gz
BuildArch: noarch
@@ -50,13 +50,20 @@ BuildRequires: python3-pytest
%prep
%autosetup -n interface_meta-%{version}
-# upstream sets this to 0.0.0
-sed -i "s/^version =.*/version = \"%{version}\"/" pyproject.toml
+# tarball has no .git; replace VCS-derived version with a static one
+sed -i 's/^dynamic = \["version"\]/version = "%{version}"/' pyproject.toml
+sed -i '/^\[tool.hatch\.version\]/,+1d' pyproject.toml
+sed -i '/^\[tool.hatch\.build\.hooks\.vcs\]/,+1d' pyproject.toml
+# normally generated by the hatch-vcs hook
+cat > interface_meta/_version.py <<EOF
+__version__ = "%{version}"
+version = "%{version}"
+version_tuple = ("%{version}",)
+EOF
%generate_buildrequires
%pyproject_buildrequires
-
%build
%pyproject_wheel
diff --git a/sources b/sources
index fe43cb5..b18fa3b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (python-interface-meta-1.3.0.tar.gz) = 2f7df7b0332893ddb591e143d913b8a60aaf1defd1b92336d543a6f5f0cfec65179efb03f170bde2f8a3baa7788d0f2cd3b1ee05f284c199230f18a55d4c2016
+SHA512 (interface_meta-2.0.1.tar.gz) = 9537816f170db07a991093b50582e76dadfe31bc0429baadae64d80ba22d6ce7aecf356ca17866ecf82dc3085febf18e2d0aed833f63967359ee7d143dc1ecef
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-07 21:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-07 21:59 [rpms/python-interface-meta] rawhide: Update to 2.0.1 rhbz#2460501 Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox