Skip to content

Commit

Permalink
Fix docs, rollover to 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Russell-Newton committed Jul 5, 2023
1 parent 43e26bd commit df2faed
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .isort.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[settings]
known_third_party =docutils,jinja2,playwright,pydantic,pytest,sphinx,tiktokapipy
known_third_party =docutils,jinja2,playwright,pydantic,pytest,sphinx,tiktokapipy,toml
2 changes: 1 addition & 1 deletion docs/ext/autodoc_pydantic/inspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def __init__(self, model: Type[BaseModel]):
self.model = model
self.field_validator_mappings = self.get_field_validator_mapping()

self.config = ConfigInspector(self)
# self.config = ConfigInspector(self)
self.schema = SchemaInspector(self)
self.fields = FieldInspector(self)
# self.validators = ValidatorInspector(self)
Expand Down
4 changes: 3 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import os
import sys

import toml

sys.path.insert(
0, os.path.abspath("../../src")
) # Source code dir relative to this file
Expand All @@ -21,7 +23,7 @@
project = "TikTokPy"
copyright = "2023, Russell Newton"
author = "Russell Newton"
release = "0.2.0a3"
release = toml.load("../../pyproject.toml")["project"]["version"]

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "tiktokapipy"
version = "0.2.0a3"
version = "0.2.0"
authors = [
{ name="Russell Newton", email="[email protected]" },
]
Expand Down Expand Up @@ -44,6 +44,7 @@ test = [
"tox",
]
docs = [
"toml",
"docutils>=0.18",
"sphinx<7",
"sphinx-rtd-theme",
Expand Down

0 comments on commit df2faed

Please sign in to comment.