Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include README.md
include LICENSE
include config.yaml.example
2 changes: 1 addition & 1 deletion email_processor/__version__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Version information for email_processor package."""

__version__ = "8.0.4"
__version__ = "8.0.5"
14 changes: 13 additions & 1 deletion email_processor/cli/commands/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@
CONFIG_EXAMPLE = "config.yaml.example"


def _find_config_example() -> Path:
"""Find config.yaml.example file, checking current directory.

Returns:
Path to config.yaml.example file
"""
# Check current directory (for development and installed package)
# Files from MANIFEST.in are in .dist-info directory
# TODO: Add support for finding config.yaml.example in package when included as package data
return Path(CONFIG_EXAMPLE)


def create_default_config(config_path: str, ui: CLIUI) -> int:
"""Create default configuration file from config.yaml.example.

Expand All @@ -20,7 +32,7 @@ def create_default_config(config_path: str, ui: CLIUI) -> int:
Returns:
int: 0 on success, 1 on error
"""
example_path = Path(CONFIG_EXAMPLE)
example_path = _find_config_example()
target_path = Path(config_path)

if not example_path.exists():
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages = {find = {}}

[project]
name = "email-processor"
version = "8.0.4"
version = "8.0.5"
description = "Email attachment processor with IMAP and SMTP support"
readme = "README.md"
requires-python = ">=3.9"
Expand Down
Loading