Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove sys.exit from develop.py #5453

Merged
merged 6 commits into from
Aug 12, 2024
Merged

Conversation

beeankha
Copy link
Member

@beeankha beeankha commented Aug 9, 2024

Description

Replacing sys.exit calls in conda_build/develop.py with the new CondaBuildUserError exception for better error handling + unit tests.

The changes in this PR are separated out from work previously done by @kenodegard in #5255
Xref #4209

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Aug 9, 2024
Copy link

codspeed-hq bot commented Aug 9, 2024

CodSpeed Performance Report

Merging #5453 will not alter performance

Comparing beeankha:remove-sys.exit-develop (823f64f) with main (0a9a8a7)

Summary

✅ 3 untouched benchmarks

conda_build/develop.py Outdated Show resolved Hide resolved
@@ -99,3 +102,22 @@ def test_uninstall(site_packages: Path, conda_pth: Path):
_uninstall(site_packages, path)

assert list(filter(None, conda_pth.read_text().split("\n"))) == develop_paths


def test_get_setup_py(conda_pth: Path):
Copy link
Contributor

Choose a reason for hiding this comment

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

The conda_pth fixture you use here does not appear to be used since it's overwritten on line 109?

tests/test_develop.py Outdated Show resolved Hide resolved
@beeankha beeankha marked this pull request as ready for review August 9, 2024 18:22
@beeankha beeankha requested a review from a team as a code owner August 9, 2024 18:22
@beeankha
Copy link
Member Author

beeankha commented Aug 9, 2024

pre-commit.ci autofix

@beeankha beeankha merged commit 45fe475 into conda:main Aug 12, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed [bot] added once the contributor has signed the CLA
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants