From 5b46c8f11389485fa1bf519a97ce654e68ac7579 Mon Sep 17 00:00:00 2001 From: Ross Williams Date: Mon, 22 Jun 2020 22:35:58 +0100 Subject: [PATCH] Setup build more --- .gitignore | 2 ++ scuttle/__init__.py | 2 +- setup.py | 7 +++++++ test/test_api.py | 1 + 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 13b867e..aac816a 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,5 @@ pylintrc .cache Pipfile.lock *.egg-info +dist +build diff --git a/scuttle/__init__.py b/scuttle/__init__.py index d107637..a57aca5 100644 --- a/scuttle/__init__.py +++ b/scuttle/__init__.py @@ -1,3 +1,3 @@ from .wrapper import scuttle -__version__ = "0.0.1" +__version__ = "0.1.0" diff --git a/setup.py b/setup.py index 247d310..9d3f24b 100644 --- a/setup.py +++ b/setup.py @@ -5,6 +5,11 @@ from scuttle import __version__ +from os import path +this_directory = path.abspath(path.dirname(__file__)) +with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: + long_description = f.read() + setup( name='scuttle', version=__version__, @@ -17,6 +22,8 @@ author="Ross Williams", author_email="ross@rossjrw.com", description="Python wrapper for SCUTTLE API.", + long_description=long_description, + long_description_content_type='text/markdown', install_requires=[ "requests" ] diff --git a/test/test_api.py b/test/test_api.py index 9f0e94c..544f93c 100644 --- a/test/test_api.py +++ b/test/test_api.py @@ -36,6 +36,7 @@ def test_page(): page_id = pages[0]['id'] assert wiki.page_by_id(page_id)['id'] == page_id assert wiki.page_by_slug("scp-001")['metadata']['wikidot_metadata']['fullname'] == "scp-001" + assert wiki.page_by_slug("component:ar-theme")['metadata']['wikidot_metadata']['created_by'] == "Croquembouche" if len(votes := wiki.page_votes(page_id)) > 0: assert isinstance(votes[0]['vote'], int) if len(tags := wiki.page_tags(page_id)) > 0: