summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2020-12-02 13:06:51 -0700
committerCharles Harris <charlesr.harris@gmail.com>2020-12-08 10:25:28 -0700
commit40fd17e3a2418d54284b53dbcf2ba72dbfbb58ad (patch)
tree6f302110dfb37a4fdfa1855a0d860d7873e355be /numpy/core
parent4d290795d4e8c60053eb789acf173159dc4c1575 (diff)
downloadnumpy-40fd17e3a2418d54284b53dbcf2ba72dbfbb58ad.tar.gz
ENH: Use versioneer to manage numpy versions.
The new tags look like '1.21.0.dev0+98.gaa0453721f', where '98' is the number of commits since the 1.21.0 branch was started and 'aa0453721f'. The chosen form may be specified in the 'setup.cfg' file. This PR adds two new files 'numpy/_version.py' and 'numpy/version.py'. The latter is kept because it is part of the public API and is actually used by some downstream projects, but it is no longer dynamically created. See https://github.com/python-versioneer/python-versioneer/ for more information.
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/setup_common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py
index ba3e215b3..2d85e0718 100644
--- a/numpy/core/setup_common.py
+++ b/numpy/core/setup_common.py
@@ -51,7 +51,7 @@ def is_released(config):
"""Return True if a released version of numpy is detected."""
from distutils.version import LooseVersion
- v = config.get_version('../version.py')
+ v = config.get_version('../_version.py')
if v is None:
raise ValueError("Could not get version")
pv = LooseVersion(vstring=v).version