Skip to content

Commit

Permalink
Search for pyproject.toml instead of setup.py files.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-rapp committed Dec 20, 2024
1 parent a1e9025 commit 4d25c82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build_system/targets/documentation/python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
.build()

MODULES = [
PythonApidocModule(root_directory=path.dirname(setup_file),
PythonApidocModule(root_directory=path.dirname(file),
output_directory=path.join(Project.Documentation.apidoc_directory, 'python',
path.basename(path.dirname(setup_file))),
path.basename(path.dirname(file))),
source_directory_name='mlrl',
source_file_search=Project.Python.file_search())
for setup_file in Project.Python.file_search().filter_by_name('setup.py').list(Project.Python.root_directory)
for file in Project.Python.file_search().filter_by_name('pyproject.toml').list(Project.Python.root_directory)
]
4 changes: 2 additions & 2 deletions build_system/targets/packaging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

MODULES = [
PythonPackageModule(
root_directory=path.dirname(setup_file),
root_directory=path.dirname(file),
wheel_directory_name=Project.Python.wheel_directory_name,
) for setup_file in Project.Python.file_search().filter_by_name('setup.py').list(Project.Python.root_directory)
) for file in Project.Python.file_search().filter_by_name('pyproject.toml').list(Project.Python.root_directory)
]

0 comments on commit 4d25c82

Please sign in to comment.