Repository navigation
Mordern py - #26
Merged
Merged
Mordern py#26
Conversation
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 packaging and import structure for the project, improves compatibility with newer Python versions, and streamlines the CI/CD workflow. The most significant changes are the migration from legacy
setup.py/setup.cfgconfiguration to apyproject.toml-based build system, introduction of lazy imports for the top-level API, and updates to CI scripts for Python 3.12 support and improved dependency management.Packaging and Build System Modernization
setup.pyandsetup.cfgto a standardizedpyproject.tomlconfiguration, specifying build requirements, project metadata, dependencies, and coverage/test settings. This enables modern Python packaging workflows and better compatibility with tools like pip and build. [1] [2] [3]MANIFEST.inand.coveragercfiles, consolidating package data and coverage configuration intopyproject.toml. [1] [2]API and Import Improvements
SFC_Torch/__init__.pyto use a lazy import mechanism for top-level API objects and submodules, improving import speed and maintaining compatibility. Also updated the version retrieval to useimportlib.metadatafor better compatibility with modern packaging.Continuous Integration and Deployment
Versioning
0.2.5to0.3.0to reflect these breaking and structural changes.Author and Metadata Updates