f0400d1
%global srcname fissix
f0400d1
f0400d1
%bcond_without tests
f0400d1
f0400d1
Name:           python-%{srcname}
f0400d1
Version:        20.8.0
1169d8c
Release:        8%{?dist}
f0400d1
Summary:        Monkeypatches to override default behavior of lib2to3
f0400d1
License:        Python
f0400d1
URL:            https://github.com/jreese/fissix
f0400d1
Source0:        %{pypi_source}
f0400d1
Patch0:         %{srcname}-dont_ship_tests.patch
f0400d1
f0400d1
BuildArch:      noarch
f0400d1
f0400d1
BuildRequires:  python3-devel
f0400d1
BuildRequires:  python3-setuptools
f0400d1
%if %{with tests}
f0400d1
BuildRequires:  python3-test
f0400d1
BuildRequires:  %{py3_dist appdirs}
f0400d1
BuildRequires:  %{py3_dist pytest}
f0400d1
%endif
f0400d1
f0400d1
f0400d1
%global _description %{expand:
f0400d1
Backport of latest lib2to3, with enhancements.}
f0400d1
f0400d1
f0400d1
%description %_description
f0400d1
f0400d1
f0400d1
%package -n python3-%{srcname}
f0400d1
Summary:        %{summary}
f0400d1
# not sure why but automatic requires don't work
f0400d1
Requires:       %{py3_dist appdirs}
f0400d1
f0400d1
%description -n python3-%{srcname} %_description
f0400d1
f0400d1
f0400d1
%prep
f0400d1
%autosetup -p1 -n %{srcname}-%{version}
f0400d1
sed -i '1d' fissix/pgen2/token.py
f0400d1
f0400d1
f0400d1
%build
f0400d1
%py3_build
f0400d1
f0400d1
f0400d1
%install
f0400d1
%py3_install
f0400d1
cp -p fissix/*.txt %{buildroot}%{python3_sitelib}/%{srcname}/
f0400d1
f0400d1
f0400d1
%check
f0400d1
# mv fissix-tests fissix/tests
f0400d1
%{python3} -m pytest --verbose fissix/tests
f0400d1
f0400d1
f0400d1
%files -n python3-%{srcname}
f0400d1
%license LICENSE
f0400d1
%doc README.md
f0400d1
%{python3_sitelib}/%{srcname}/
f0400d1
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
f0400d1
f0400d1
f0400d1
%changelog
1169d8c
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 20.8.0-8
1169d8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
1169d8c
9f4a5e6
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20.8.0-7
9f4a5e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
9f4a5e6
2a9c644
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 20.8.0-6
2a9c644
- Rebuilt for Python 3.11
2a9c644
360e790
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20.8.0-5
360e790
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
360e790
d94976d
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20.8.0-4
d94976d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
d94976d
9d57eb0
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 20.8.0-3
9d57eb0
- Rebuilt for Python 3.10
9d57eb0
8756bf3
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20.8.0-2
8756bf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
8756bf3
f0400d1
* Thu Nov 19 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.9.0-1
f0400d1
- Initial package