#3 Make /usr/bin/pycodestyle Python 3
Merged 2 months ago by churchyard. Opened 2 months ago by churchyard.
rpms/ churchyard/python-pycodestyle the_big_switch  into  master

file modified
+11 -6

@@ -3,7 +3,7 @@ 

  Name:           python-%{module_name}

  # WARNING: When updating pycodestyle, check not to break flake8!

  Version:        2.5.0

- Release:        1%{?dist}

+ Release:        2%{?dist}

  Summary:        Python style guide checker

  License:        MIT

  URL:            https://pypi.python.org/pypi/%{module_name}

@@ -36,6 +36,7 @@ 

  %package -n python%{python3_pkgversion}-pycodestyle

  Summary:    Python style guide checker

  %{?python_provide:%python_provide python%{python3_pkgversion}-%{module_name}}

+ Conflicts:      python-pycodestyle < %{version}-%{release}

  

  BuildRequires:  python%{python3_pkgversion}-devel

  BuildRequires:  python%{python3_pkgversion}-setuptools

@@ -68,14 +69,15 @@ 

  

  

  %install

+ %py2_install

+ mv %{buildroot}%{_bindir}/pycodestyle %{buildroot}%{_bindir}/pycodestyle-%{python2_version}

+ ln -s ./pycodestyle-%{python2_version} %{buildroot}%{_bindir}/pycodestyle-2

+ 

  %py3_install

  mv %{buildroot}%{_bindir}/pycodestyle %{buildroot}%{_bindir}/pycodestyle-%{python3_version}

  ln -s ./pycodestyle-%{python3_version} %{buildroot}%{_bindir}/pycodestyle-3

+ ln -s ./pycodestyle-3 %{buildroot}%{_bindir}/pycodestyle

  

- %py2_install

- mv %{buildroot}%{_bindir}/pycodestyle %{buildroot}%{_bindir}/pycodestyle-%{python2_version}

- ln -s ./pycodestyle-%{python2_version} %{buildroot}%{_bindir}/pycodestyle

- ln -s ./pycodestyle-%{python2_version} %{buildroot}%{_bindir}/pycodestyle-2

  

  install -D docs/_build/man/%{module_name}.1 %{buildroot}%{_mandir}/man1/%{module_name}.1

  

@@ -90,7 +92,6 @@ 

  %files -n python2-%{module_name}

  %doc CHANGES.txt README.rst

  %license LICENSE

- %{_bindir}/pycodestyle

  %{_bindir}/pycodestyle-2

  %{_bindir}/pycodestyle-2.7

  %{python2_sitelib}/%{module_name}.py*

@@ -100,6 +101,7 @@ 

  %doc README.rst CHANGES.txt

  %license LICENSE

  %{_mandir}/man1/%{module_name}.1.gz

+ %{_bindir}/pycodestyle

  %{_bindir}/pycodestyle-3

  %{_bindir}/pycodestyle-%{python3_version}

  %{python3_sitelib}/%{module_name}.py*

@@ -107,6 +109,9 @@ 

  %{python3_sitelib}/__pycache__/%{module_name}*

  

  %changelog

+ * Wed Jul 17 2019 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-2

+ - Make /usr/bin/pycodestyle Python 3

+ 

  * Wed Feb 20 2019 Matthias Runge <mrunge@redhat.com> - 2.5.0-1

  - update to 2.5.0 and fix FTBFS

  

no initial comment

Pull-Request has been merged by churchyard

2 months ago