-
Notifications
You must be signed in to change notification settings - Fork 506
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
Refactor build system #898
Open
JoostJM
wants to merge
15
commits into
AIM-Harvard:master
Choose a base branch
from
JoostJM:refactor-build-system
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Remove setup.cfg - Move as much information as possible to pyproject.toml - Keep versioning dynamic using versioneer.
Follows suggestions obtained by running cookiecutter from https://learn.scientific-python.org/development/.
- Update the matrices baseline numpy arrays to newer version. Values are unchanged, matrices were simply loaded and saved again using `arr = numpy.load(<path>); numpy.save(<path>, arr);`. - Ignore specific deprecation warning related to a deprecated function being used in PyKwalify. See also Grokzen/pykwalify#202 and Grokzen/pykwalify#203.
- Excludes github config from `.github`. - Excludes `.*` files in the root.
Also remove deprecated requirements files (now defined in `pyproject.toml`.
For migration purposes, also add the `refactor-build-system` branch to the push event of the CI workflow.
Due to migration being in progress, the pre-commit job is expected to fail. Error occurring in this job are scheduled to be fixed after CI setup is up and running to catch bugs that arise due to style changes.
5c7e5f4
to
f2f3c6b
Compare
This commit fixes the following error: ``` $ pip install .[test] [...] *** Making wheel... 2025-01-29 09:11:34,654 - scikit_build_core - ERROR - Metadata mismatch in METADATA: b'Metadata-Version: 2.1\nName: pyradiomics\nVersion: 3.0.1a4.dev38+gf2f3c6b\nSummary: Radiomics features library for python\nKeywords: radiomics,cancerimaging,medicalresearch,computationalimaging\nAuthor-Email: PyRadiomics Community <[email protected]>\n[...]' Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module> main() File "/opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel return _build_backend().build_wheel(wheel_directory, config_settings, File "/tmp/pip-build-env-u6dnfh2j/overlay/lib/python3.9/site-packages/scikit_build_core/build/__init__.py", line 33, in build_wheel return _build_wheel_impl( File "/tmp/pip-build-env-u6dnfh2j/overlay/lib/python3.9/site-packages/scikit_build_core/build/wheel.py", line 175, in _build_wheel_impl return _build_wheel_impl_impl( File "/tmp/pip-build-env-u6dnfh2j/overlay/lib/python3.9/site-packages/scikit_build_core/build/wheel.py", line 508, in _build_wheel_impl_impl raise AssertionError(msg) AssertionError: Metadata mismatch in METADATA [...] ```
CI: Fix wheel generation renaming _version.py to _version.pyi
Supports Python versions 3.8-3.10. 3.11+ fails with segmentation fault, most likely due to new multithreading support.
75cd3de
to
ce5378c
Compare
Fails CI because of an error during a build of SimpleITK (apparently no appropriate wheel available).
Allows to exclude commits from git-blame. This should contain commits reflecting only style changes.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Major refactoring of the build system and CI workflows to get PyRadiomics up-to-date with the latest conventions.
pyproject.toml
setup.py
and associated files.