diff --git a/.gitignore b/.gitignore index e2cbae2..1b56206 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /reproject-0.3.1.tar.gz /reproject-0.3.2.tar.gz +/reproject-0.4.tar.gz diff --git a/python-reproject.spec b/python-reproject.spec index 990f4b4..76d3450 100644 --- a/python-reproject.spec +++ b/python-reproject.spec @@ -2,8 +2,8 @@ %global sum Reproject astronomical images Name: python-%{srcname} -Version: 0.3.2 -Release: 3%{?dist} +Version: 0.4 +Release: 1%{?dist} Summary: %{sum} License: BSD and ASL 2.0 and Python @@ -20,14 +20,15 @@ License: BSD and ASL 2.0 and Python # URL: https://pypi.python.org/pypi/%{srcname} Source0: https://files.pythonhosted.org/packages/source/r/%{srcname}/%{srcname}-%{version}.tar.gz -Patch0: python-reproject-fix-testoptions.patch BuildRequires: python2-astropy BuildRequires: python2-astropy-helpers BuildRequires: python2-devel BuildRequires: python3-astropy +BuildRequires: python3-astropy-healpix BuildRequires: python3-astropy-helpers BuildRequires: python3-devel +BuildRequires: python3-pytest-astropy %description %{sum}. @@ -36,7 +37,6 @@ BuildRequires: python3-devel Summary: %{sum} %{?python_provide:%python_provide python2-%{srcname}} Requires: python2-astropy -Recommends: python2-healpy %description -n python2-%{srcname} %{sum}. @@ -45,15 +45,13 @@ Recommends: python2-healpy Summary: %{sum} %{?python_provide:%python_provide python3-%{srcname}} Requires: python3-astropy -Recommends: python3-healpy +Requires: python3-astropy-healpix %description -n python3-%{srcname} %{sum}. %prep %setup -q -n %{srcname}-%{version} -# Fix option for running tests @Fedora -%patch0 -p1 %build %py2_build @@ -64,23 +62,26 @@ Recommends: python3-healpy %py3_install -# Disabled tests for now as they require network access, will query upstream -#%%check -#%%{__python2} setup.py test -#%%{__python3} setup.py test - +%check +# Test only python3 build, as test suite uses python3-pytest-astropy (Py3 only package) +pushd %{buildroot}/%{python3_sitearch} +py.test-%{python3_version} reproject +popd %files -n python2-%{srcname} %license LICENSE.md -%doc CHANGES.md README.md +%doc CHANGES.md README.rst %{python2_sitearch}/* %files -n python3-%{srcname} %license LICENSE.md -%doc CHANGES.md README.md +%doc CHANGES.md README.rst %{python3_sitearch}/* %changelog +* Fri Mar 23 2018 Christian Dersch - 0.4-1 +- new version + * Wed Feb 14 2018 Christian Dersch - 0.3.2-3 - rebuilt diff --git a/sources b/sources index 736724d..a70c948 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (reproject-0.3.2.tar.gz) = 4552f32e6026ad791818d0aeeb58ba04a5593371aa7298c6958a9309a9d938cebbc6089b07611ea4f9f4dca601a89bc74ef2fbb5a689d2873404463d1695a31d +SHA512 (reproject-0.4.tar.gz) = 5dbdb3d291ffc7820463d7bf3ce091c355da0e52158f35327ce3bf01a297e41c13fd4f05446cfdb92ac1ed123be9254a0f2af014b8d33acebe292adc5cfa7ef9