Adding setup.py file

This commit is contained in:
Michael Lazar 2019-08-04 22:01:10 -04:00
parent e35eb11663
commit 94cca05bd5
4 changed files with 39 additions and 4 deletions

3
.gitignore vendored
View File

@ -2,4 +2,5 @@
*.key
.idea/
.mypy_cache/
NOTES
NOTES
venv/

0
README.md Normal file
View File

View File

@ -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,
)

34
setup.py Normal file
View File

@ -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",
],
)