# Created by pyp2rpm-3.3.2 %global pypi_name cdsapi Name: python-%{pypi_name} Version: 0.1.4 Release: 1%{?dist} Summary: Climate Data Store API License: Apache 2.0 URL: https://software.ecmwf.int/stash/projects/CDS/repos/cdsapi Source0: https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-runner) BuildRequires: python3dist(requests) BuildRequires: python3dist(setuptools) %description -Install via pip with:: $ pip install cdsapi Configure Get your UID and API key from the CDS portal at the address and write it into the configuration file, so it looks like:: $ cat /.cdsapirc url: key: : verify: 0Remember to agree to the Terms and Conditions of every dataset that you intend to download.-Perform a small test retrieve of ERA5 data:: $ python >>> import cdsapi >>>... %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(requests) %description -n python3-%{pypi_name} -Install via pip with:: $ pip install cdsapi Configure Get your UID and API key from the CDS portal at the address and write it into the configuration file, so it looks like:: $ cat /.cdsapirc url: key: : verify: 0Remember to agree to the Terms and Conditions of every dataset that you intend to download.-Perform a small test retrieve of ERA5 data:: $ python >>> import cdsapi >>>... %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %check %{__python3} setup.py test %files -n python3-%{pypi_name} %license LICENSE.txt %doc README.rst %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Fri Dec 07 2018 Davide Cesari - 0.1.1-1 - Initial package.