Adding setup.py file
This commit is contained in:
parent
e35eb11663
commit
94cca05bd5
|
@ -3,3 +3,4 @@
|
|||
.idea/
|
||||
.mypy_cache/
|
||||
NOTES
|
||||
venv/
|
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -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",
|
||||
],
|
||||
)
|
Loading…
Reference in New Issue