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

chore: update changelog, minor touchups #469

Merged
merged 4 commits into from May 13, 2022

Conversation

henryiii
Copy link
Contributor

A few fixes and cleanups.

print('{red}ERROR{reset} {}'.format(msg, **_STYLES))
exit(code)
print('{red}ERROR{reset} {}'.format(msg, **_STYLES), file=sys.stderr)
raise SystemExit(code)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

exit() is not part of the language, it's injected by site.py. Better to use sys.exit(), or even better, just raise SystemExit directly.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, that is a bug.

]


def __dir__() -> List[str]:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes tab completion prettier on Python 3.7+.

@layday
Copy link
Member

layday commented May 12, 2022

I assume the tests are failing because errors are printed to stdout stderr now.

src/build/__main__.py Outdated Show resolved Hide resolved
Co-authored-by: layday <layday@protonmail.com>

Apply suggestions from code review

tests: add test for coverage
@henryiii
Copy link
Contributor Author

Added a test for dir(build), so this is ready. I'm ready for 0.8 after this. :)

@layday layday merged commit 641d7dd into pypa:main May 13, 2022
@henryiii henryiii deleted the henryiii/chore/changelog branch May 13, 2022 05:52
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.

None yet

3 participants