Skip to content

Commit

Permalink
chore: use project_version() in docs utils
Browse files Browse the repository at this point in the history
Do not rely on installed version number, use version number in
pyproject.toml directly.
  • Loading branch information
rezib committed Apr 15, 2024
1 parent 0313e1b commit 2ef1cef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/utils/gen-openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import os
from pathlib import Path

from rfl.build.projectversion import project_version
from racksdb import RacksDB
from racksdb.version import get_version
from racksdb.views import RacksDBViews
from racksdb.generic.schema import Schema, SchemaFileLoader, SchemaDefinedTypeLoader
from racksdb.generic.openapi import OpenAPIGenerator
Expand All @@ -28,7 +28,7 @@ def main():
views = RacksDBViews()
openapi = OpenAPIGenerator(
"RacksDB",
get_version(),
project_version(),
{"RacksDB": racksdb_schema, "Drawings": drawing_schema},
views,
)
Expand Down

0 comments on commit 2ef1cef

Please sign in to comment.