Added baseline for sphinx documentation and on2FACode
event
The docs are still very WIP, but they should be functional. Just execute `make html` in the docs folder, and you should be able to navigate to `/docs/_build/html` and view it in your browser
This commit is contained in:
7
setup.py
7
setup.py
@@ -21,6 +21,7 @@ version = None
|
||||
author = None
|
||||
email = None
|
||||
source = None
|
||||
description = None
|
||||
with open(os.path.join('fbchat', '__init__.py')) as f:
|
||||
for line in f:
|
||||
if line.strip().startswith('__version__'):
|
||||
@@ -31,7 +32,9 @@ with open(os.path.join('fbchat', '__init__.py')) as f:
|
||||
email = line.split('=')[1].strip().replace('"', '').replace("'", '')
|
||||
elif line.strip().startswith('__source__'):
|
||||
source = line.split('=')[1].strip().replace('"', '').replace("'", '')
|
||||
elif None not in (version, author, email, source):
|
||||
elif line.strip().startswith('__description__'):
|
||||
description = line.split('=')[1].strip().replace('"', '').replace("'", '')
|
||||
elif None not in (version, author, email, source, description):
|
||||
break
|
||||
|
||||
setup(
|
||||
@@ -40,7 +43,7 @@ setup(
|
||||
author_email=email,
|
||||
license='BSD License',
|
||||
keywords=["facebook chat fbchat"],
|
||||
description="Facebook Chat (Messenger) for Python",
|
||||
description=description,
|
||||
long_description=readme_content,
|
||||
classifiers=[
|
||||
'Development Status :: 2 - Pre-Alpha',
|
||||
|
Reference in New Issue
Block a user