Skip to content

feat: add setup.py packaging and .env.example#2

Merged
labgadget015-dotcom merged 1 commit into
mainfrom
feat/packaging
Mar 7, 2026
Merged

feat: add setup.py packaging and .env.example#2
labgadget015-dotcom merged 1 commit into
mainfrom
feat/packaging

Conversation

@labgadget015-dotcom

Copy link
Copy Markdown
Owner
  • setup.py: installable package with gh-copilot console entry point
  • [llm] extra for anthropic, [dev] for pytest
  • .env.example: documents all env vars

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 7, 2026 05:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds basic Python packaging and an environment-variable template to make the project installable and easier to configure.

Changes:

  • Add setup.py to package the project and expose a gh-copilot console entry point.
  • Define optional dependency extras for LLM support ([llm]) and development/testing ([dev]).
  • Add .env.example documenting environment variables for configuration.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
setup.py Defines package metadata, dependencies, optional extras, and the gh-copilot console script.
.env.example Provides a template for required/optional environment variables.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread setup.py
@@ -0,0 +1,23 @@
from setuptools import setup, find_packages

Copilot AI Mar 7, 2026

Copy link

Choose a reason for hiding this comment

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

find_packages is imported but never used. Either remove it from the import list, or switch to packages=find_packages(...) if you intend to package a package directory instead of individual py_modules.

Suggested change
from setuptools import setup, find_packages
from setuptools import setup

Copilot uses AI. Check for mistakes.
Comment thread setup.py
version="1.0.0",
description="AI-powered GitHub notification triage using Claude",
py_modules=["notification_copilot", "github_api_client", "llm_classifier", "actions_executor"],
python_requires=">=3.11",

Copilot AI Mar 7, 2026

Copy link

Choose a reason for hiding this comment

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

python_requires is set to >=3.11, but the README currently advertises “Python 3.9+”. This mismatch will surprise users and can block installation on supported environments; either lower python_requires to match actual compatibility or update the README to reflect the new minimum Python version.

Suggested change
python_requires=">=3.11",
python_requires=">=3.9",

Copilot uses AI. Check for mistakes.
Comment thread .env.example
Comment on lines +8 to +11

# Optional tuning
TRIAGE_LIMIT=50 # max notifications per run
TRIAGE_DRY_RUN=false # set to true to preview without executing actions

Copilot AI Mar 7, 2026

Copy link

Choose a reason for hiding this comment

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

.env.example documents TRIAGE_LIMIT and TRIAGE_DRY_RUN, but the codebase does not read these environment variables (the limit/dry-run behavior is currently controlled via CLI args and default values). Either remove these variables from the example or implement env var support so the example matches actual runtime behavior.

Suggested change
# Optional tuning
TRIAGE_LIMIT=50 # max notifications per run
TRIAGE_DRY_RUN=false # set to true to preview without executing actions

Copilot uses AI. Check for mistakes.
@labgadget015-dotcom labgadget015-dotcom merged commit 4a5da71 into main Mar 7, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants