d6c4747
%global pypi_name aioflo
d6c4747
d6c4747
Name:           python-%{pypi_name}
b8c9819
Version:        0.4.2
f6e6773
Release:        5%{?dist}
d6c4747
Summary:        Python library for Flo by Moen Smart Water Detectors
d6c4747
d6c4747
License:        MIT
d6c4747
URL:            https://github.com/bachya/aioflo
d6c4747
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
d6c4747
BuildArch:      noarch
d6c4747
d6c4747
%description
d6c4747
An asyncio-friendly Python library for Flo Smart Water Detectors.
d6c4747
d6c4747
%package -n     python3-%{pypi_name}
d6c4747
Summary:        %{summary}
d6c4747
d6c4747
BuildRequires:  python3-devel
d6c4747
BuildRequires:  pyproject-rpm-macros
2e1e48f
BuildRequires:  python3dist(poetry-core)
d6c4747
BuildRequires:  python3dist(pytest)
d6c4747
BuildRequires:  python3dist(aiohttp)
d6c4747
BuildRequires:  python3dist(aresponses)
d6c4747
BuildRequires:  python3dist(pytest-aiohttp)
d6c4747
BuildRequires:  python3dist(pytest-cov)
d6c4747
%{?python_provide:%python_provide python3-%{pypi_name}}
d6c4747
d6c4747
%description -n python3-%{pypi_name}
d6c4747
An asyncio-friendly Python library for Flo Smart Water Detectors.
d6c4747
d6c4747
%prep
d6c4747
%autosetup -n %{pypi_name}-%{version}
d6c4747
d6c4747
%generate_buildrequires
d6c4747
%pyproject_buildrequires -r
d6c4747
d6c4747
%build
d6c4747
%pyproject_wheel
d6c4747
d6c4747
%install
d6c4747
%pyproject_install
d6c4747
%pyproject_save_files %{pypi_name}
d6c4747
d6c4747
%check
d6c4747
%pytest -v tests
d6c4747
d6c4747
%files -n python3-%{pypi_name} -f %{pyproject_files}
d6c4747
%license LICENSE
d6c4747
%doc AUTHORS.md README.md
d6c4747
d6c4747
%changelog
f6e6773
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-5
f6e6773
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
f6e6773
59b812b
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-4
59b812b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
59b812b
442114e
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.4.2-3
442114e
- Rebuilt for Python 3.10
442114e
82d4bdc
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-2
82d4bdc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
82d4bdc
b8c9819
* Tue Jan 19 2021 Fabian Affolter <mail@fabian-affolter.ch> - 0.4.2-1
b8c9819
- Update to latest upstream release 0.4.2
b8c9819
d6c4747
* Tue Sep 15 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.4.1-2
d6c4747
- Switch to GitHub as source
d6c4747
- Switch to pyproject-rpm-macros
d6c4747
- Enable tests (rhbz#1875868)
d6c4747
d6c4747
* Fri Sep 04 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.4.1-1
d6c4747
- Initial package for Fedora