diff --git a/setup.cfg b/setup.cfg index bc3179b..802dfa7 100644 --- a/setup.cfg +++ b/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 \ No newline at end of file diff --git a/src/httpaste/__main__.py b/src/httpaste/__main__.py index 4a6aae4..436a46c 100644 --- a/src/httpaste/__main__.py +++ b/src/httpaste/__main__.py @@ -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) diff --git a/src/httpaste/helper/__init__.py b/src/httpaste/helper/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/httpaste/schema/__init__.py b/src/httpaste/schema/__init__.py new file mode 100644 index 0000000..e69de29