#2 Update to 2.2
Opened 2 years ago by orion. Modified 2 years ago
rpms/ orion/python-trollius update  into  master

Update to 2.2
Orion Poplawski • 2 years ago  
file modified
+1

@@ -5,3 +5,4 @@ 

  /trollius-1.0.4.tar.gz

  /trollius-2.0.tar.gz

  /trollius-2.1.tar.gz

+ /trollius-2.2.tar.gz

file modified
+9 -70

@@ -1,11 +1,7 @@ 

- %if 0%{?fedora} > 12

- %global with_python3 1

- %endif

- 

  %global pypiname trollius

  Name:           python-trollius

- Version:        2.1

- Release:        9%{?dist}

+ Version:        2.2

+ Release:        1%{?dist}

  Summary:        A port of the Tulip asyncio module to Python 2

  

  Group:          Development/Libraries

@@ -17,17 +13,6 @@ 

  BuildRequires:  python2-devel

  BuildRequires:  python2-setuptools

  BuildRequires:  python2-mock

- %if 0%{?with_python3}

- BuildRequires:  python3-devel

- BuildRequires:  python3-setuptools

- %endif #python3

- 

- # see https://fedoraproject.org/wiki/Packaging:Python#Macros

- %if 0%{?rhel} && 0%{?rhel} <= 6

- %{!?__python2: %global __python2 /usr/bin/python2}

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

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

- %endif

  

  # required for check

  BuildRequires:  python2-unittest2

@@ -59,76 +44,30 @@ 

  

  %description -n python2-trollius %_description

  

- %if 0%{?with_python3}

- %package -n python3-trollius

- Summary: A port of the Tulip asyncio module

- 

- %description -n python3-trollius

- 

- Trollius provides infrastructure for writing single-threaded

- concurrent code using coroutines, multiplexing I/O access over sockets

- and other resources, running network clients and servers, and other

- related primitives.

- 

- Trollius is a portage of the asyncio project (PEP 3156) on Python

- 2. Trollius works on Python 2.6-3.5. It has been tested on Windows,

- Linux, Mac OS X, FreeBSD and OpenIndiana.

- %endif #python3

- 

  %prep

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

  

- %if 0%{?with_python3}

- rm -rf %{py3dir}

- cp -a . %{py3dir}

- %endif

- 

  %build

- 

- %if 0%{?with_python3}

- pushd %{py3dir}

- %{__python3} setup.py build

- popd

- %endif

- 

- %{__python2} setup.py build

+ %py2_build

  

  %install

- %if 0%{?with_python3}

- pushd %{py3dir}

- %{__python3} setup.py install -O1 --skip-build --root %{buildroot}

- popd

- %endif

- 

- %{__python2} setup.py install -O1 --skip-build --root %{buildroot}

+ %py2_install

  

  %check

- 

  # these are currently causing koji builds to hang

  #python runtests.py -v1 -x test_subprocess_kill

- #%if 0%{?with_python3}

- #pushd %{py3dir}

- #%{__python3} runtests.py -v1 -x test_subprocess_kill

- #popd

- #%endif

  

  %files -n python2-trollius

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

  %doc README.rst

  %{python2_sitelib}/trollius

  %{python2_sitelib}/%{pypiname}-%{version}-py2.?.egg-info

  

- %if 0%{?with_python3}

- %files -n python3-trollius

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

- %doc README.rst

- %dir %{python3_sitelib}/trollius

- %{python3_sitelib}/trollius/*.py

- %{python3_sitelib}/trollius/__pycache__

- %{python3_sitelib}/%{pypiname}-%{version}-py3.?.egg-info

- %endif

- 

  %changelog

+ * Fri Jul 20 2018 Orion Poplawski <orion@nwra.com> - 2.2-1

+ - Update to 2.2

+ - Drop python3 build (replaced by asyncio)

+ - Modernize spec

+ 

  * Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 2.1-9

  - Rebuilt for Python 3.7

  

file modified
+1 -1

@@ -1,1 +1,1 @@ 

- 0b36ff1057cb5a93befe7d8ef0edcbf8  trollius-2.1.tar.gz

+ SHA512 (trollius-2.2.tar.gz) = d4a123cc0728eb3548f434ca227a36afce0fca8bfc9fdb0005ff501538c8fad9507608112c4b63c7d273cec2d2310b941068093c9bbdf28d984001753b4956cb