From 0b6a9d09c2ac51b364965305ce4d3578349bc4a3 Mon Sep 17 00:00:00 2001 From: marko-kraemer Date: Sat, 2 Nov 2024 00:16:44 +0100 Subject: [PATCH] wip --- MANIFEST.in | 17 +++++++++++++++++ agentpress/cli.py | 18 ++++++++---------- pyproject.toml | 3 --- 3 files changed, 25 insertions(+), 13 deletions(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..f37bbc38 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,17 @@ +# Include all Python files in agentpress directory +recursive-include agentpress *.py + +# Include example files +recursive-include agentpress/examples * + +# Include any other necessary files +include LICENSE +include README.md +include pyproject.toml + +# Exclude unnecessary files +global-exclude *.pyc +global-exclude __pycache__ +global-exclude .DS_Store +global-exclude *.pyo +global-exclude *.pyd \ No newline at end of file diff --git a/agentpress/cli.py b/agentpress/cli.py index e352cd35..bf80d381 100644 --- a/agentpress/cli.py +++ b/agentpress/cli.py @@ -156,19 +156,17 @@ def init(): if selected_example: click.echo(f"๐Ÿ“ Example agent files created in the current directory.") - click.echo("\n๐Ÿ”ฅ Quick start:") - click.echo("1. Create and activate a virtual environment:") - click.echo(" python -m venv venv") - click.echo(" source venv/bin/activate # On Windows: .\\venv\\Scripts\\activate") + click.echo("\n๐Ÿ”ฅ Quick start:") - if selected_example: - click.echo(f"\n2. Run the example agent:") - click.echo(" python agent.py") - - click.echo("\n๐Ÿ“š Import components in your code:") + click.echo("\n๐Ÿ“šImport agentpress components in your code:") click.echo(f" from {components_dir}.llm import make_llm_api_call") click.echo(f" from {components_dir}.thread_manager import ThreadManager") - + + if selected_example: + click.echo(f"\nRun the example agent:") + click.echo(" python agent.py") + + except Exception as e: click.echo(f"\nโŒ Error during setup: {str(e)}", err=True) return diff --git a/pyproject.toml b/pyproject.toml index 7209837a..854974ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,9 +4,6 @@ version = "0.1.2" description = "Building blocks for AI Agents" authors = ["marko-kraemer "] readme = "README.md" -packages = [ - { include = "agentpress" }, -] license = "MIT" homepage = "https://github.com/kortix-ai/agentpress" repository = "https://github.com/kortix-ai/agentpress"