Bug 1979315

Summary: Review Request: python-lsp-server - Python implementation of language server protocol
Product: [Fedora] Fedora Reporter: Mukundan Ragavan <nonamedotc>
Component: Package ReviewAssignee: Zbigniew Jędrzejewski-Szmek <zbyszek>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: package-review, zbyszek
Target Milestone: ---Flags: zbyszek: fedora-review+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-09 15:23:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1979275    
Bug Blocks: 1979316    

Description Mukundan Ragavan 2021-07-05 15:14:26 UTC
Spec URL: https://nonamedotc.fedorapeople.org/pkgreview/python-packages/python-lsp-server/python-lsp-server.spec
SRPM URL: https://nonamedotc.fedorapeople.org/pkgreview/python-packages/python-lsp-server/python-lsp-server-1.1.0-1.fc34.src.rpm

Description: 
A python implementation of language server protocol. This package provides
the community maintained version of python-language-server.

Fedora Account System Username: nonamedotc

Comment 1 Mukundan Ragavan 2021-07-05 15:17:16 UTC
Full build logs are here - 

https://copr.fedorainfracloud.org/coprs/nonamedotc/spyder5dev/builds/

Comment 2 Mukundan Ragavan 2021-07-05 16:01:08 UTC
Since pylsp requires pycodestyle, PR updating pyflakes, flake8 and pycodestyle have been submitted. 

Builds can be seen here - https://copr.fedorainfracloud.org/coprs/nonamedotc/spyder5dev/builds/

Comment 3 Zbigniew Jędrzejewski-Szmek 2021-07-07 08:25:28 UTC
> A python implementation of language server protocol. This package provides
> the community maintained version of python-language-server.

That's very circular: if I don't already know what "python language server" is, this
tells me nothing. Is /bin/pylsp the main "entry point" for this package, i.e. are users
expected to call this directly? Or will this mostly be used as a library and/or backend
by other packages?

Also note that the %description has an empty leading line like in #1979275.

Comment 4 Mukundan Ragavan 2021-07-07 12:34:11 UTC
Updated SPEC URL: https://nonamedotc.fedorapeople.org/pkgreview/python-packages/python-lsp-server/python-lsp-server.spec
Updated SRPM URL: https://nonamedotc.fedorapeople.org/pkgreview/python-packages/python-lsp-server/python-lsp-server-1.1.0-2.fc34.src.rpm


Changes from previous spec are - 

- updated description
- use pypi_source macro
- avoid empty leading line in description
- remove egg cleanup


mock build is running here - https://copr.fedorainfracloud.org/coprs/nonamedotc/spyder5dev/build/2316171/


I disabled two tests that fail because I could not figure out how to fix it.

Comment 5 Mukundan Ragavan 2021-07-07 16:35:46 UTC
koji scratch build now that jsonrpc is built on rawhide - https://koji.fedoraproject.org/koji/taskinfo?taskID=71466427

Comment 6 Zbigniew Jędrzejewski-Szmek 2021-07-08 09:34:09 UTC
> This package provides the community maintained version of python-language-server.

This is still unclear… Everything in Fedora is "community maintained". I assume that
there's some paid version? Please be more explicit.

Review:
+ package name is OK
+ license is acceptable for Fedora (MIT)
+ license is specified correctly
+ builds and installs OK
+ BR/R/P seem correct
+ %check is present and passes

rpmlint:
> python-lsp-server.src: E: description-line-too-long C This package provides the community maintained version of python-language-server.
Please wrap.

fedora-review doesn't find any issues.

Suggestion: add "Provides:pylsp".

Package is APPROVED.

Comment 7 Zbigniew Jędrzejewski-Szmek 2021-07-08 09:36:18 UTC
How is the user supposed to launch this? Should it have a systemd user service file?

Comment 8 Gwyn Ciesla 2021-07-08 21:46:03 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/python-lsp-server

Comment 9 Mukundan Ragavan 2021-07-08 21:48:35 UTC
(In reply to Zbigniew Jędrzejewski-Szmek from comment #6)
> > This package provides the community maintained version of python-language-server.
> 
> This is still unclear… Everything in Fedora is "community maintained". I
> assume that
> there's some paid version? Please be more explicit.
> 

Yeah, I should have mentioned spyder-IDE team. I will add spyder-IDE team explicitly - not palantir or microsoft.

> Review:
> + package name is OK
> + license is acceptable for Fedora (MIT)
> + license is specified correctly
> + builds and installs OK
> + BR/R/P seem correct
> + %check is present and passes
> 
> rpmlint:
> > python-lsp-server.src: E: description-line-too-long C This package provides the community maintained version of python-language-server.
> Please wrap.
> 

Will do.

> fedora-review doesn't find any issues.
> 
> Suggestion: add "Provides:pylsp".
> 

I will do this in import.


> Package is APPROVED.

Thanks for the review.


(In reply to Zbigniew Jędrzejewski-Szmek from comment #7)
> How is the user supposed to launch this? Should it have a systemd user
> service file?


This package is consumed by editors (at the moment, only spyder). As far as I know, end user does not run this directly.

Comment 10 Mukundan Ragavan 2021-07-09 15:23:45 UTC
built on rawhide.