getsling / flask-swagger

A swagger 2.0 spec extractor for flask
MIT License
457 stars 91 forks source link

Added bdist_rpm support for building an RPM from setup.py #19

Closed krasmussen closed 8 years ago

krasmussen commented 8 years ago

Confirmation that this works from my desktop::

[krasmussen@kras-desktop flask-swagger]$ python ./setup.py bdist_rpm running bdist_rpm running egg_info creating flask_swagger.egg-info writing requirements to flask_swagger.egg-info/requires.txt writing flask_swagger.egg-info/PKG-INFO writing top-level names to flask_swagger.egg-info/top_level.txt writing dependency_links to flask_swagger.egg-info/dependency_links.txt writing entry points to flask_swagger.egg-info/entry_points.txt writing pbr to flask_swagger.egg-info/pbr.json writing manifest file 'flask_swagger.egg-info/SOURCES.txt' reading manifest file 'flask_swagger.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'flask_swagger.egg-info/SOURCES.txt' creating build creating build/bdist.linux-x86_64 creating build/bdist.linux-x86_64/rpm creating build/bdist.linux-x86_64/rpm/SOURCES creating build/bdist.linux-x86_64/rpm/SPECS creating build/bdist.linux-x86_64/rpm/BUILD creating build/bdist.linux-x86_64/rpm/RPMS creating build/bdist.linux-x86_64/rpm/SRPMS writing 'build/bdist.linux-x86_64/rpm/SPECS/flask-swagger.spec' running sdist running check warning: check: missing meta-data: if 'author' supplied, 'author_email' must be supplied too

creating flask-swagger-0.2.11 creating flask-swagger-0.2.11/flask_swagger.egg-info making hard links in flask-swagger-0.2.11... hard linking LICENSE -> flask-swagger-0.2.11 hard linking MANIFEST.in -> flask-swagger-0.2.11 hard linking README -> flask-swagger-0.2.11 hard linking README.md -> flask-swagger-0.2.11 hard linking build_swagger_spec.py -> flask-swagger-0.2.11 hard linking flask_swagger.py -> flask-swagger-0.2.11 hard linking setup.py -> flask-swagger-0.2.11 hard linking flask_swagger.egg-info/PKG-INFO -> flask-swagger-0.2.11/flask_swagger.egg-info hard linking flask_swagger.egg-info/SOURCES.txt -> flask-swagger-0.2.11/flask_swagger.egg-info hard linking flask_swagger.egg-info/dependency_links.txt -> flask-swagger-0.2.11/flask_swagger.egg-info hard linking flask_swagger.egg-info/entry_points.txt -> flask-swagger-0.2.11/flask_swagger.egg-info hard linking flask_swagger.egg-info/pbr.json -> flask-swagger-0.2.11/flask_swagger.egg-info hard linking flask_swagger.egg-info/requires.txt -> flask-swagger-0.2.11/flask_swagger.egg-info hard linking flask_swagger.egg-info/top_level.txt -> flask-swagger-0.2.11/flask_swagger.egg-info Writing flask-swagger-0.2.11/setup.cfg creating dist Creating tar archive removing 'flask-swagger-0.2.11' (and everything under it) copying dist/flask-swagger-0.2.11.tar.gz -> build/bdist.linux-x86_64/rpm/SOURCES building RPMs rpmbuild -ba --define _topdir /home/krasmussen/Desktop/flask-swagger/build/bdist.linux-x86_64/rpm --clean build/bdist.linux-x86_64/rpm/SPECS/flask-swagger.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.uDFSi3

Last metadata expiration check performed 0:26:15 ago on Tue Nov 10 13:45:14 2015.

Dependencies resolved.

Package Arch Version Repository Size

Installing: flask-swagger noarch 0.2.11-1 @commandline 20 k

Transaction Summary

Install 1 Package

Total size: 20 k Installed size: 21 k Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Installing : flask-swagger-0.2.11-1.noarch 1/1 Verifying : flask-swagger-0.2.11-1.noarch 1/1

Installed: flask-swagger.noarch 0.2.11-1

Complete! [krasmussen@kras-desktop flask-swagger]$ cd ~ [krasmussen@kras-desktop ~]$ python Python 2.7.10 (default, Sep 24 2015, 17:50:09) [GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information.

from flask_swagger import swagger

atlithorn commented 8 years ago

Thank you!