From 94cca05bd5292a84ed3101ede2119d1643bd47cb Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Sun, 4 Aug 2019 22:01:10 -0400 Subject: [PATCH] Adding setup.py file --- .gitignore | 3 ++- README.md | 0 jetforce.py | 6 +++--- setup.py | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 README.md create mode 100644 setup.py 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", + ], +)