Skip to content

Commit

Permalink
Fix tomllib py311 import bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
eli64s committed Oct 27, 2024
1 parent 9667fa7 commit 98f887a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "readmeai"
version = "0.5.99.post4"
version = "0.5.99.post5"
description = "Automated README file generator, powered by AI."
authors = ["Eli <egsalamie@gmail.com>"]
license = "MIT"
Expand Down
8 changes: 6 additions & 2 deletions readmeai/templates/quickstart.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
from pathlib import Path
from string import Template

import tomllib

from readmeai.config.settings import ConfigLoader
from readmeai.generators.quickstart import QuickStartGenerator
from readmeai.ingestion.models import QuickStart, RepositoryContext
from readmeai.utils.helpers import is_available

if is_available("tomllib"): # pragma: no cover
import tomllib
elif is_available("tomli"): # pragma: no cover
import tomli as tomllib


class QuickStartBuilder:
Expand Down

0 comments on commit 98f887a

Please sign in to comment.