Files
python-pytest-astropy/python-pytest-astropy.spec

69 lines
2.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-pytest-astropy
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-astropy
Version: 0.4.0
Release: 0
License: BSD-3-Clause
Summary: Meta-package containing dependencies for testing
Url: https://github.com/astropy/pytest-astropy
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/p/pytest-astropy/pytest-astropy-%{version}.tar.gz
Source99: python-pytest-astropy-rpmlintrc
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest >= 3.1.0}
BuildRequires: %{python_module pytest-arraydiff >= 0.1}
BuildRequires: %{python_module pytest-doctestplus >= 0.1.3}
BuildRequires: %{python_module pytest-openfiles >= 0.3.0}
BuildRequires: %{python_module pytest-remotedata >= 0.3.0}
# /SECTION
Requires: python-pytest >= 3.1.0
Requires: python-pytest-arraydiff >= 0.1
Requires: python-pytest-doctestplus >= 0.1.3
Requires: python-pytest-openfiles >= 0.3.0
Requires: python-pytest-remotedata >= 0.3.0
BuildArch: noarch
%python_subpackages
%description
This is a meta-package that pulls in the dependencies that are used by
astropy and some affiliated packages for testing. It can also be used for
testing packages that are not affiliated with the Astropy project.
%prep
%setup -q -n pytest-astropy-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc CHANGES.rst README.rst
%license LICENSE.rst
%{python_sitelib}/pytest_astropy-%{version}-py*.egg-info
%changelog