diff --git a/.gitignore b/.gitignore index 439c13e..fb7a433 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ *.key .idea/ .mypy_cache/ -NOTES \ No newline at end of file +NOTES +venv/ \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/jetforce.py b/jetforce.py index 2b31ef2..217066c 100644 --- a/jetforce.py +++ b/jetforce.py @@ -325,11 +325,11 @@ def run_server(): description="An Experimental Gemini Protocol Server", formatter_class=argparse.ArgumentDefaultsHelpFormatter, ) - parser.add_argument("--host", help="Server host", default="127.0.0.1") - parser.add_argument("--port", help="Server port", type=int, default=1965) + parser.add_argument("--host", help="server host", default="127.0.0.1") + parser.add_argument("--port", help="server port", type=int, default=1965) parser.add_argument( "--dir", - help="Local directory to serve files from", + help="local directory to serve files from", type=str, default=StaticDirectoryApp.root, ) diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..fdcac8c --- /dev/null +++ b/setup.py @@ -0,0 +1,34 @@ +import codecs + +import setuptools + + +def long_description(): + with codecs.open("README.md", encoding="utf8") as f: + return f.read() + + +setuptools.setup( + name="Jetforce", + version="0.1.0", + url="https://github.com/michael-lazar/jetforce", + license="GPL-3.0", + author="Michael Lazar", + author_email="lazar.michael22@gmail.com", + description="An Experimental Gemini Server", + long_description=long_description(), + py_modules=["jetforce"], + entry_points={"console_scripts": ["jetforce=jetforce:run_server"]}, + python_requires=">=3.6", + keywords="gemini server tcp gopher asyncio", + classifiers=[ + "Environment :: Web Environment", + "Intended Audience :: Developers", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Topic :: Internet :: WWW/HTTP :: Dynamic Content", + "Topic :: Software Development :: Libraries :: Python Modules", + ], +)