Skip to content

Packaging#42

Draft
loriab wants to merge 4 commits intogt-sse-center:masterfrom
loriab:packaging
Draft

Packaging#42
loriab wants to merge 4 commits intogt-sse-center:masterfrom
loriab:packaging

Conversation

@loriab
Copy link
Copy Markdown
Collaborator

@loriab loriab commented Dec 15, 2025

Description

Brief description of what this PR does.

Changes

  • Added new feature
  • Fixed bug
  • Updated documentation
  • Added tests

Demo

# Example commands to test the changes
uv run iris --help

Related Issue

Closes #[issue_number]

Additional Notes

Any additional context or notes for reviewers.

Copilot AI review requested due to automatic review settings December 15, 2025 21:24
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Dec 15, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Files with missing lines Coverage Δ
iris/__init__.py 68.83% <100.00%> (+0.41%) ⬆️

... and 12 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Comment thread pyproject.toml
[tool.setuptools.packages.find]
include = ["iris*"]
where = ["."]
include = ["iris", "iris.*", "iris.demo"]
Copy link

Copilot AI Dec 15, 2025

Choose a reason for hiding this comment

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

The pattern "iris.*" already matches all subpackages under iris, making the explicit "iris.demo" entry redundant. Consider removing "iris.demo" from the include list since it's already covered by the wildcard pattern.

Suggested change
include = ["iris", "iris.*", "iris.demo"]
include = ["iris", "iris.*"]

Copilot uses AI. Check for mistakes.
Comment thread iris/__init__.py
Comment on lines 21 to +26
def get_demo_file(example=None):
demo_file = join(
os.getcwd(), "demo", "cloud-segmentation.json"
)
demo_file_repo = Path(__file__).parent.parent / "demo" / "cloud-segmentation.json"
demo_file_installed = Path(__file__).parent / "demo" / "cloud-segmentation.json"

demo_file = demo_file_repo if demo_file_repo.exists() else demo_file_installed
return str(demo_file)
Copy link

Copilot AI Dec 15, 2025

Choose a reason for hiding this comment

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

The updated get_demo_file function should have test coverage to ensure it correctly handles both development (repository) and installed package scenarios. Consider adding tests that verify the function returns the correct path in both cases.

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/ci.yml Outdated
- name: Install pypa/build & build a binary wheel and a source tarball
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
run: |
uv pip install build --user
Copy link

Copilot AI Dec 15, 2025

Choose a reason for hiding this comment

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

Using 'uv pip install build --user' may not work as expected. The '--user' flag is for standard pip and may not be compatible with uv's pip interface. Consider using 'uv pip install build' without the '--user' flag, as uv manages its own virtual environments.

Suggested change
uv pip install build --user
uv pip install build

Copilot uses AI. Check for mistakes.
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.

3 participants