Blame python-vistir.spec

e66b38e
%global srcname vistir
e66b38e
%global _description %{expand:
e66b38e
Miscellaneous utilities for dealing with filesystems,
e66b38e
paths, projects, sub-processes, and more.}
e66b38e
e66b38e
Name:           python-vistir
e66b38e
Version:        0.4.3
c216e97
Release:        6%{?dist}
e66b38e
License:        ISC
e66b38e
URL:            https://pypi.org/project/%{srcname}
e66b38e
Source0:        https://github.com/sarugaku/%{srcname}/archive/%{version}.tar.gz
e66b38e
BuildArch:      noarch
e66b38e
Summary:        Python library full of utility functions
e66b38e
e66b38e
%{?python_enable_dependency_generator}
e66b38e
e66b38e
%description
e66b38e
%{_description}
e66b38e
e66b38e
# one test require internet to pass
e66b38e
%bcond_with internet
e66b38e
e66b38e
%package -n python3-%{srcname}
e66b38e
Summary:        %{summary}
e66b38e
e66b38e
BuildRequires:  python3-devel
e66b38e
BuildRequires:  python3-setuptools
e66b38e
BuildRequires:  python3-wheel
e66b38e
BuildRequires:  python3-invoke
e66b38e
BuildRequires:  python3-parver
e66b38e
BuildRequires:  python3-pytest
e66b38e
BuildRequires:  python3-pytest-cov
e66b38e
BuildRequires:  python3-yaspin
e66b38e
BuildRequires:  python3-requests
e66b38e
BuildRequires:  python3-colorama
e66b38e
BuildRequires:  python3-hypothesis
e66b38e
BuildRequires:  python3-hypothesis-fspaths
e66b38e
BuildRequires:  python3-pytest-timeout
e66b38e
e66b38e
# for support of spinners
e66b38e
Recommends:     python3-yaspin
e66b38e
e66b38e
%{?python_provide:%python_provide python3-%{srcname}}
e66b38e
e66b38e
%description -n python3-%{srcname}
e66b38e
%{_description}
e66b38e
e66b38e
%prep
e66b38e
%autosetup -n %{srcname}-%{version} -p1
e66b38e
e66b38e
%build
e66b38e
%py3_build
e66b38e
e66b38e
%install
e66b38e
%py3_install
e66b38e
e66b38e
%check
e66b38e
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest tests/ \
e66b38e
%if %{without internet}
e66b38e
-k 'not test_open_file'
e66b38e
%endif
e66b38e
e66b38e
%files -n python3-%{srcname}
e66b38e
%license LICENSE
e66b38e
%doc README.rst
e66b38e
%{python3_sitelib}/%{srcname}-*.egg-info/
e66b38e
%{python3_sitelib}/%{srcname}/
e66b38e
e66b38e
e66b38e
%changelog
c216e97
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.4.3-6
c216e97
- Rebuilt for Python 3.9
c216e97
8b7eeef
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-5
8b7eeef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8b7eeef
7ce4616
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.3-4
7ce4616
- Rebuilt for Python 3.8.0rc1 (#1748018)
7ce4616
a7eebc6
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.3-3
a7eebc6
- Rebuilt for Python 3.8
a7eebc6
aaecc05
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-2
aaecc05
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
aaecc05
e66b38e
* Thu Apr 25 2019 Patrik Kopkan <pkopkan@redhat.com> - 0.4.3-1
e66b38e
- created package