Skip to content

Commit f45d64c

Browse files
Debian Science Teamrebecca-palmer
Debian Science Team
authored andcommitted
Don't try to use git to find the version number
Needed as Debian buildds use tarballs Author: Yaroslav Halchenko Forwarded: not-needed Gbp-Pq: Name deb_nonversioneer_version.patch
1 parent ab476bb commit f45d64c

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

pandas/__init__.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,7 @@
177177
import pandas.testing
178178
import pandas.arrays
179179

180-
# use the closest tagged version if possible
181-
from ._version import get_versions
182-
183-
v = get_versions()
184-
__version__ = v.get("closest-tag", v["version"])
185-
__git_version__ = v.get("full-revisionid")
186-
del get_versions, v
180+
from .__version import version as __version__
187181

188182
# GH 27101
189183
# TODO: remove Panel compat in 1.0

pandas/tests/api/test_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class TestPDApi(Base):
200200
"_testing",
201201
"_tslib",
202202
"_typing",
203-
"_version",
203+
# not in Debian "_version",
204204
]
205205

206206
def test_api(self):

pandas/tests/test_common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def test_standardize_mapping():
141141
dd = collections.defaultdict(list)
142142
assert isinstance(com.standardize_mapping(dd), partial)
143143

144-
144+
@pytest.mark.xfail(reason="deb_nonversioneer_version patch")
145145
def test_git_version():
146146
# GH 21295
147147
git_version = pd.__git_version__

0 commit comments

Comments
 (0)