From 0dedd2ac4ee969caae9b6546bb1c6295c805c76f Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sun, 15 Mar 2026 04:35:55 -0700 Subject: [PATCH] add: dist-meta (#10536) (#10577) (cherry picked from commit 3dc89868eb9003237a79ccbd54bbc5a9b344f836) Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/langs/python/dist-meta/anda.hcl | 6 +++ anda/langs/python/dist-meta/dist-meta.spec | 45 ++++++++++++++++++++++ anda/langs/python/dist-meta/update.rhai | 1 + 3 files changed, 52 insertions(+) create mode 100644 anda/langs/python/dist-meta/anda.hcl create mode 100644 anda/langs/python/dist-meta/dist-meta.spec create mode 100644 anda/langs/python/dist-meta/update.rhai diff --git a/anda/langs/python/dist-meta/anda.hcl b/anda/langs/python/dist-meta/anda.hcl new file mode 100644 index 0000000000..d7d236f9df --- /dev/null +++ b/anda/langs/python/dist-meta/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "dist-meta.spec" + } +} diff --git a/anda/langs/python/dist-meta/dist-meta.spec b/anda/langs/python/dist-meta/dist-meta.spec new file mode 100644 index 0000000000..749cc6d049 --- /dev/null +++ b/anda/langs/python/dist-meta/dist-meta.spec @@ -0,0 +1,45 @@ +%global pypi_name dist-meta +%global _desc Parse and create Python distribution metadata. + +Name: python-%{pypi_name} +Version: 0.9.0 +Release: 1%?dist +Summary: Parse and create Python distribution metadata +License: MIT +URL: https://dist-meta.readthedocs.io/en/latest/ +Source0: https://github.com/repo-helper/dist-meta/archive/refs/tags/v%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-hatch-requirements-txt + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files dist_meta + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.rst +%license LICENSE + +%changelog +* Sat Mar 14 2026 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/dist-meta/update.rhai b/anda/langs/python/dist-meta/update.rhai new file mode 100644 index 0000000000..4835a11018 --- /dev/null +++ b/anda/langs/python/dist-meta/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("dist-meta"));