## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 6; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # We must package from a GitHub archive to get the tests, but upstream does not # tag releases. We must therefore package from a snapshot corresponding to the # PyPI release. %global commit f9308140d559ef1cb80587dedf6a7e32ca1f0b67 %global snapdate 20220417 Name: python-pandas-flavor Version: 0.3.0^%{snapdate}git%(echo '%{commit}' | cut -b -7) Release: %autorelease Summary: The easy way to write your own flavor of Pandas # SPDX License: MIT URL: https://github.com/Zsailer/pandas_flavor Source0: %{url}/archive/%{commit}/pandas_flavor-%{commit}.tar.gz # Update lazy-loader dependency to ≥0.1 # https://github.com/Zsailer/pandas_flavor/pull/25 Patch: %{url}/pull/25.patch BuildArch: noarch BuildRequires: python3-devel # This is easier than running the tests with the unittest module. BuildRequires: python3dist(pytest) %global common_description %{expand: \ The easy way to write your own flavor of Pandas ----------------------------------------------- Pandas 0.23 added a (simple) API for registering accessors with Pandas objects. Pandas-flavor extends Pandas’ extension API by: 1. adding support for registering methods as well. 2. making each of these functions backwards compatible with older versions of Pandas. What does this mean? -------------------- It is now simpler to add custom functionality to Pandas DataFrames and Series. Import this package. Write a simple python function. Register the function using one of the following decorators. Why? ---- Pandas is super handy. Its general purpose is to be a "flexible and powerful data analysis/manipulation library". Pandas Flavor allows you add functionality that tailors Pandas to specific fields or use cases. Maybe you want to add new write methods to the Pandas DataFrame? Maybe you want custom plot functionality? Maybe something else?} %description %{common_description} %package -n python3-pandas_flavor Summary: %{summary} %description -n python3-pandas_flavor %{common_description} %prep %autosetup -n pandas_flavor-%{commit} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files pandas_flavor %check %pytest # The tests are minimal enough that we do an import “smoke test” as well. %pyproject_check_import %files -n python3-pandas_flavor -f %{pyproject_files} # pyproject_files handles LICENSE; verify with “rpm -qL -p …” %doc README.md %doc docs/_images/example.png %changelog * Sat Nov 26 2022 Benjamin A. Beasley 0.3.0^20220417gitf930814-6 - Confirm License is SPDX MIT * Sat Oct 22 2022 Benjamin A. Beasley 0.3.0^20220417gitf930814-5 - Allow and require lazy-loader ≥0.1 * Tue Aug 30 2022 Benjamin A. Beasley 0.3.0^20220417gitf930814-4 - Allow lazy-loader 0.1rc3 * Fri Jul 22 2022 Fedora Release Engineering 0.3.0^20220417gitf930814-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 21 2022 Python Maint 0.3.0^20220417gitf930814-2 - Rebuilt for Python 3.11 * Thu Apr 21 2022 Benjamin A. Beasley 0.3.0^20220417gitf930814-1 - Update to 0.3.0 (close RHBZ#2076089) * Wed Apr 20 2022 Benjamin A. Beasley 0.2.0^20191128git4cc6cbc-1 - Drop “forge” macros to switch to “modern” snapshot versioning * Fri Jan 21 2022 Fedora Release Engineering - 0.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Sep 12 2021 Benjamin A. Beasley - 0.2.0-2 - Drop BR on pyproject-rpm-macros, now implied by python3-devel * Fri Sep 10 2021 Benjamin A. Beasley - 0.2.0-1 - Update to 0.2.0 and use new Python guidelines (close RHBZ#2003246) * Fri Jul 23 2021 Fedora Release Engineering - 0.1.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.1.2-6 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.1.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.1.2-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Nov 11 2019 Ankur Sinha - 0.1.2-1 - Update as per review comments - https://bugzilla.redhat.com/show_bug.cgi?id=1770496 - Comment out egg info removal - use -p in cp to preserve time stamp * Sat Nov 09 2019 Ankur Sinha - 0.1.2-1 - Initial build