#1 Update and add py3 support.
Closed 6 years ago by nonamedotc. Opened 6 years ago by tibbs.
rpms/ tibbs/python-rope py3-updates  into  master

file modified
+37 -19
@@ -1,18 +1,22 @@ 

  %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

  

  Name:           python-rope

- Version:        0.10.3

- Release:        3%{?dist}

+ Version:        0.10.7

+ Release:        1%{?dist}

  Summary:        Python Code Refactoring Library

  

  Group:          Development/Languages

  License:        GPLv2+

- URL:            http://rope.sourceforge.net/

- Source0:        http://pypi.python.org/packages/source/r/rope/rope-%{version}.tar.gz

- BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

+ URL:            https://github.com/python-rope/rope

+ Source0:        https://files.pythonhosted.org/packages/source/r/rope/rope-%{version}.tar.gz

+ 

+ # Two tests fail with py2 on Fedora because we build the time module as a

+ # shared library.  See https://github.com/python-rope/rope/issues/220 and

+ # https://github.com/python-rope/rope/issues/211

+ Patch0:         patch-skip-xfail-tests

  

  BuildArch:      noarch

- BuildRequires:  python2-devel

+ BuildRequires:  python2-devel python3-devel

  

  # pysvn, hg, git, and darcs are optional.  If installed, they give integration

  # between rope and the version control system.  (So refactorings that rename a
@@ -30,31 +34,45 @@ 

  

  %description -n python2-rope %_description

  

- %prep

- %setup -q -n rope-%{version}

+ %package -n python3-rope

+ Summary: %summary

+ %{?python_provide:%python_provide python3-%{srcname}}

  

+ %description -n python3-rope %_description

  

- %build

- %{__python} setup.py build

  

+ %prep

+ %autosetup -p1 -n rope-%{version}

  

- %install

- rm -rf $RPM_BUILD_ROOT

- %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT

+ %build

+ %py2_build

+ %py3_build

  

- %clean

- rm -rf $RPM_BUILD_ROOT

+ %install

+ %py2_install

+ %py3_install

  

  %check

- python setup.py test

+ %{__python2} setup.py test

+ %{__python3} setup.py test

  

  %files -n python2-rope

- %defattr(-,root,root,-)

- %doc README.rst COPYING docs

- %{python_sitelib}/*

+ %license COPYING

+ %doc README.rst docs

+ %{python2_sitelib}/*

  

+ %files -n python3-rope

+ %license COPYING

+ %doc README.rst docs

+ %{python3_sitelib}/*

  

  %changelog

+ * Mon Nov 06 2017 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.10.7-1

+ - Clean up and update to current packaging guidelines.

+ - Update URLs.

+ - Update to 0.10.7.

+ - Add python3 subpackage.

+ 

  * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.10.3-3

  - Python 2 binary package renamed to python2-rope

    See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3

I am trying to quiet the warning spyder3 spews on startup, so I needed python3-rope. I took a little time to update the package, clean it up a little and add a py3 subpackage. Unfortunately with the new version, two tests fail on python2 (but not python3) due to how Fedora builds the time module. I added a patch to simply skip these two tests, as a fix from upstream does not appear to be forthcoming.

we are holding python3 stuff for a bit. Essentially, holding off for more complete support in python 3.5+.

https://github.com/python-rope/rope/issues/186

I suppose we can start with preliminary py3 support like other distros have done (e.g. arch, opensuse).

Also, I do not see the referenced patch in pull request.

I will merge PR2 with the patch and add python3 support.

Pull-Request has been closed by nonamedotc

6 years ago
Metadata