From e154a067c3ee4c50bf571cd792189c8b81796d44 Mon Sep 17 00:00:00 2001 From: Niki Vihtola Date: Tue, 2 Dec 2025 09:05:54 +0200 Subject: [PATCH] make this to run globally through pip installation --- install.sh | 1 + pyproject.toml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 pyproject.toml diff --git a/install.sh b/install.sh index 4341e4f..8204c11 100755 --- a/install.sh +++ b/install.sh @@ -46,6 +46,7 @@ setup_venv() { source "$VENV_DIR/bin/activate" pip install --upgrade pip > /dev/null 2>&1 pip install -r "$REPO_DIR/requirements.txt" > /dev/null 2>&1 + pip install -e "$REPO_DIR" > /dev/null 2>&1 deactivate echo "✓ Virtual environment created and dependencies installed" } diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..609389b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,45 @@ +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "jrnl-dev" +version = "0.1.0" +description = "A CLI tool for developers to track work for daily standups using git hooks and LLM-powered summaries" +readme = "README.md" +requires-python = ">=3.8" +authors = [ + {name = "JRNL Contributors"} +] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "Topic :: Software Development :: Version Control :: Git", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] +dependencies = [ + "anthropic>=0.39.0", + "requests>=2.31.0", +] + +[project.optional-dependencies] +dev = [ + "pytest>=7.0", + "black>=23.0", + "mypy>=1.0", +] + +[project.scripts] +jrnl = "jrnl.cli:main" + +[tool.setuptools] +packages = ["jrnl", "jrnl.commands", "jrnl.database", "jrnl.database.sql_statements", "jrnl.git_integration", "jrnl.llm_providers", "jrnl.utils"] + +[tool.setuptools.package-data] +jrnl = ["py.typed"]