make this to run globally through pip installation

This commit is contained in:
Niki Vihtola
2025-12-02 09:05:54 +02:00
parent cd75a17737
commit e154a067c3
2 changed files with 46 additions and 0 deletions

View File

@@ -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"
}

45
pyproject.toml Normal file
View File

@@ -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"]