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

Add pyproject.toml files #1177

Merged
merged 8 commits into from
Dec 20, 2024
Prev Previous commit
Next Next commit
Search for pyproject.toml instead of setup.py files.
  • Loading branch information
michael-rapp committed Dec 20, 2024
commit 4d25c820359a0f0b9131567eb913fdfe8efb46e3
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)
]
Loading