You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: migrate integration code to vcs-versioning and remove private shims
Move core functionality to vcs-versioning:
- Move dump_version logic to vcs_versioning/_dump_version.py
- Move infer_version_string to vcs_versioning/_version_inference.py
- Update vcs_versioning to use local _dump_version instead of setuptools_scm
Remove unnecessary private shim modules:
- Delete _types.py, _run_cmd.py, _entrypoints.py (private, not in __all__)
- Delete _integration/toml.py (just a re-export)
- Delete _integration/dump_version.py (now in vcs-versioning)
- Keep public modules (git.py, hg.py, discover.py, fallbacks.py) for backward compat
- Keep _version_cls.py (used by public API)
Update imports throughout codebase:
- Update all internal imports to use vcs_versioning directly
- Update test imports in both testing/ and nextgen/vcs-versioning/testingB/
- Fix _own_version_helper.py to import from vcs_versioning
Fix pytest configuration:
- Move pytest_plugins from conftest.py to pyproject.toml addopts
- Prevents 'non-top-level conftest' errors when running all tests from root
- Both test suites now run successfully together (408 passed, 10 skipped, 1 xfailed)
0 commit comments