Blame python-yarg.spec

297f33f
%{?python_enable_dependency_generator}
fa3b554
%global srcname yarg
fa3b554
fa3b554
%global _description\
fa3b554
Yarg is an easy to use PyPI client built on top of Python's requests library.
fa3b554
fa3b554
Name:           python-%{srcname}
fa3b554
Version:        0.1.9
297f33f
Release:        5%{?dist}
fa3b554
Summary:        An easy to use PyPI client
fa3b554
fa3b554
License:        MIT
fa3b554
URL:            https://yarg.readthedocs.org/
fa3b554
Source0:        https://github.com/kura/yarg/archive/%{version}/%{srcname}/%{srcname}-%{version}.tar.gz
fa3b554
BuildArch:      noarch
47afa5e
fa3b554
BuildRequires:  python3-devel
fa3b554
BuildRequires:  python3dist(requests)
fa3b554
BuildRequires:  python3dist(setuptools)
fa3b554
BuildRequires:  python3dist(mock)
fa3b554
fa3b554
%description %_description
fa3b554
fa3b554
%package -n     python3-%{srcname}
fa3b554
Summary:        %{summary}
fa3b554
%{?python_provide:%python_provide python3-%{srcname}}
47afa5e
fa3b554
%description -n python3-%{srcname} %_description
fa3b554
fa3b554
%prep
fa3b554
%autosetup -n %{srcname}-%{version}
fa3b554
# Remove bundled egg-info
fa3b554
rm -rf %{srcname}.egg-info
fa3b554
fa3b554
%build
fa3b554
%py3_build
fa3b554
fa3b554
%install
fa3b554
%py3_install
fa3b554
fa3b554
%check
fa3b554
%{__python3} setup.py test
fa3b554
fa3b554
%files -n python3-%{srcname}
fa3b554
%license LICENSE-REQUESTS LICENSE
fa3b554
%doc README.rst
47afa5e
# Ignore tests
47afa5e
%exclude %{python3_sitelib}/tests
fa3b554
%{python3_sitelib}/%{srcname}
fa3b554
%{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info
fa3b554
fa3b554
%changelog
297f33f
* Tue Jan 15 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.9-5
297f33f
- Enable python dependency generator
297f33f
47afa5e
* Sun Jan 13 2019 Dhanesh B. Sabane <dhanesh95@fedoraproject.org> - 0.1.9-4
47afa5e
- Fix Bug #1655700 - Exclude 'tests' folder
47afa5e
afd7602
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-3
afd7602
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
afd7602
fa3b554
* Sun Jul 01 2018 Dhanesh B. Sabane <dhanesh95@fedoraproject.org> - 0.1.9-2
fa3b554
- Add additional build dependency for tests
fa3b554
fa3b554
* Sun Jun 24 2018 Dhanesh B. Sabane <dhanesh95@disroot.org> - 0.1.9-1
fa3b554
- Initial package.