9970780
# Tests don't currently pass
9970780
%bcond_with tests
9970780
01b2c0a
Name:      pyee
6f151c7
Version:   9.0.4
9970780
Release:   9%{?dist}
01b2c0a
Summary:   A port of node.js's EventEmitter to python
01b2c0a
License:   MIT
01b2c0a
URL:       https://pypi.python.org/pypi/pyee
66beb77
Source0:   https://github.com/jfhbrook/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
9970780
Patch0:    pyee-switch-to-unittest-mock.diff
5bb76e6
BuildArch: noarch
5bb76e6
01b2c0a
BuildRequires: python3-devel
01b2c0a
BuildRequires: python3-setuptools
01b2c0a
BuildRequires: python3-sphinx
01b2c0a
BuildRequires: python3-tox
01b2c0a
BuildRequires: python3-twisted
9970780
%if %{with tests}
9970780
BuildRequires: python3-flake8
01b2c0a
BuildRequires: python3-pytest
01b2c0a
BuildRequires: python3-pytest-asyncio
01b2c0a
BuildRequires: python3-pytest-runner
66beb77
BuildRequires: python3-pytest-trio
9970780
%endif
5bb76e6
5bb76e6
%description
5bb76e6
A port of node.js's EventEmitter to python.
5bb76e6
5bb76e6
%package -n python3-ee
01b2c0a
Summary:       A port of node.js's EventEmitter to python
5bb76e6
%{?python_provide:%python_provide python3-ee}
5bb76e6
5bb76e6
%description -n python3-ee
5bb76e6
A port of node.js's EventEmitter to python.
5bb76e6
5bb76e6
%prep
3695ecd
%autosetup -p1
5bb76e6
5bb76e6
%build
5bb76e6
%py3_build
5bb76e6
5bb76e6
%install
5bb76e6
%py3_install
5bb76e6
5bb76e6
%check
9970780
# currently segfaults
9970780
# %%py3_check_import pyee
9970780
%if %{with tests}
9970780
%pytest -v
9970780
%endif
5bb76e6
5bb76e6
%files -n python3-ee
5bb76e6
%license LICENSE
5bb76e6
%{python3_sitelib}/*
5bb76e6
5bb76e6
%changelog
9970780
* Thu Feb 15 2024 Michel Lind <salimma@fedoraproject.org> - 9.0.4-9
9970780
- Replace mock with unittest.mock
9970780
- Use bcond to toggle tests and gate test BRs but keep them disabled for now
9970780
6810f10
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.4-8
6810f10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
6810f10
672f306
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.4-7
672f306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
672f306
17ec856
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.4-6
17ec856
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
17ec856
790105b
* Fri Jul 14 2023 Python Maint <python-maint@redhat.com> - 9.0.4-5
790105b
- Rebuilt for Python 3.12
790105b
441cd03
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.4-4
441cd03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
441cd03
3327111
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.4-3
3327111
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
3327111
0fb878a
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 9.0.4-2
0fb878a
- Rebuilt for Python 3.11
0fb878a
6f151c7
* Sun Feb 20 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 9.0.4-1
6f151c7
- Update to 9.0.4
6f151c7
9916a3b
* Sun Jan 30 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 9.0.3-1
9916a3b
- Update to 9.0.3
9916a3b
87bc31f
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 8.2.2-2
87bc31f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
87bc31f
3695ecd
* Mon Aug 23 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 8.2.2-1
3695ecd
- Update to 8.2.2
3695ecd
a75a181
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.0-4
a75a181
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
a75a181
3a95244
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 8.1.0-3
3a95244
- Rebuilt for Python 3.10
3a95244
452a24e
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.0-2
452a24e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
452a24e
e702e7f
* Tue Dec  1 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 8.1.0-1
e702e7f
- Update to 8.1.0
e702e7f
0afc0cd
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.2-2
0afc0cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0afc0cd
4dd4766
* Mon Jun 08 2020 Peter Robinson <pbrobinson@fedoraproject.org> 7.0.2-1
4dd4766
- Update to 7.0.2
4dd4766
140aa42
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 7.0.1-2
140aa42
- Rebuilt for Python 3.9
140aa42
66beb77
* Sat Feb  1 2020 Peter Robinson <pbrobinson@fedoraproject.org> 7.0.1-1
66beb77
- Update to 7.0.1
66beb77
8603c7c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-10
8603c7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8603c7c
051b3e9
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 5.0.0-9
051b3e9
- Rebuilt for Python 3.8.0rc1 (#1748018)
051b3e9
6eb80d7
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 5.0.0-8
6eb80d7
- Rebuilt for Python 3.8
6eb80d7
d651f32
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-7
d651f32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d651f32
adbf628
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-6
adbf628
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
adbf628
902d5cb
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-5
902d5cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
902d5cb
7238eb2
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 5.0.0-4
7238eb2
- Rebuilt for Python 3.7
7238eb2
01b2c0a
* Thu May 10 2018 Peter Robinson <pbrobinson@fedoraproject.org> 5.0-3
01b2c0a
- Fix FTBFS, drop python2 support
01b2c0a
cc58c37
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-2
cc58c37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cc58c37
a69f3db
* Mon Nov 20 2017 Peter Robinson <pbrobinson@fedoraproject.org> 5.0.0-1
a69f3db
- Update to 5.0.0
a69f3db
d9614a1
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-2
d9614a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d9614a1
5bb76e6
* Sun Feb  5 2017 Peter Robinson <pbrobinson@fedoraproject.org> 3.0.0-1
5bb76e6
- initial packaging