Skip to content

Commit

Permalink
Setup build more
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjrw committed Jun 22, 2020
1 parent 06c4c19 commit 5b46c8f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ pylintrc
.cache
Pipfile.lock
*.egg-info
dist
build
2 changes: 1 addition & 1 deletion scuttle/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .wrapper import scuttle

__version__ = "0.0.1"
__version__ = "0.1.0"
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__,
Expand All @@ -17,6 +22,8 @@
author="Ross Williams",
author_email="[email protected]",
description="Python wrapper for SCUTTLE API.",
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=[
"requests"
]
Expand Down
1 change: 1 addition & 0 deletions test/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5b46c8f

Please sign in to comment.