Merged in master (pull request #11)

Master
This commit is contained in:
Tiara Rodney 2022-04-02 22:56:55 +00:00
commit 107ed91120
4 changed files with 20 additions and 6 deletions

View file

@ -1,6 +1,6 @@
[metadata] [metadata]
name = httpaste-victorykit name = httpaste-victorykit
version = 1.0.0-alpha.1 version = 1.0.3-alpha
author = Tiara Rodney author = Tiara Rodney
author_email = t.rodney@victoryk.it author_email = t.rodney@victoryk.it
description = a versatile HTTP pastebin description = a versatile HTTP pastebin
@ -10,10 +10,14 @@ url = https://victorykit.bitbucket.io/httpaste
project_urls = project_urls =
Bug Tracker = https://bitbucket.org/victorykit/httpaste/jira Bug Tracker = https://bitbucket.org/victorykit/httpaste/jira
classifiers = classifiers =
topic = : Software Development :: Libraries :: Python Modules Development Status :: 3 - Alpha
Programming Language :: Python :: 3 Intended Audience :: Developers
Topic :: Internet :: WWW/HTTP :: WSGI :: Server
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Operating System :: OS Independent Operating System :: OS Independent
License :: Other/Proprietary License License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
[options] [options]
install_requires = install_requires =
@ -33,3 +37,6 @@ console_scripts =
[options.packages.find] [options.packages.find]
where = src where = src
[options.package_data]
schema = src/httpaste/schema/httpaste.openapi.json

View file

@ -30,7 +30,14 @@ def command_standalone(**kwargs):
""" """
from httpaste import load_config, get_flask_app from httpaste import load_config, get_flask_app
from gevent.pywsgi import WSGIServer
try:
from gevent.pywsgi import WSGIServer
except ImportError as e:
raise ImportError(' '.join((
'gevent is currently not installed.',
'Please install it by running \'python3 -m pip install gevent\'.'
))) from e
config, server_config = load_config(kwargs.get('config_path')) config, server_config = load_config(kwargs.get('config_path'))
@ -110,7 +117,7 @@ def parser():
p = argparse.ArgumentParser(description='Process some integers.') p = argparse.ArgumentParser(description='Process some integers.')
sp = p.add_subparsers(dest='command') sp = p.add_subparsers(dest='command', required=True)
p_standalone = sp.add_parser('standalone', help=command_standalone.__doc__) p_standalone = sp.add_parser('standalone', help=command_standalone.__doc__)
p_standalone.add_argument('--config-path', '-c', required=True) p_standalone.add_argument('--config-path', '-c', required=True)

View file

View file