From 52b0e288cb64f17efa6b71c3638edb170e2b03cd Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Wed, 1 Oct 2025 22:10:43 -0700 Subject: [PATCH] add: dotty-dict (#6615) (#6662) --- anda/langs/python/dotty-dict/anda.hcl | 6 +++ anda/langs/python/dotty-dict/dotty-dict.spec | 53 ++++++++++++++++++++ anda/langs/python/dotty-dict/update.rhai | 1 + 3 files changed, 60 insertions(+) create mode 100644 anda/langs/python/dotty-dict/anda.hcl create mode 100644 anda/langs/python/dotty-dict/dotty-dict.spec create mode 100644 anda/langs/python/dotty-dict/update.rhai diff --git a/anda/langs/python/dotty-dict/anda.hcl b/anda/langs/python/dotty-dict/anda.hcl new file mode 100644 index 0000000000..ab551493a7 --- /dev/null +++ b/anda/langs/python/dotty-dict/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "dotty-dict.spec" + } +} diff --git a/anda/langs/python/dotty-dict/dotty-dict.spec b/anda/langs/python/dotty-dict/dotty-dict.spec new file mode 100644 index 0000000000..c0d0470825 --- /dev/null +++ b/anda/langs/python/dotty-dict/dotty-dict.spec @@ -0,0 +1,53 @@ +%global pypi_name dotty_dict +%global _desc Dictionary wrapper for quick access to deeply nested keys. + +Name: python-%{pypi_name} +Version: 1.3.1 +Release: 1%?dist +Summary: Dictionary wrapper for quick access to deeply nested keys +License: MIT +URL: https://github.com/pawelzny/dotty_dict +Source0: %url/archive/refs/tags/v%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-build +BuildRequires: python3-installer +BuildRequires: python3-wheel +BuildRequires: python3-poetry-core +BuildRequires: python3-pip + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +Provides: dotty_dict +Provides: dotty-dict +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n dotty_dict-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files dotty_dict + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.rst AUTHORS.rst CONTRIBUTING.rst +%license LICENSE +%ghost %python3_sitelib/__pycache__/*.cpython-*.pyc +%ghost %python3_sitelib/%{name}/subcommands/__pycache__/*.cpython-*.pyc +%python3_sitelib/dotty_dict-%version.dist-info/* + +%changelog +* Tue Sep 30 2025 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/dotty-dict/update.rhai b/anda/langs/python/dotty-dict/update.rhai new file mode 100644 index 0000000000..5e673da02e --- /dev/null +++ b/anda/langs/python/dotty-dict/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("pawelzny/dotty_dict"));