FS#66197 - [python-connexion] Should have "swagger-ui-bundle" as optdepend for "Swagger UI" to work

Attached to Project: Community Packages
Opened by Manuel Reimer (M-Reimer) - Friday, 10 April 2020, 09:47 GMT
Last edited by Filipe Laíns (FFY00) - Friday, 10 April 2020, 16:04 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Filipe Laíns (FFY00)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Since a few versions the connexion team decided to "split off" the "Swagger UI" which is useful and often needed to test the API and the server while development.

This would have to be a new package called "python-swagger-ui-bundle" and "python-connexion" should have this as "optdepend".

Additional info:
* package version(s) 2.6.0

Steps to reproduce:
- Try to launch any connexion example. You'll get:

The swagger_ui directory could not be found.
Please install connexion with extra install: pip install connexion[swagger-ui]
or provide the path to your local installation by passing swagger_path=<your path>
This task depends upon

Closed by  Filipe Laíns (FFY00)
Friday, 10 April 2020, 16:04 GMT
Reason for closing:  Implemented
Additional comments about closing:  python-connexion 2.6.0-2
Comment by Manuel Reimer (M-Reimer) - Friday, 10 April 2020, 13:05 GMT
Feel free to grab this and move it to "community":

https://aur.archlinux.org/packages/python-swagger_ui_bundle/

This does work to "unlock" the "Swagger UI". Once installed the message is gone and the UI works.
Comment by Filipe Laíns (FFY00) - Friday, 10 April 2020, 13:09 GMT
I can move it to [community] but this isn't really a bug. The package doesn't exist in the repos, it shouldn't be in optdepends.

Either way, I am fine maintaining the package and I agree it would be a good addition so I will move it. But for future reference, please be aware this is not standard procedure.
Comment by Manuel Reimer (M-Reimer) - Friday, 10 April 2020, 13:13 GMT
Part of the features of connexion is missing without it and as far as I know Arch usually tries to ship packages with a full feature set.

But in the end it's up to you what you do. I've reported the "lack of features" and even prepared the package. Maybe a more appropriate answer could have been "Thank you"...

Loading...