commit
107ed91120
4 changed files with 20 additions and 6 deletions
15
setup.cfg
15
setup.cfg
|
|
@ -1,6 +1,6 @@
|
|||
[metadata]
|
||||
name = httpaste-victorykit
|
||||
version = 1.0.0-alpha.1
|
||||
version = 1.0.3-alpha
|
||||
author = Tiara Rodney
|
||||
author_email = t.rodney@victoryk.it
|
||||
description = a versatile HTTP pastebin
|
||||
|
|
@ -10,10 +10,14 @@ url = https://victorykit.bitbucket.io/httpaste
|
|||
project_urls =
|
||||
Bug Tracker = https://bitbucket.org/victorykit/httpaste/jira
|
||||
classifiers =
|
||||
topic = : Software Development :: Libraries :: Python Modules
|
||||
Programming Language :: Python :: 3
|
||||
Development Status :: 3 - Alpha
|
||||
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
|
||||
License :: Other/Proprietary License
|
||||
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
||||
|
||||
[options]
|
||||
install_requires =
|
||||
|
|
@ -33,3 +37,6 @@ console_scripts =
|
|||
|
||||
[options.packages.find]
|
||||
where = src
|
||||
|
||||
[options.package_data]
|
||||
schema = src/httpaste/schema/httpaste.openapi.json
|
||||
|
|
@ -30,7 +30,14 @@ def command_standalone(**kwargs):
|
|||
"""
|
||||
|
||||
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'))
|
||||
|
||||
|
|
@ -110,7 +117,7 @@ def parser():
|
|||
|
||||
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.add_argument('--config-path', '-c', required=True)
|
||||
|
|
|
|||
0
src/httpaste/helper/__init__.py
Normal file
0
src/httpaste/helper/__init__.py
Normal file
0
src/httpaste/schema/__init__.py
Normal file
0
src/httpaste/schema/__init__.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue