Skip to content

Commit

Permalink
Rewrite test logic
Browse files Browse the repository at this point in the history
  • Loading branch information
pfmoore committed Mar 18, 2021
1 parent 2a12106 commit 8c37d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _validate_source_directory(srcdir):
raise BuildException('Source {} is not a directory'.format(srcdir))
pyproject_toml = os.path.join(srcdir, 'pyproject.toml')
setup_py = os.path.join(srcdir, 'setup.py')
if not (os.path.exists(pyproject_toml) or os.path.exists(setup_py)):
if not os.path.exists(pyproject_toml) and not os.path.exists(setup_py):
raise BuildException('Source {} does not appear to be a Python project: no pyproject.toml or setup.py'.format(srcdir))


Expand Down

0 comments on commit 8c37d99

Please sign in to comment.