Skip to content
Closed
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: 1 addition & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ cortex install nginx --dry-run
```bash
python3 -m venv venv
source venv/bin/activate
pip install -e .
pip install -r requirements-dev.txt
pip install -e ".[dev]"
pytest tests/ -v
```

Expand Down
19 changes: 7 additions & 12 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,24 +123,19 @@ git remote add upstream https://github.com/cortexlinux/cortex.git
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt
pip install -r requirements-dev.txt

# Install in development mode
pip install -e .
# Install in development mode (includes all dependencies)
pip install -e ".[dev]"

# Run tests to verify setup
pytest tests/ -v
```

### Requirements Files

If `requirements-dev.txt` doesn't exist, install these manually:
### Dependencies

```bash
pip install pytest pytest-cov pytest-mock black pylint mypy bandit
```
All dependencies are defined in `pyproject.toml`. To install:
- **Core dependencies**: `pip install -e .`
- **With dev tools**: `pip install -e ".[dev]"`
- **All extras**: `pip install -e ".[all]"`

### IDE Setup

Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ help:

dev:
$(PYTHON) -m pip install -U pip
$(PYTHON) -m pip install -e .
$(PYTHON) -m pip install -r requirements-dev.txt
$(PYTHON) -m pip install -e ".[dev]"
@echo "✅ Dev environment ready"

test:
Expand Down
3 changes: 1 addition & 2 deletions docs/guides/Developer-Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ python3 -m venv venv
source venv/bin/activate

# Install dev dependencies
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install -e ".[dev]"

# Run tests
pytest tests/
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/Getting-Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
git clone https://github.com/cortexlinux/cortex.git
cd cortex

# Install dependencies
pip install -r requirements.txt
# Install Cortex
pip install -e .

# Configure API key
export ANTHROPIC_API_KEY="your-key-here"
Expand Down
17 changes: 11 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,26 @@ requires-python = ">=3.10"
dependencies = [
"anthropic>=0.18.0",
"openai>=1.0.0",
"rich>=13.0.0",
"pyyaml>=6.0.0",
"requests>=2.32.4",
"PyYAML>=6.0.3",
"python-dotenv>=1.0.0",
"cryptography>=44.0.1",
"rich>=13.0.0",
"typing-extensions>=4.0.0",
]

[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-timeout>=2.0.0",
"black>=23.0.0",
"ruff>=0.1.0",
"pytest-asyncio>=0.23.0",
"pytest-mock>=3.12.0",
"pytest-timeout>=2.3.1",
"black>=24.0.0",
"ruff>=0.8.0",
"mypy>=1.0.0",
"pre-commit>=3.0.0",
"isort>=5.0.0",
"isort>=5.13.0",
]
security = [
"bandit>=1.7.0",
Expand Down
10 changes: 0 additions & 10 deletions requirements-dev.txt

This file was deleted.

25 changes: 0 additions & 25 deletions requirements.txt

This file was deleted.

26 changes: 12 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,18 @@
with open("README.md", encoding="utf-8") as fh:
long_description = fh.read()

# Try to read requirements from root, fallback to LLM directory
requirements_path = "requirements.txt"
if not os.path.exists(requirements_path):
requirements_path = os.path.join("LLM", "requirements.txt")

if os.path.exists(requirements_path):
with open(requirements_path, encoding="utf-8") as fh:
requirements = [
line.strip()
for line in fh
if line.strip() and not line.startswith("#") and not line.startswith("-r")
]
else:
requirements = ["anthropic>=0.18.0", "openai>=1.0.0"]
# Dependencies are now defined in pyproject.toml
# This is kept for backward compatibility but pyproject.toml is the source of truth
requirements = [
"anthropic>=0.18.0",
"openai>=1.0.0",
"requests>=2.32.4",
"PyYAML>=6.0.3",
"python-dotenv>=1.0.0",
"cryptography>=44.0.1",
"rich>=13.0.0",
"typing-extensions>=4.0.0",
]

setup(
name="cortex-linux",
Expand Down
Loading