From 9047cc995ced3352b9b614854229f5237cdfafe0 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 14 Mar 2026 18:36:20 -0700 Subject: [PATCH] add: deprecation-alias (#10527) (#10535) (cherry picked from commit 9dd01366482f92ce11911af3ee2f257125c62f74) Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/langs/python/deprecation-alias/anda.hcl | 6 +++ .../deprecation-alias/deprecation-alias.spec | 48 +++++++++++++++++++ .../python/deprecation-alias/update.rhai | 1 + 3 files changed, 55 insertions(+) create mode 100644 anda/langs/python/deprecation-alias/anda.hcl create mode 100644 anda/langs/python/deprecation-alias/deprecation-alias.spec create mode 100644 anda/langs/python/deprecation-alias/update.rhai diff --git a/anda/langs/python/deprecation-alias/anda.hcl b/anda/langs/python/deprecation-alias/anda.hcl new file mode 100644 index 0000000000..f3d32200b3 --- /dev/null +++ b/anda/langs/python/deprecation-alias/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "deprecation-alias.spec" + } +} diff --git a/anda/langs/python/deprecation-alias/deprecation-alias.spec b/anda/langs/python/deprecation-alias/deprecation-alias.spec new file mode 100644 index 0000000000..2941427117 --- /dev/null +++ b/anda/langs/python/deprecation-alias/deprecation-alias.spec @@ -0,0 +1,48 @@ +%global pypi_name deprecation-alias +%global _desc A wrapper around 'deprecation' providing support for deprecated aliases. + +Name: python-%{pypi_name} +Version: 0.4.0 +Release: 1%?dist +Summary: A wrapper around 'deprecation' providing support for deprecated aliases +License: Apache-2.0 +URL: https://github.com/domdfcoding/deprecation-alias +Source0: %{url}/archive/refs/tags/v%{version}.tar.gz + +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-setuptools +BuildRequires: python3-hatchling +BuildRequires: python3-importlib-metadata +BuildRequires: python3-hatch-requirements-txt +BuildArch: noarch + +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 deprecation_alias + +%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/deprecation-alias/update.rhai b/anda/langs/python/deprecation-alias/update.rhai new file mode 100644 index 0000000000..f3d594eb8c --- /dev/null +++ b/anda/langs/python/deprecation-alias/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("deprecation-alias"));