rdobuilder bc5567
%global srcname etcd3gw
rdobuilder bc5567
rdobuilder bc5567
%if 0%{?fedora} && 0%{?fedora} < 30
rdobuilder bc5567
%bcond_without python2
rdobuilder bc5567
%bcond_without python3
rdobuilder bc5567
%else
rdobuilder bc5567
%if 0%{?fedora} || 0%{?rhel} > 7
rdobuilder bc5567
%bcond_with    python2
rdobuilder bc5567
%bcond_without python3
rdobuilder bc5567
%else
rdobuilder bc5567
%bcond_without python2
rdobuilder bc5567
%bcond_with    python3
rdobuilder bc5567
%endif
rdobuilder bc5567
%endif
rdobuilder bc5567
rdobuilder bc5567
Name:           python-%{srcname}
rdobuilder bc5567
Version:        2.4.1
rdobuilder bc5567
Release:        1%{?dist}
rdobuilder bc5567
Summary:        An etcd3 gateway Python client
rdobuilder bc5567
rdobuilder bc5567
# Automatically converted from old format: ASL 2.0 - review is highly recommended.
rdobuilder bc5567
License:        Apache-2.0
rdobuilder bc5567
URL:            https://pypi.python.org/pypi/%{srcname}
rdobuilder bc5567
Source0:        %{pypi_source}
rdobuilder bc5567
rdobuilder bc5567
BuildArch:      noarch
rdobuilder bc5567
rdobuilder bc5567
%description
rdobuilder bc5567
A python client for etcd3 grpc-gateway v3alpha API
rdobuilder bc5567
rdobuilder bc5567
%if %{with python2}
rdobuilder bc5567
%package -n python2-%{srcname}
rdobuilder bc5567
Summary:        %{summary}
rdobuilder bc5567
BuildRequires:  python2-devel
rdobuilder bc5567
rdobuilder bc5567
BuildRequires:  python2-futurist
rdobuilder bc5567
BuildRequires:  python2-oslotest
rdobuilder bc5567
BuildRequires:  python2-pytest
rdobuilder bc5567
BuildRequires:  python2-requests
rdobuilder bc5567
rdobuilder bc5567
Requires:  python2-futurist
rdobuilder bc5567
Requires:  python2-pbr
rdobuilder bc5567
Requires:  python2-requests
rdobuilder bc5567
Requires:  python2-six
rdobuilder bc5567
rdobuilder bc5567
%{?python_provide:%python_provide python2-%{srcname}}
rdobuilder bc5567
rdobuilder bc5567
%description -n python2-%{srcname}
rdobuilder bc5567
A python client for etcd3 grpc-gateway v3alpha API
rdobuilder bc5567
%endif
rdobuilder bc5567
rdobuilder bc5567
%if %{with python3}
rdobuilder bc5567
%package -n python3-%{srcname}
rdobuilder bc5567
Summary:        %{summary}
rdobuilder bc5567
BuildRequires:  python3-devel
rdobuilder bc5567
rdobuilder bc5567
BuildRequires:  python3-futurist
rdobuilder bc5567
BuildRequires:  python3-oslotest
rdobuilder bc5567
BuildRequires:  python3-pytest
rdobuilder bc5567
BuildRequires:  python3-requests
rdobuilder bc5567
rdobuilder bc5567
Requires: python3-futurist
rdobuilder bc5567
Requires: python3-pbr
rdobuilder bc5567
Requires: python3-requests
rdobuilder bc5567
Requires: python3-six
rdobuilder bc5567
rdobuilder bc5567
%{?python_enable_dependency_generator}
rdobuilder bc5567
rdobuilder bc5567
%{?python_provide:%python_provide python3-%{srcname}}
rdobuilder bc5567
rdobuilder bc5567
%description -n python3-%{srcname}
rdobuilder bc5567
A python client for etcd3 grpc-gateway v3alpha API
rdobuilder bc5567
%endif
rdobuilder bc5567
rdobuilder bc5567
%prep
rdobuilder bc5567
%autosetup -n %{srcname}-%{version}
rdobuilder bc5567
rdobuilder bc5567
# Let's manage dependencies using rpm deps.
rdobuilder bc5567
rm -f *requirements.txt
rdobuilder bc5567
rdobuilder bc5567
%build
rdobuilder bc5567
%if %{with python2}
rdobuilder bc5567
%py2_build
rdobuilder bc5567
%endif
rdobuilder bc5567
rdobuilder bc5567
%if %{with python3}
rdobuilder bc5567
%py3_build
rdobuilder bc5567
%endif
rdobuilder bc5567
rdobuilder bc5567
%install
rdobuilder bc5567
%if %{with python2}
rdobuilder bc5567
%py2_install
rdobuilder bc5567
%endif
rdobuilder bc5567
rdobuilder bc5567
%if %{with python3}
rdobuilder bc5567
%py3_install
rdobuilder bc5567
%endif
rdobuilder bc5567
rdobuilder bc5567
%check
rdobuilder bc5567
%if %{with python2}
rdobuilder bc5567
export PYTHON=%{__python2}
rdobuilder bc5567
py.test
rdobuilder bc5567
%endif
rdobuilder bc5567
rdobuilder bc5567
%if %{with python3}
rdobuilder bc5567
export PYTHON=%{__python3}
rdobuilder bc5567
# workaround for https://bugs.launchpad.net/testrepository/+bug/1229445
rdobuilder bc5567
rm -rf .testrepository/times.dbm
rdobuilder bc5567
py.test-3
rdobuilder bc5567
%endif
rdobuilder bc5567
rdobuilder bc5567
%if %{with python2}
rdobuilder bc5567
%files -n python2-%{srcname}
rdobuilder bc5567
%license LICENSE
rdobuilder bc5567
%doc README.md CONTRIBUTING.rst HACKING.rst
rdobuilder bc5567
%{python2_sitelib}/%{srcname}-*.egg-info/
rdobuilder bc5567
%{python2_sitelib}/%{srcname}/
rdobuilder bc5567
%endif
rdobuilder bc5567
rdobuilder bc5567
%if %{with python3}
rdobuilder bc5567
%files -n python3-%{srcname}
rdobuilder bc5567
%license LICENSE
rdobuilder bc5567
%doc README.md CONTRIBUTING.rst HACKING.rst
rdobuilder bc5567
%{python3_sitelib}/%{srcname}-*.egg-info/
rdobuilder bc5567
%{python3_sitelib}/%{srcname}/
rdobuilder bc5567
%endif
rdobuilder bc5567
rdobuilder bc5567
rdobuilder bc5567
%changelog
rdobuilder bc5567
* Mon Aug  5 2024 John Eckersberg <jeckersb@redhat.com> - 2.4.1-1
rdobuilder bc5567
- New upstream version 2.4.1 (rhbz#2301633)
rdobuilder bc5567
rdobuilder bc5567
* Wed Jul 24 2024 Miroslav Suchý <msuchy@redhat.com> - 2.4.0-4
rdobuilder bc5567
- convert license to SPDX
rdobuilder bc5567
rdobuilder bc5567
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-3
rdobuilder bc5567
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
rdobuilder bc5567
rdobuilder bc5567
* Mon Jul 15 2024 Python Maint <python-maint@redhat.com> - 2.4.0-2
rdobuilder bc5567
- Rebuilt for Python 3.13
rdobuilder bc5567
rdobuilder bc5567
* Tue Feb 27 2024 John Eckersberg <jeckersb@redhat.com> - 2.4.0-1
rdobuilder bc5567
- New upstream version 2.4.0 (rhbz#2266334)
rdobuilder bc5567
rdobuilder bc5567
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-3
rdobuilder bc5567
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
rdobuilder bc5567
rdobuilder bc5567
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
rdobuilder bc5567
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
rdobuilder bc5567
rdobuilder bc5567
* Thu Dec 14 2023 John Eckersberg <jeckersb@redhat.com> - 2.3.0-1
rdobuilder bc5567
- New upstream version 2.3.0 (rhbz#2254543)
rdobuilder bc5567
rdobuilder bc5567
* Thu Nov 16 2023 John Eckersberg <jeckersb@redhat.com> - 2.2.0-1
rdobuilder bc5567
- New upstream version 2.2.0 (rhbz#2250040)
rdobuilder bc5567
rdobuilder bc5567
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-4
rdobuilder bc5567
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
rdobuilder bc5567
rdobuilder bc5567
* Mon Jul 03 2023 Python Maint <python-maint@redhat.com> - 2.1.0-3
rdobuilder bc5567
- Rebuilt for Python 3.12
rdobuilder bc5567
rdobuilder bc5567
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
rdobuilder bc5567
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
rdobuilder bc5567
rdobuilder bc5567
* Thu Sep  1 2022 John Eckersberg <jeckersb@redhat.com> - 2.1.0-1
rdobuilder bc5567
- New upstream version 2.1.0 (rhbz#2123402)
rdobuilder bc5567
rdobuilder bc5567
* Thu Aug  4 2022 John Eckersberg <jeckersb@redhat.com> - 2.0.0-1
rdobuilder bc5567
- New upstream version 2.0.0 (rhbz#2115274)
rdobuilder bc5567
rdobuilder bc5567
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-3
rdobuilder bc5567
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
rdobuilder bc5567
rdobuilder bc5567
* Thu Jun 23 2022 Python Maint <python-maint@redhat.com> - 1.0.2-2
rdobuilder bc5567
- Rebuilt for Python 3.11
rdobuilder bc5567
rdobuilder bc5567
* Thu May 12 2022 John Eckersberg <jeckersb@redhat.com> - 1.0.2-1
rdobuilder bc5567
- New upstream version 1.0.2 (rhbz#2082061)
rdobuilder bc5567
rdobuilder bc5567
* Wed Feb  9 2022 John Eckersberg <jeckersb@redhat.com> - 1.0.1-1
rdobuilder bc5567
- New upstream version 1.0.1 (rhbz#2052448)
rdobuilder bc5567
rdobuilder bc5567
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
rdobuilder bc5567
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
rdobuilder bc5567
rdobuilder bc5567
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
rdobuilder bc5567
- Second attempt - Rebuilt for
rdobuilder bc5567
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
rdobuilder bc5567
rdobuilder bc5567
* Thu Jul  1 2021 John Eckersberg <jeckersb@redhat.com> - 1.0.0-1
rdobuilder bc5567
- New upstream version 1.0.0 (rhbz#1978274)
rdobuilder bc5567
rdobuilder bc5567
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.2.6-3
rdobuilder bc5567
- Rebuilt for Python 3.10
rdobuilder bc5567
rdobuilder bc5567
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-2
rdobuilder bc5567
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
rdobuilder bc5567
rdobuilder bc5567
* Thu Jul 30 2020 John Eckersberg <jeckersb@redhat.com> - 0.2.6-1
rdobuilder bc5567
- New upstream version 0.2.6 (rhbz#1862104)
rdobuilder bc5567
rdobuilder bc5567
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-3
rdobuilder bc5567
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
rdobuilder bc5567
rdobuilder bc5567
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.2.5-2
rdobuilder bc5567
- Rebuilt for Python 3.9
rdobuilder bc5567
rdobuilder bc5567
* Tue Jan 28 2020 John Eckersberg <eck@redhat.com> - 0.2.5-1
rdobuilder bc5567
- New upstream version 0.2.5 (rhbz#1795745)
rdobuilder bc5567
rdobuilder bc5567
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.4-11
rdobuilder bc5567
- Rebuilt for Python 3.8.0rc1 (#1748018)
rdobuilder bc5567
rdobuilder bc5567
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.4-10
rdobuilder bc5567
- Rebuilt for Python 3.8
rdobuilder bc5567
rdobuilder bc5567
* Mon Jul 29 2019 Alfredo Moralejo <amoralej@redhat.com> - 0.2.4-9
rdobuilder bc5567
- Use pytest to run unit tests
rdobuilder bc5567
rdobuilder bc5567
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-8
rdobuilder bc5567
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
rdobuilder bc5567
rdobuilder bc5567
* Fri Mar  8 2019 John Eckersberg <eck@redhat.com> - 0.2.4-7
rdobuilder bc5567
- Before f30, build for both py2 and py3
rdobuilder bc5567
- Add test workaround when run for both py2 and py3
rdobuilder bc5567
rdobuilder bc5567
* Tue Mar  5 2019 John Eckersberg <eck@redhat.com> - 0.2.4-6
rdobuilder bc5567
- Add missing req for python3-pbr
rdobuilder bc5567
rdobuilder bc5567
* Tue Mar 05 2019 Eric Harney <eharney@redhat.com> - 0.2.4-5
rdobuilder bc5567
- Add missing reqs for python3
rdobuilder bc5567
rdobuilder bc5567
* Mon Mar 04 2019 Eric Harney <eharney@redhat.com> - 0.2.4-4
rdobuilder bc5567
- Remove runtime req on oslotest
rdobuilder bc5567
rdobuilder bc5567
* Thu Feb 28 2019 Alfredo Moralejo <amoralej@redhat.com> - 0.2.4-3
rdobuilder bc5567
- Remve {test-,}requirements.txt to manage dependencies manually.
rdobuilder bc5567
rdobuilder bc5567
* Wed Feb 13 2019 John Eckersberg <eck@redhat.com> - 0.2.4-1
rdobuilder bc5567
- Initial package
rdobuilder bc5567