refactor: improve package structure
- Update import paths to use full package name - Add package __init__.py - Update pyproject.toml with correct dependencies and tools - Configure pytest, black, and isort
This commit is contained in:
parent
dd797ab5e4
commit
7514326279
6
__init__.py
Normal file
6
__init__.py
Normal file
@ -0,0 +1,6 @@
|
||||
"""Agent Task Executor
|
||||
|
||||
A flexible task execution framework that uses LLMs (Large Language Models).
|
||||
"""
|
||||
|
||||
__version__ = "0.1.0"
|
||||
@ -1,27 +1,42 @@
|
||||
[project]
|
||||
name = "agent-task-executor"
|
||||
name = "agent_task_executor"
|
||||
version = "0.1.0"
|
||||
description = "An LLM-based agent task execution framework"
|
||||
description = "A flexible task execution framework that uses LLMs"
|
||||
authors = [
|
||||
{name = "Your Name", email = "your.email@example.com"},
|
||||
{ name = "Your Name", email = "your.email@example.com" }
|
||||
]
|
||||
dependencies = [
|
||||
"python-dateutil>=2.8.2",
|
||||
"typing-extensions>=4.4.0",
|
||||
"openai>=1.0.0",
|
||||
"httpx>=0.24.1",
|
||||
"tenacity>=8.2.2",
|
||||
"pyyaml>=6.0.1",
|
||||
"cryptography>=41.0.3",
|
||||
"python-dotenv>=1.0.0",
|
||||
"tenacity>=8.2.0",
|
||||
"httpx>=0.24.0",
|
||||
]
|
||||
requires-python = ">=3.8"
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = [
|
||||
"pytest>=7.4.0",
|
||||
"black>=23.7.0",
|
||||
"isort>=5.12.0",
|
||||
"mypy>=1.4.1",
|
||||
]
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.rye]
|
||||
managed = true
|
||||
dev-dependencies = [
|
||||
"pytest>=7.3.1",
|
||||
"black>=23.7.0",
|
||||
"isort>=5.12.0",
|
||||
]
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
python_files = ["test_*.py"]
|
||||
addopts = "-v"
|
||||
|
||||
[tool.black]
|
||||
line-length = 100
|
||||
target-version = ["py38"]
|
||||
include = '\.pyi?$'
|
||||
|
||||
[tool.isort]
|
||||
profile = "black"
|
||||
line_length = 100
|
||||
multi_line_output = 3
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
from task_executor import TaskExecutor, TaskStatus
|
||||
from agent_task_executor.task_executor import TaskExecutor, TaskStatus
|
||||
from typing import Dict, Any
|
||||
import time
|
||||
import json
|
||||
|
||||
Loading…
Reference in New Issue
Block a user