-
Notifications
You must be signed in to change notification settings - Fork 120
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
version: 2 | ||
|
||
build: | ||
os: ubuntu-20.04 | ||
tools: | ||
python: '3.10' | ||
|
||
python: | ||
version: 3.8 | ||
install: | ||
- method: pip | ||
path: . | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,7 +79,7 @@ def _error(msg: str, code: int = 1) -> NoReturn: # pragma: no cover | |
:param code: Error code | ||
""" | ||
print('{red}ERROR{reset} {}'.format(msg, **_STYLES)) | ||
exit(code) | ||
raise SystemExit(code) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that is a bug. |
||
|
||
|
||
class _ProjectBuilder(ProjectBuilder): | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
import sys | ||
|
||
import pytest | ||
|
||
import build | ||
|
||
|
||
def test_version(): | ||
assert build.__version__ | ||
|
||
|
||
@pytest.mark.skipif(sys.version_info < (3, 7), reason='Python 3.7+ required for dir support') | ||
def test_dir(): | ||
assert set(dir(build)) == set(build.__all__) |
There was a problem hiding this comment.
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+.