2e84f86
# To include the license file, we may either include the LICENSE file as a
2e84f86
# separate source, or (simpler) package directly from a GitHub snapshot
2e84f86
# tarball instead of from the PyPI release.
2e84f86
%global forgeurl https://github.com/Zsailer/pandas_flavor
2e84f86
%global commit 4cc6cbcc20028bf51debc181bbc51cb7c864767c
10328a8
2e84f86
Name:           python-pandas-flavor
2e84f86
Version:        0.2.0
2e84f86
%forgemeta
71548ed
Release:        2%{?dist}
2e84f86
Summary:        The easy way to write your own flavor of Pandas
2e84f86
2e84f86
License:        MIT
2e84f86
URL:            %{forgeurl}
2e84f86
Source0:        %{forgesource}
2e84f86
2e84f86
BuildArch:      noarch
2e84f86
2e84f86
BuildRequires:  python3-devel
2e84f86
2e84f86
%global common_description %{expand:
10328a8
The easy way to write your own flavor of Pandas
2e84f86
-----------------------------------------------
10328a8
10328a8
Pandas 0.23 added a (simple) API for registering accessors with Pandas objects.
10328a8
2e84f86
Pandas-flavor extends Pandas’ extension API by:
10328a8
2e84f86
  1. adding support for registering methods as well.
2e84f86
  2. making each of these functions backwards compatible with older versions of
2e84f86
     Pandas.
10328a8
2e84f86
What does this mean?
2e84f86
--------------------
10328a8
2e84f86
It is now simpler to add custom functionality to Pandas DataFrames and Series.
10328a8
2e84f86
Import this package. Write a simple python function. Register the function
2e84f86
using one of the following decorators.
10328a8
2e84f86
Why?
2e84f86
----
10328a8
2e84f86
Pandas is super handy. Its general purpose is to be a "flexible and powerful
2e84f86
data analysis/manipulation library".
10328a8
2e84f86
Pandas Flavor allows you add functionality that tailors Pandas to specific
2e84f86
fields or use cases.
10328a8
2e84f86
Maybe you want to add new write methods to the Pandas DataFrame? Maybe you want
2e84f86
custom plot functionality? Maybe something else?}
10328a8
2e84f86
%description %{common_description}
2e84f86
2e84f86
%package -n python3-pandas_flavor
2e84f86
Summary:        %{summary}
2e84f86
2e84f86
%description -n python3-pandas_flavor %{common_description}
10328a8
2e84f86
%prep
2e84f86
%forgeautosetup
10328a8
2e84f86
%generate_buildrequires
2e84f86
%pyproject_buildrequires -r
10328a8
10328a8
%build
2e84f86
%pyproject_wheel
10328a8
10328a8
%install
2e84f86
%pyproject_install
2e84f86
%pyproject_save_files pandas_flavor
10328a8
2e84f86
%check
2e84f86
# Upstream provides no tests
2e84f86
%py3_check_import pandas_flavor
2e84f86
2e84f86
%files -n python3-pandas_flavor -f %{pyproject_files}
2e84f86
# pyproject-rpm-macros automatically finds LICENSE in dist-info
10328a8
%doc README.md
2e84f86
%doc docs/_images/example.png
10328a8
10328a8
%changelog
71548ed
* Sun Sep 12 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.0-2
71548ed
- Drop BR on pyproject-rpm-macros, now implied by python3-devel
71548ed
2e84f86
* Fri Sep 10 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.0-1
2e84f86
- Update to 0.2.0 and use new Python guidelines (close RHBZ#2003246)
2e84f86
d3f4199
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-7
d3f4199
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
d3f4199
112ca87
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.1.2-6
112ca87
- Rebuilt for Python 3.10
112ca87
b4699b4
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-5
b4699b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
b4699b4
6016a5d
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-4
6016a5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6016a5d
bf2ffe3
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.1.2-3
bf2ffe3
- Rebuilt for Python 3.9
bf2ffe3
cfeaa5c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-2
cfeaa5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
cfeaa5c
10328a8
* Mon Nov 11 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.1.2-1
10328a8
- Update as per review comments
10328a8
- https://bugzilla.redhat.com/show_bug.cgi?id=1770496
10328a8
- Comment out egg info removal
10328a8
- use -p in cp to preserve time stamp
10328a8
10328a8
* Sat Nov 09 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.1.2-1
10328a8
- Initial build