Bug 1634014 - Review Request: python-grpcio - A high performance, open-source universal RPC framework
Summary: Review Request: python-grpcio - A high performance, open-source universal RPC...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Igor Raits
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1634449
TreeView+ depends on / blocked
 
Reported: 2018-09-28 12:43 UTC by Mathieu Bridon
Modified: 2018-12-16 22:24 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-12-16 22:24:17 UTC
Type: ---
Embargoed:
igor.raits: fedora-review+


Attachments (Terms of Use)

Description Mathieu Bridon 2018-09-28 12:43:54 UTC
Spec URL: https://bochecha.fedorapeople.org/packages/python-grpcio.spec
SRPM URL: https://bochecha.fedorapeople.org/packages/python-grpcio-1.15.0-1.fc28.src.rpm

Description:
A high performance, open-source universal RPC framework.

This package allows using gRPC in Python applications.

Fedora Account System Username: bochecha

Comment 1 Mathieu Bridon 2018-09-28 12:44:17 UTC
The license file is missing from the package, I requested upstream adds it in future releases: https://github.com/grpc/grpc/issues/16732

Comment 2 Igor Raits 2018-09-28 12:48:31 UTC
> Requires:      python3-six >= 1.5.2

This should be moved to python3 subpackage.

* Missing BuildRequires: python3-setuptools

> %{python3_sitearch}/grpc
> %{python3_sitearch}/grpcio-%{version}-py*.egg-info

Add trailing slashes to indicate that those are directories.

Comment 3 Mathieu Bridon 2018-09-28 16:32:15 UTC
New package:

Spec URL: https://bochecha.fedorapeople.org/packages/python-grpcio.spec
SRPM URL: https://bochecha.fedorapeople.org/packages/python-grpcio-1.15.0-2.fc28.src.rpm

All your points should now be fixed:

diff --git a/python-grpcio.spec b/python-grpcio.spec
index 3b6bc7a..d54d596 100644
--- a/python-grpcio.spec
+++ b/python-grpcio.spec
@@ -6,7 +6,7 @@ License:       ASL 2.0
 URL:           https://pypi.org/project/%{srcname}
 
 Version:       1.15.0
-Release:       1%{?dist}
+Release:       2%{?dist}
 Source0:       %pypi_source
 
 BuildRequires: gcc
@@ -18,10 +18,9 @@ BuildRequires: python3-devel >= 3.4
 BuildRequires: zlib-devel
 
 BuildRequires: python3-Cython
+BuildRequires: python3-setuptools
 BuildRequires: python3-six >= 1.5.2
 
-Requires:      python3-six >= 1.5.2
-
 %description
 A high performance, open-source universal RPC framework.
 
@@ -30,6 +29,7 @@ This package allows using gRPC in Python applications.
 
 %package -n python3-%{srcname}
 Summary:       %{summary}
+Requires:      python3-six >= 1.5.2
 %{?python_provide:%python_provide python3-%{srcname}}
 
 %description -n python3-%{srcname}
@@ -64,11 +64,16 @@ export GRPC_PYTHON_LDFLAGS="%{build_ldflags}"
 
 %files -n python3-%{srcname}
 %doc README.md
-%{python3_sitearch}/grpc
-%{python3_sitearch}/grpcio-%{version}-py*.egg-info
+%{python3_sitearch}/grpc/
+%{python3_sitearch}/grpcio-%{version}-py*.egg-info/
 
 
 %changelog
+* Fri Sep 28 2018 Mathieu Bridon <bochecha> - 1.15.0-2
+- Added missing build requirement on python3-setuptools.
+- Moved a requirement to the right subpackage.
+- Added trailing slashes to installed directories.
+
 * Fri Sep 28 2018 Mathieu Bridon <bochecha> - 1.15.0-1
 - Update to the latest upstream release.

Comment 4 Mathieu Bridon 2018-10-30 09:34:43 UTC
New package:

Spec URL: https://bochecha.fedorapeople.org/packages/python-grpcio.spec
SRPM URL: https://bochecha.fedorapeople.org/packages/python-grpcio-1.16.0-1.fc28.src.rpm

diff --git a/python-grpcio.spec b/python-grpcio.spec
index d54d596..5b7ad36 100644
--- a/python-grpcio.spec
+++ b/python-grpcio.spec
@@ -5,8 +5,8 @@ Summary:       A high performance, open-source universal RPC framework
 License:       ASL 2.0
 URL:           https://pypi.org/project/%{srcname}
 
-Version:       1.15.0
-Release:       2%{?dist}
+Version:       1.16.0
+Release:       1%{?dist}
 Source0:       %pypi_source
 
 BuildRequires: gcc
@@ -69,6 +69,9 @@ export GRPC_PYTHON_LDFLAGS="%{build_ldflags}"
 
 
 %changelog
+* Tue Oct 30 2018 Mathieu Bridon <bochecha> - 1.16.0-1
+- Update to the latest upstream release.
+
 * Fri Sep 28 2018 Mathieu Bridon <bochecha> - 1.15.0-2
 - Added missing build requirement on python3-setuptools.
 - Moved a requirement to the right subpackage.

Comment 5 Igor Raits 2018-12-03 19:20:46 UTC
> Source0:       %pypi_source

Source0:       %{pypi_source}

> BuildRequires: python3-devel >= 3.4
> BuildRequires: python3-Cython
> BuildRequires: python3-setuptools
> BuildRequires: python3-six >= 1.5.2

Would be good to move this under python3- subpackage.

> export GRPC_PYTHON_CFLAGS="%{build_cflags}"

I see that you BR gcc-c++, you also need to export CXXFLAGS.

---

Other than this, looks good.

Comment 6 Mathieu Bridon 2018-12-04 19:50:25 UTC
>> export GRPC_PYTHON_CFLAGS="%{build_cflags}"
> 
> I see that you BR gcc-c++, you also need to export CXXFLAGS.

They don't seem to use that at all in their build system.

It looks like they call their variable "GRPC_PYTHON_CFLAGS" and invoke the compiler as "gcc", even though it really is C++ code. (and as such the BR on gcc-c++ is required)

I can add an `export CXXFLAGS=%{build_cxxflags}` line if you really want me to, but unless I missed something it's going to be entirely ignored by the build process.

Comment 7 Mathieu Bridon 2018-12-04 20:03:42 UTC
New package:

Spec URL: https://bochecha.fedorapeople.org/packages/python-grpcio.spec
SRPM URL: https://bochecha.fedorapeople.org/packages/python-grpcio-1.16.1-1.fc29.src.rpm

diff --git a/python-grpcio.spec b/python-grpcio.spec
index 5b7ad36..45fb699 100644
--- a/python-grpcio.spec
+++ b/python-grpcio.spec
@@ -5,22 +5,17 @@ Summary:       A high performance, open-source universal RPC framework
 License:       ASL 2.0
 URL:           https://pypi.org/project/%{srcname}
 
-Version:       1.16.0
+Version:       1.16.1
 Release:       1%{?dist}
-Source0:       %pypi_source
+Source0:       %{pypi_source}
 
 BuildRequires: gcc
 BuildRequires: gcc-c++
 
 BuildRequires: c-ares-devel
 BuildRequires: openssl-devel
-BuildRequires: python3-devel >= 3.4
 BuildRequires: zlib-devel
 
-BuildRequires: python3-Cython
-BuildRequires: python3-setuptools
-BuildRequires: python3-six >= 1.5.2
-
 %description
 A high performance, open-source universal RPC framework.
 
@@ -29,6 +24,10 @@ This package allows using gRPC in Python applications.
 
 %package -n python3-%{srcname}
 Summary:       %{summary}
+BuildRequires: python3-devel >= 3.4
+BuildRequires: python3-Cython
+BuildRequires: python3-setuptools
+BuildRequires: python3-six >= 1.5.2
 Requires:      python3-six >= 1.5.2
 %{?python_provide:%python_provide python3-%{srcname}}
 
@@ -69,6 +68,10 @@ export GRPC_PYTHON_LDFLAGS="%{build_ldflags}"
 
 
 %changelog
+* Tue Dec 04 2018 Mathieu Bridon <bochecha> - 1.16.1-1
+- Update to the latest upstream release.
+- Move the build requirements to the appropriate subpackage.
+
 * Tue Oct 30 2018 Mathieu Bridon <bochecha> - 1.16.0-1
 - Update to the latest upstream release.

Comment 8 Gwyn Ciesla 2018-12-16 18:34:45 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/python-grpcio

Comment 9 Mathieu Bridon 2018-12-16 22:24:17 UTC
So there was a mixup…

After I submitted this review request, someone submitted https://bugzilla.redhat.com/show_bug.cgi?id=1654324 which got merged quickly, conflicting with this one.

Of course I only realized this when I tried to build this package and Koji complained it already existed.

Closing.


Note You need to log in before you can comment on or make changes to this bug.