Skip to content

Commit

Permalink
Closes #41: include conf/*.toml in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
eli64s committed Aug 29, 2023
1 parent a65e415 commit d32df60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "readmeai"
version = "0.1.96"
version = "0.1.97"
description = "🚀 Generate awesome README.md files from the terminal, powered by OpenAI's GPT language model APIs 💫"
authors = ["Eli <[email protected]>"]
license = "MIT"
Expand Down Expand Up @@ -63,9 +63,6 @@ click = "^8.1.6"
[tool.poetry.scripts]
readmeai = "readmeai.main:cli"

[tool.poetry.package]
include = ["conf/*.toml"]

[tool.ruff]
line-length = 88
target-version = "py39"
Expand Down
3 changes: 2 additions & 1 deletion readmeai/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ def __post_init__(self):

def _get_config_dict(handler: factory.FileHandler, path: str) -> dict:
"""Get configuration dictionary from TOML file."""
path = Path("conf/") / path
package_dir = os.path.dirname(os.path.abspath(__file__))
path = os.path.join(package_dir, "conf", path)
return handler.read(path)


Expand Down

0 comments on commit d32df60

Please sign in to comment.