deb_nonversioneer_version
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Sun, 28 Jun 2020 20:47:22 +0000 (21:47 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sun, 28 Jun 2020 20:47:22 +0000 (21:47 +0100)
Gbp-Pq: Name deb_nonversioneer_version

pandas/__init__.py
pandas/tests/api/test_api.py
pandas/tests/test_common.py

index 6351b508fb0e5c85cc1595650873a4450fca34ba..0354797d5c6717bee180da914c1f946df9192b14 100644 (file)
@@ -182,13 +182,7 @@ from pandas.util._tester import test
 import pandas.testing
 import pandas.arrays
 
-# use the closest tagged version if possible
-from ._version import get_versions
-
-v = get_versions()
-__version__ = v.get("closest-tag", v["version"])
-__git_version__ = v.get("full-revisionid")
-del get_versions, v
+from .__version import version as __version__
 
 
 # GH 27101
index 326bef7f4b480b974b9bd7fb5d61473ceeec48f6..941105dd679f86646cb6111204ac83b825fb0fcd 100644 (file)
@@ -189,7 +189,7 @@ class TestPDApi(Base):
         "_np_version_under1p17",
         "_tslib",
         "_typing",
-        "_version",
+# not in Debian        "_version",
     ]
 
     def test_api(self):
index d96f806bc383f393bc40ec3b4686740cf8ad3635..0a9939277aeb0604280a8bf5a4daa9e4a6367364 100644 (file)
@@ -111,7 +111,7 @@ def test_standardize_mapping():
     dd = collections.defaultdict(list)
     assert isinstance(com.standardize_mapping(dd), partial)
 
-
+@pytest.mark.xfail(reason="deb_nonversioneer_version patch")
 def test_git_version():
     # GH 21295
     git_version = pd.__git_version__