Skip to content

chore: update changelog, minor touchups#469

Merged
layday merged 4 commits into
pypa:mainfrom
henryiii:henryiii/chore/changelog
May 13, 2022
Merged

chore: update changelog, minor touchups#469
layday merged 4 commits into
pypa:mainfrom
henryiii:henryiii/chore/changelog

Conversation

@henryiii
Copy link
Copy Markdown
Contributor

A few fixes and cleanups.

Comment thread src/build/__main__.py
print('{red}ERROR{reset} {}'.format(msg, **_STYLES))
exit(code)
print('{red}ERROR{reset} {}'.format(msg, **_STYLES), file=sys.stderr)
raise SystemExit(code)
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread src/build/__init__.py
]


def __dir__() -> List[str]:
Copy link
Copy Markdown
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
Copy Markdown
Member

layday commented May 12, 2022

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

Comment thread src/build/__main__.py Outdated
henryiii added 3 commits May 12, 2022 16:44
Co-authored-by: layday <layday@protonmail.com>

Apply suggestions from code review

tests: add test for coverage
@henryiii henryiii force-pushed the henryiii/chore/changelog branch from 2eb4794 to 76c30c9 Compare May 12, 2022 20:44
@henryiii
Copy link
Copy Markdown
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.

3 participants