Skip to content
Merged
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 .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-dev.txt
python -m pip install -e .

- name: Run tests
env:
PYTHONPATH: ${{ github.workspace }}
run: pytest -q

build_and_push:
Expand Down
19 changes: 19 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "python-examples"
version = "0.1.0"
description = "Algorithms and systems examples repo"
readme = "README.md"
requires-python = ">=3.8"

dependencies = []

Comment on lines +5 to +13

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

2. Runtime deps not declared 🐞 Bug ☼ Reliability

The project metadata sets dependencies = [], but repository code imports pydantic, so a plain
pip install -e . (or wheel install) will produce an environment where imports fail unless users
separately install dependencies. This makes the new pyproject-based install path unreliable.
Agent Prompt
## Issue description
`pyproject.toml` declares no runtime dependencies, but project modules import third-party libraries (e.g., `pydantic`). Installing the project via pip will not pull these in, causing runtime import errors in fresh environments.

## Issue Context
CI currently installs `requirements-dev.txt` (which includes `pydantic`), masking the packaging problem; users/installations that rely on `pyproject.toml` metadata will break.

## Fix Focus Areas
- pyproject.toml[5-13]
- Algorithms/slidingWindow/longestUnique.py[1-7]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

[tool.setuptools]
package-dir = {"" = "."}

[tool.setuptools.packages.find]
where = ["."]
include = ["Algorithms*", "LLMs*"]
Loading