Skip to content

Commit 5b46c8f

Browse files
committed
Setup build more
1 parent 06c4c19 commit 5b46c8f

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ pylintrc
99
.cache
1010
Pipfile.lock
1111
*.egg-info
12+
dist
13+
build

scuttle/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from .wrapper import scuttle
22

3-
__version__ = "0.0.1"
3+
__version__ = "0.1.0"

setup.py

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

66
from scuttle import __version__
77

8+
from os import path
9+
this_directory = path.abspath(path.dirname(__file__))
10+
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
11+
long_description = f.read()
12+
813
setup(
914
name='scuttle',
1015
version=__version__,
@@ -17,6 +22,8 @@
1722
author="Ross Williams",
1823
author_email="ross@rossjrw.com",
1924
description="Python wrapper for SCUTTLE API.",
25+
long_description=long_description,
26+
long_description_content_type='text/markdown',
2027
install_requires=[
2128
"requests"
2229
]

test/test_api.py

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def test_page():
3636
page_id = pages[0]['id']
3737
assert wiki.page_by_id(page_id)['id'] == page_id
3838
assert wiki.page_by_slug("scp-001")['metadata']['wikidot_metadata']['fullname'] == "scp-001"
39+
assert wiki.page_by_slug("component:ar-theme")['metadata']['wikidot_metadata']['created_by'] == "Croquembouche"
3940
if len(votes := wiki.page_votes(page_id)) > 0:
4041
assert isinstance(votes[0]['vote'], int)
4142
if len(tags := wiki.page_tags(page_id)) > 0:

0 commit comments

Comments
 (0)