Skip to content

Commit fd55b6a

Browse files
authored
Merge pull request #1475 from weaviate/update_docs
Update docs and imports
2 parents bb491a8 + 8de90bb commit fd55b6a

12 files changed

+6
-271
lines changed

docs/conf.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import os
88
import sys
99

10-
from pkg_resources import DistributionNotFound, get_distribution
10+
from importlib.metadata import version, PackageNotFoundError
1111

1212
# -- Path setup --------------------------------------------------------------
1313
# If extensions (or modules to document with autodoc) are in another directory,
@@ -28,15 +28,14 @@ def chdir(directory):
2828

2929

3030
try:
31-
dist = get_distribution("weaviate")
32-
except DistributionNotFound:
31+
dist = version("weaviate")
32+
except PackageNotFoundError:
3333
# The project is not installed in readthedocs environment. Read the version with setuptools_scm.
3434
import setuptools_scm
3535

3636
with chdir(".."):
3737
release = setuptools_scm.get_version()
38-
else:
39-
release = dist.version
38+
4039

4140
# -- Project information -----------------------------------------------------
4241

docs/weaviate.batch.rst

Lines changed: 0 additions & 26 deletions
This file was deleted.

docs/weaviate.classification.rst

Lines changed: 0 additions & 26 deletions
This file was deleted.

docs/weaviate.contextionary.rst

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs/weaviate.data.references.rst

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs/weaviate.data.replication.rst

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs/weaviate.data.rst

Lines changed: 0 additions & 27 deletions
This file was deleted.

docs/weaviate.proto.rst

Lines changed: 0 additions & 15 deletions
This file was deleted.

docs/weaviate.proto.v1.rst

Lines changed: 0 additions & 74 deletions
This file was deleted.

docs/weaviate.schema.properties.rst

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs/weaviate.schema.rst

Lines changed: 0 additions & 26 deletions
This file was deleted.

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ packages =
2323
weaviate.collections
2424
weaviate.connect
2525
weaviate.gql
26+
weaviate.outputs
2627
weaviate.proto
2728
weaviate.proto.v1
29+
weaviate.rbac
2830

2931
platforms = any
3032
include_package_data = True

0 commit comments

Comments
 (0)