959a2d1
%global srcname modernize
959a2d1
959a2d1
Name: python-modernize
bb4d1d5
Version: 0.5
6dbec77
Release: 2%{?dist}
959a2d1
Summary: Modernizes Python code for eventual Python 3 migration
959a2d1
959a2d1
License:        BSD
959a2d1
URL:            https://pypi.python.org/pypi/modernize
959a2d1
Source0:        https://pypi.python.org/packages/source/m/%{srcname}/%{srcname}-%{version}.tar.gz
959a2d1
959a2d1
BuildArch:      noarch
6dbec77
6dbec77
BuildRequires:  python3-devel
6dbec77
BuildRequires:  python3-setuptools
959a2d1
959a2d1
%description
959a2d1
This library is a very thin wrapper around lib2to3 to utilize it
959a2d1
to make Python 2 code more modern with the intention of eventually
959a2d1
porting it over to Python 3.
959a2d1
959a2d1
It attempts, but does not guarantee, to generate a Python 2/3 compatible
959a2d1
codebase.  The code that it generates needs python2.6+ and has a runtime
959a2d1
dependency on python-six.
959a2d1
6dbec77
%package -n python3-modernize
6dbec77
Summary:            Fancy python dictionary types
6dbec77
%{?python_provide:%python_provide python3-modernize}
6dbec77
6dbec77
%description -n python3-modernize
6dbec77
This library is a very thin wrapper around lib2to3 to utilize it
6dbec77
to make Python 2 code more modern with the intention of eventually
6dbec77
porting it over to Python 3.
6dbec77
6dbec77
It attempts, but does not guarantee, to generate a Python 2/3 compatible
6dbec77
codebase.  The code that it generates needs python2.6+ and has a runtime
6dbec77
dependency on python-six.
6dbec77
959a2d1
%prep
959a2d1
%setup -q -n %{srcname}-%{version}
959a2d1
959a2d1
%build
6dbec77
%py3_build
959a2d1
959a2d1
%install
6dbec77
%py3_install
959a2d1
6dbec77
%files -n python3-modernize
Luke Macken 1e98347
%doc README.rst
6dbec77
%{python3_sitelib}/modernize*
6dbec77
%{python3_sitelib}/libmodernize*
6dbec77
%{python3_sitelib}/__pycache__/modernize*
6dbec77
%{_bindir}/python-modernize
959a2d1
959a2d1
%changelog
6dbec77
* Thu Feb 04 2016 Ralph Bean <rbean@redhat.com> - 0.5-2
6dbec77
- Switch over to a python3 package with modern python macros.
6dbec77
bb4d1d5
* Thu Feb 04 2016 Ralph Bean <rbean@redhat.com> - 0.5-1
bb4d1d5
- new version
bb4d1d5
53d1116
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-2
53d1116
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
53d1116
20d3ef3
* Wed Apr 08 2015 Ralph Bean <rbean@redhat.com> - 0.4-1
20d3ef3
- new version
20d3ef3
Luke Macken 1e98347
* Wed Aug 27 2014 Luke Macken <lmacken@redhat.com> - 0.3-1
Luke Macken 1e98347
- Update to 0.3 (#1130054)
Luke Macken 1e98347
a5b9a8c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-3
a5b9a8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a5b9a8c
959a2d1
* Tue Jul 23 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2-2
959a2d1
- BuildRequire python-setuptools; needed by setup.py
959a2d1
- Remove rpm constructs not needed in EPEL6+ or any current Fedora
959a2d1
959a2d1
* Mon Jul 22 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 0.2-1
959a2d1
- Initial Fedora build.
959a2d1