Skip to content

Commit

Permalink
fix pypa#930: temporary restore some setuptools_scm module attributes…
Browse files Browse the repository at this point in the history
… for config defaults
  • Loading branch information
RonnyPfannschmidt committed Sep 22, 2023
1 parent ee3cbc3 commit ca5726d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions changelog.d/20230922_161408_ronny_legacy_default_import.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

### Fixed

- fix #930: temporary restore `DEFAULT_VERSION_SCHEME` and `DEFAULT_LOCAL_SCHEME` on the `setuptools_scm` package
11 changes: 8 additions & 3 deletions src/setuptools_scm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
from __future__ import annotations

from ._config import Configuration
from ._config import DEFAULT_LOCAL_SCHEME # soft deprecated
from ._config import DEFAULT_VERSION_SCHEME # soft deprecated
from ._get_version_impl import _get_version # soft deprecated
from ._get_version_impl import get_version # soft deprecated
from ._integration.dump_version import dump_version # soft deprecated
Expand All @@ -15,9 +17,12 @@

# Public API
__all__ = [
"get_version", # deprecated imported for backward compatibility
"_get_version", # deprecated imported for backward compatibility
"dump_version", # deprecated imported for backward compatibility
# soft deprecated imports, left for backward compatibility
"get_version",
"_get_version",
"dump_version",
"DEFAULT_VERSION_SCHEME",
"DEFAULT_LOCAL_SCHEME",
"Configuration",
"Version",
"ScmVersion",
Expand Down

0 comments on commit ca5726d

Please sign in to comment.