|
|
c8abc56 |
%bcond tests 1
|
|
|
f3d57e3 |
|
|
|
f3d57e3 |
%global _description %{expand:
|
|
|
f3d57e3 |
EarthPy makes it easier to plot and manipulate spatial data in Python.}
|
|
|
f3d57e3 |
|
|
|
1c201fa |
Name: python-earthpy
|
|
|
0e6a5e0 |
Version: 0.9.4
|
|
|
7c0e9da |
Release: 11%{?dist}
|
|
|
f3d57e3 |
Summary: A package built to support working with spatial data
|
|
|
f3d57e3 |
|
|
|
3bfbd23 |
License: BSD-3-Clause
|
|
|
f3d57e3 |
URL: https://github.com/earthlab/earthpy
|
|
|
1c201fa |
Source0: %{url}/archive/v%{version}/earthpy-%{version}.tar.gz
|
|
|
f3d57e3 |
|
|
|
f3d57e3 |
BuildArch: noarch
|
|
|
f3d57e3 |
|
|
|
750579d |
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
|
|
|
750579d |
ExcludeArch: %{ix86}
|
|
|
750579d |
|
|
|
f3d57e3 |
%description %_description
|
|
|
f3d57e3 |
|
|
|
1c201fa |
%package -n python3-earthpy
|
|
|
f3d57e3 |
Summary: %{summary}
|
|
|
f3d57e3 |
|
|
|
f3d57e3 |
BuildRequires: python3-devel
|
|
|
1c201fa |
|
|
|
1c201fa |
# See: https://github.com/earthlab/earthpy/blob/v0.9.4/dev-requirements.txt
|
|
|
f3d57e3 |
|
|
|
f3d57e3 |
#For tests
|
|
|
1c201fa |
BuildRequires: python3dist(pytest)
|
|
|
f3d57e3 |
|
|
|
1c201fa |
%description -n python3-earthpy %_description
|
|
|
f3d57e3 |
|
|
|
f3d57e3 |
%prep
|
|
|
1c201fa |
%autosetup -n earthpy-%{version}
|
|
|
1c201fa |
|
|
|
1c201fa |
%generate_buildrequires
|
|
|
1c201fa |
%pyproject_buildrequires
|
|
|
f3d57e3 |
|
|
|
f3d57e3 |
%build
|
|
|
1c201fa |
%pyproject_wheel
|
|
|
f3d57e3 |
|
|
|
f3d57e3 |
%install
|
|
|
1c201fa |
%pyproject_install
|
|
|
1c201fa |
%pyproject_save_files earthpy
|
|
|
f3d57e3 |
|
|
|
f3d57e3 |
%check
|
|
|
f3d57e3 |
%if %{with tests}
|
|
|
266feee |
# Several tests are failing
|
|
|
266feee |
# https://github.com/earthlab/earthpy/issues/844
|
|
|
266feee |
k="${k-}${k+ and }not test_crop_image_with_one_point_raises_error"
|
|
|
266feee |
k="${k-}${k+ and }not test_crop_image_with_1d_extent_raises_error"
|
|
|
266feee |
k="${k-}${k+ and }not test_hist_number_of_columns"
|
|
|
266feee |
k="${k-}${k+ and }not test_warning_mutli_point_clip_function"
|
|
|
266feee |
# Almost all test_io.py tests require network access.
|
|
|
266feee |
%pytest --ignore=earthpy/tests/test_io.py -k "${k-}"
|
|
|
f3d57e3 |
%endif
|
|
|
f3d57e3 |
|
|
|
1c201fa |
%files -n python3-earthpy -f %{pyproject_files}
|
|
|
220a005 |
%doc README.md paper.md examples/ CHANGELOG.rst
|
|
|
220a005 |
%doc CODE_OF_CONDUCT.rst CONTRIBUTING.rst CONTRIBUTORS.rst
|
|
|
f3d57e3 |
|
|
|
f3d57e3 |
%changelog
|
|
|
7c0e9da |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-11
|
|
|
7c0e9da |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
7c0e9da |
|
|
|
d67b406 |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-10
|
|
|
d67b406 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
d67b406 |
|
|
|
230ba27 |
* Wed Jul 19 2023 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.9.4-9
|
|
|
230ba27 |
- Rebuild for Python 3.12b4
|
|
|
230ba27 |
|
|
|
3bfbd23 |
* Tue Jun 27 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 0.9.4-8
|
|
|
3bfbd23 |
- Update License to SPDX
|
|
|
1c201fa |
- Port to pyproject-rpm-macros
|
|
|
e6c0b74 |
- Drop docs build conditional; it is unlikely we will ever fix the doc build
|
|
|
c8abc56 |
- Use new (rpm 4.17.1+) bcond style
|
|
|
3bfbd23 |
|
|
|
266feee |
* Sat Feb 04 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 0.9.4-7
|
|
|
266feee |
- Skip several tests that are currently failing (close RHBZ#2148632)
|
|
|
bd1d128 |
- Remove spurious BR on pytest-cov
|
|
|
266feee |
|
|
|
49b3775 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-6
|
|
|
49b3775 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
49b3775 |
|
|
|
750579d |
* Mon Dec 19 2022 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.9.4-5
|
|
|
750579d |
- Drop support for i686
|
|
|
750579d |
|
|
|
271f166 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-4
|
|
|
271f166 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
271f166 |
|
|
|
f6a43dc |
* Tue Jun 28 2022 Python Maint <python-maint@redhat.com> - 0.9.4-3
|
|
|
f6a43dc |
- Rebuilt for Python 3.11
|
|
|
f6a43dc |
|
|
|
cfd217d |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-2
|
|
|
cfd217d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
cfd217d |
|
|
|
0e6a5e0 |
* Sun Nov 7 2021 Iztok Fister Jr. <iztokf AT fedoraproject DOT org> - 0.9.4-1
|
|
|
0e6a5e0 |
- Update to the latest upstream's release
|
|
|
0e6a5e0 |
|
|
|
fa40555 |
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-4
|
|
|
fa40555 |
- Second attempt - Rebuilt for
|
|
|
fa40555 |
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
fa40555 |
|
|
|
54bc247 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.9.2-3
|
|
|
54bc247 |
- Rebuilt for Python 3.10
|
|
|
54bc247 |
|
|
|
31c92a1 |
* Fri May 21 2021 Iztok Fister Jr. <iztokf AT fedoraproject DOT org> - 0.9.2-2
|
|
|
31c92a1 |
- Install additional docs
|
|
|
220a005 |
|
|
|
f3d57e3 |
* Sat May 15 2021 Iztok Fister Jr. <iztokf AT fedoraproject DOT org> - 0.9.2-1
|
|
|
f3d57e3 |
- Initial package
|