forked from numpy/numpy
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request numpy#26172 from rgommers/public-api-test
DOC/TST: make `numpy.version` officially public
- Loading branch information
Showing
5 changed files
with
64 additions
and
8 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,38 @@ | ||
.. currentmodule:: numpy.version | ||
|
||
.. _routines.version: | ||
|
||
******************* | ||
Version information | ||
******************* | ||
|
||
The ``numpy.version`` submodule includes several constants that expose more | ||
detailed information about the exact version of the installed ``numpy`` | ||
package: | ||
|
||
.. data:: version | ||
|
||
Version string for the installed package - matches ``numpy.__version__``. | ||
|
||
.. data:: full_version | ||
|
||
Version string - the same as ``numpy.version.version``. | ||
|
||
.. data:: short_version | ||
|
||
Version string without any local build identifiers. | ||
|
||
.. rubric:: Examples | ||
|
||
>>> np.__version__ | ||
'2.1.0.dev0+git20240319.2ea7ce0' # may vary | ||
>>> np.version.short_version | ||
'2.1.0.dev0' | ||
|
||
.. data:: git_revision | ||
|
||
String containing the git hash of the commit from which ``numpy`` was built. | ||
|
||
.. data:: release | ||
|
||
``True`` if this version is a ``numpy`` release, ``False`` if a dev version. |
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