feat: update installation to pyproject.toml & env.yml & update pre-commit#16
Merged
ttngu207 merged 3 commits intodatajoint:mainfrom Aug 26, 2025
Merged
Conversation
ttngu207
approved these changes
Aug 26, 2025
This file contains hidden or 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
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 modernizes the project's packaging and environment management by migrating from the legacy
setup.py-based build system to a PEP 517/518-compliantpyproject.tomlconfiguration. It also introduces a new Conda environment file for reproducible development environments and updates the pre-commit configuration to better control large file additions. This PR also fixes JAX compatibility issues, and all critical imports now work: jax, chex, optax, keypoint_moseq, dynamax.Packaging and Build System Modernization:
pyproject.tomlfile to define project metadata, dependencies, and build configuration using thesetuptoolsbackend, replacing the previoussetup.pyapproach. This aligns the project with current Python packaging standards.setup.pyfile, fully transitioning packaging and dependency management topyproject.toml.Environment and Dependency Management:
env.ymlfile to specify a Conda environment for the project, ensuring consistent development and testing environments.Pre-commit Configuration:
.pre-commit-config.yamlto set a maximum allowed file size (--maxkb=1000) for thecheck-added-large-fileshook, preventing accidental commits of very large files.Note: The keypoint-moseq version is currently 0.4.8 in this PR. It will be updated to the latest release in a future PR.