10328a8
%global pypi_name pandas_flavor
10328a8
10328a8
%global _description %{expand:
10328a8
The easy way to write your own flavor of Pandas
10328a8
10328a8
Pandas 0.23 added a (simple) API for registering accessors with Pandas objects.
10328a8
10328a8
Pandas-flavor extends Pandas extension API by:
10328a8
10328a8
- adding support for registering methods as well.
10328a8
- making each of these functions backwards compatible with older versions of
10328a8
  Pandas.
10328a8
}
10328a8
10328a8
Name:           python-pandas-flavor
10328a8
Version:        0.1.2
10328a8
Release:        1%{?dist}
10328a8
Summary:        The easy way to write your own Pandas flavor
10328a8
10328a8
License:        MIT
10328a8
URL:            https://pypi.org/pypi/%{pypi_name}
10328a8
Source0:        %pypi_source
10328a8
# Fetch the license from the github repository
10328a8
Source1:        https://raw.githubusercontent.com/Zsailer/pandas_flavor/master/LICENSE
10328a8
10328a8
BuildArch:      noarch
10328a8
10328a8
%description %_description
10328a8
10328a8
%package -n python3-%{pypi_name}
10328a8
Summary:        %{summary}
10328a8
BuildRequires:  python3-devel
10328a8
BuildRequires:  python3-setuptools
10328a8
10328a8
%{?python_provide:%python_provide python3-%{pypi_name}}
10328a8
10328a8
%description -n python3-%{pypi_name} %_description
10328a8
10328a8
%prep
10328a8
%autosetup -n %{pypi_name}-%{version}
10328a8
cp -pv %{SOURCE1} .
10328a8
10328a8
# rm -rf %%{pypi_name}.egg-info
10328a8
10328a8
# Comment out to remove /usr/bin/env shebangs
10328a8
# Can use something similar to correct/remove /usr/bin/python shebangs also
10328a8
# find . -type f -name "*.py" -exec sed -i '/^#![  ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';'
10328a8
10328a8
%build
10328a8
%py3_build
10328a8
10328a8
%install
10328a8
%py3_install
10328a8
10328a8
%files -n python3-%{pypi_name}
10328a8
%license LICENSE
10328a8
%doc README.md
10328a8
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
10328a8
%{python3_sitelib}/%{pypi_name}
10328a8
10328a8
%changelog
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