9e59485
%bcond_without tests
9e59485
9e59485
%global pypi_name missingno
9e59485
%global desc %{expand: \
0ca4596
Messy datasets? Missing values? missingno provides a small toolset
0ca4596
of flexible and easy-to-use missing data visualizations and utilities
0ca4596
that allows you to get a quick visual summary of the completeness
9e59485
(or lack thereof) of your dataset.}
9e59485
9e59485
Name:           python-%{pypi_name}
0ca4596
Version:        0.5.0
0ca4596
Release:        1%{?dist}
9e59485
Summary:        Missing data visualization module for Python
9e59485
License:        MIT
9e59485
URL:            https://github.com/ResidentMario/missingno
9e59485
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
9e59485
BuildArch:      noarch
9e59485
9e59485
%?python_enable_dependency_generator
9e59485
9e59485
%description
9e59485
%{desc}
9e59485
9e59485
%package -n python3-%{pypi_name}
9e59485
Summary:        %{summary}
9e59485
9e59485
BuildRequires: python3-devel
c35c894
BuildRequires: python3dist(setuptools)
e2089c6
BuildRequires: python3dist(seaborn)
c35c894
BuildRequires: python3dist(pytest)
c35c894
BuildRequires: python3dist(pytest-cov)
c35c894
BuildRequires: python3dist(pytest-mpl)
c35c894
BuildRequires: python3dist(numpy)
c35c894
BuildRequires: python3dist(scipy)
c35c894
BuildRequires: python3dist(pandas)
c35c894
BuildRequires: python3dist(geopandas)
e2089c6
BuildRequires: python3dist(geoplot)
c35c894
BuildRequires: python3dist(matplotlib)
9e59485
BuildRequires: quilt
9e59485
c35c894
Requires: python3dist(pandas)
c35c894
Requires: python3dist(geopandas)
c35c894
Requires: python3dist(geoplot)
9e59485
9e59485
%description -n python3-%{pypi_name}
9e59485
%{desc}
9e59485
9e59485
%prep
47fb5b8
%autosetup -n %{pypi_name}-%{version} -p1
9e59485
rm -rf %{pypi_name}.egg-info
9e59485
9e59485
find . -type f -name "*.py" -exec sed -i '/^#![  ]*\/usr\/bin\/env.*$/ d' {} ';'
9e59485
9e59485
%build
9e59485
%py3_build
9e59485
9e59485
%install
9e59485
%py3_install
9e59485
9e59485
%check
9e59485
mkdir -p ~/.config/matplotlib/
9e59485
echo "backend: Agg" > ~/.config/matplotlib/matplotlibrc
0ca4596
export PYTHONPATH=".:$RPM_BUILD_ROOT/%{python3_sitelib}"
0ca4596
# https://github.com/ResidentMario/missingno/blob/master/CONTRIBUTING.md#testing
0ca4596
# temporarily disabled: failing unreliably
0ca4596
#%%{pytest} --mpl-generate-path=tests/baseline tests/viz_tests.py
0ca4596
%{pytest} tests/util_tests.py
9e59485
9e59485
%files -n python3-%{pypi_name}
0ca4596
%license LICENSE.md
0ca4596
%doc README.md CONFIGURATION.md paper.bib paper.md
9e59485
%{python3_sitelib}/%{pypi_name}
49f841f
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
9e59485
9e59485
%changelog
0ca4596
* Tue Aug 17 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.5.0-1
0ca4596
- Update to latest release
0ca4596
- Replace nose with pytest
0ca4596
- remove uneeded patch
0ca4596
f8183dc
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-9
f8183dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
f8183dc
2826da9
* Thu Jun 17 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.4.2-8
2826da9
- Remove unused descartes dependencies
2826da9
84f309a
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.4.2-8
84f309a
- Rebuilt for Python 3.10
84f309a
47fb5b8
* Sun Mar 28 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.4.2-7
47fb5b8
- Patch to fix test setup with latest Pandas
47fb5b8
e913732
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-7
e913732
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e913732
c9d1520
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-6
c9d1520
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c9d1520
a048731
* Thu Jun 04 2020 Luis Bazan <lbazan@fedoraproject.org> - 0.4.2-5
a048731
- Rebuild
a048731
d4bdfdd
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.4.2-4
d4bdfdd
- Rebuilt for Python 3.9
d4bdfdd
3706f12
* Sun Mar 29 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.4.2-3
3706f12
- Exclude deprecated geoplot test
3706f12
- https://github.com/ResidentMario/missingno/commit/5b99ad5840f4fef8169e50b0e542eae9ea5cd00e
3706f12
- https://bugzilla.redhat.com/show_bug.cgi?id=1816251
3706f12
a92ffda
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-2
a92ffda
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a92ffda
7cad792
* Mon Dec 23 2019 Luis Bazan <lbazan@fedoraproject.org> - 0.4.2-1
7cad792
- New upstream version
7cad792
9474aea
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.0-4
9474aea
- Rebuilt for Python 3.8
9474aea
3b9c1d2
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-3
3b9c1d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3b9c1d2
9e59485
* Wed Mar 20 2019 Luis Bazan <lbazan@fedoraproject.org> - 0.4.0-2
9e59485
- Fix comment #1 on BZ #1655725
9e59485
9e59485
* Mon Dec 03 2018 Luis Bazan <lbazan@fedoraproject.org> - 0.4.0-1
9e59485
- Initial import