-
Notifications
You must be signed in to change notification settings - Fork 21
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
Migration to joblib + new build system + separate reusable publish workflow #58
Open
asiomchen
wants to merge
24
commits into
EBjerrum:main
Choose a base branch
from
asiomchen:main
base: main
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.
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
Update Python version requirements and streamline CI workflows Update publish workflow to trigger on version tags Enhance publish workflow with manual trigger and dependency on CI completion Refactor publish workflow to simplify naming and improve tag-based publishing conditions try to fix dispatch fix syntax test without if update workflow
New build system + release actions test
Joblib migration
asiomchen
changed the title
New build system + separate reusable publish workflow
Migration to joblib + new build system + separate reusable publish workflow
Jan 25, 2025
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.
This pull request introduces several updates to the parallel processing, GitHub workflows, project configuration, and documentation for the
scikit-mol
project.Migration to joblib
Solves #59
multiprocessing
was fully replaced withjoblib
and separate function inparallel.py
added to handle the parallel processing, this decreases tests run time on Windows from ~7 minutes to ~1.5 minutesparallel
was replaced withn_jobs
to match sklearn APIploting.py
was added for parallel benchmarksFix safe inference on parallel runs
When the safe inference mode is enabled and results are concatenated in case on fully valid/invalid inputs
np.ma.concatenate
simplifies mask to the single boolean, causingfilter_invalid_rows
to fail, additional condition was added to handle thisFix fit check for transformers and SafeInferenceWrapper
Python Support
GitHub Workflows:
.github/workflows/publish.yaml
: Added a new workflow to build and publish Python distributions usinguv
and sign them with Sigstore. This workflow handles building the distribution, storing artifacts, and creating GitHub releases..github/workflows/pytest.yaml
: Renamed fromrun_pytests.yaml
and updated to include concurrency control, installuv
, and use the new publish workflow for tagged commits. [1] [2].github/workflows/welcome.yaml
: Added a new workflow to welcome new contributors when they open issues or pull requests.Project Configuration:
pyproject.toml
: Migrated the build system to usehatchling
andhatch-vcs
, updated project metadata, and added dependencies and optional dependencies for development. [1] [2]Documentation:
CONTRIBUTING.md
: Updated the release instructions to reflect the new automated workflow for PyPi releases.README.md
: Updated the logo display to use the<picture>
element for better support of dark and light modes on PyPi