-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change integrates setuptools-scm for deriving the dist version from Git tags
- Loading branch information
Showing
10 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ref-names: $Format:%D$ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Force LF line endings for text files | ||
* text=auto eol=lf | ||
|
||
# Needed for setuptools-scm-git-archive | ||
.git_archival.txt export-subst |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
"""Python bindings for libssh.""" | ||
|
||
from ._version import ( # noqa: F401, WPS300, WPS436 | ||
__full_version__, __libssh_version__, __version__, __version_info__, | ||
) |
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
"""Version definition.""" | ||
|
||
from ._libssh_version import LIBSSH_VERSION as __libssh_version__ # noqa: N811, WPS300, WPS436 | ||
|
||
try: | ||
from ._scm_version import version as __version__ # noqa: WPS300, WPS433, WPS436 | ||
except ImportError: | ||
from pkg_resources import get_distribution as _get_dist # noqa: WPS433 | ||
__version__ = _get_dist('ansible-pylibssh').version # noqa: WPS440 | ||
|
||
|
||
__full_version__ = ( | ||
'<pylibsshext v{wrapper_ver!s} with libssh v{backend_ver!s}>'. | ||
format(wrapper_ver=__version__, backend_ver=__libssh_version__) | ||
) | ||
__version_info__ = __version__.split('.') |