Skip to content

Mordern py - #26

Merged
minhuanli merged 5 commits into
masterfrom
mordern_py
Nov 20, 2025
Merged

minhuanli merged 5 commits into
masterfrom
mordern_py

Conversation

@minhuanli

Copy link
Copy Markdown
Collaborator

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.cfg configuration to a pyproject.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

  • Migrated from legacy setup.py and setup.cfg to a standardized pyproject.toml configuration, 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]
  • Removed the now-unnecessary MANIFEST.in and .coveragerc files, consolidating package data and coverage configuration into pyproject.toml. [1] [2]

API and Import Improvements

  • Refactored SFC_Torch/__init__.py to use a lazy import mechanism for top-level API objects and submodules, improving import speed and maintaining compatibility. Also updated the version retrieval to use importlib.metadata for better compatibility with modern packaging.

Continuous Integration and Deployment

  • Updated CI workflows to test against Python 3.12 and use the latest GitHub Actions for checkout and setup-python. Simplified dependency installation and coverage reporting in CI scripts. [1] [2] [3]

Versioning

  • Bumped the package version from 0.2.5 to 0.3.0 to reflect these breaking and structural changes.

Author and Metadata Updates

  • Updated author email and fixed typos in metadata for consistency across files. [1] [2]

@minhuanli
minhuanli merged commit 15d95a1 into master Nov 20, 2025
4 checks passed
@minhuanli
minhuanli deleted the mordern_py branch November 20, 2025 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant