Needed as Debian buildds use tarballs
Author: Yaroslav Halchenko
Forwarded: not-needed
Gbp-Pq: Name deb_nonversioneer_version.patch
_built_with_meson = True
except ImportError:
- from pandas._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#55043 - deprecation of the data_manager option
if "PANDAS_DATA_MANAGER" in os.environ:
"_testing",
"_typing",
]
- if not pd._built_with_meson:
- private_modules.append("_version")
def test_api(self):
checkthese = (
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__
# check header
assert "INSTALLED VERSIONS" in result
- # check full commit hash
- assert re.search(r"commit\s*:\s[0-9a-f]{40}\n", result)
-
# check required dependency
# 2020-12-09 npdev has "dirty" in the tag
# 2022-05-25 npdev released with RC wo/ "dirty".