diff --git a/ports/py-pandas/portfile.cmake b/ports/py-pandas/portfile.cmake index 4d336615..193a7fb8 100644 --- a/ports/py-pandas/portfile.cmake +++ b/ports/py-pandas/portfile.cmake @@ -24,6 +24,10 @@ vcpkg_from_github( HEAD_REF main ) +# The GitHub archive has no git metadata, so versioneer would report the version as 0+unknown. +# pandas uses an existing _version_meson.py as is, like the one in its sdist. +file(WRITE "${SOURCE_PATH}/_version_meson.py" "__version__=\"${VERSION}\"\n__git_version__=\"\"\n") + # pandas pulls fast_float in through subproject() only, which meson would # download. An existing subproject directory with a meson.build is used as is, # so assemble it from the fast-float port and pandas' own packagefile. diff --git a/ports/py-pandas/vcpkg.json b/ports/py-pandas/vcpkg.json index 4bf277e2..5550c637 100644 --- a/ports/py-pandas/vcpkg.json +++ b/ports/py-pandas/vcpkg.json @@ -1,6 +1,7 @@ { "name": "py-pandas", "version": "3.1.0", + "port-version": 1, "description": "Powerful data structures for data analysis, time series, and statistics.", "homepage": "https://pandas.pydata.org", "license": "BSD-3-Clause", diff --git a/versions/baseline.json b/versions/baseline.json index 8b8b74fc..8747bc41 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -262,7 +262,7 @@ }, "py-pandas": { "baseline": "3.1.0", - "port-version": 0 + "port-version": 1 }, "py-pathspec": { "baseline": "1.1.1", diff --git a/versions/p-/py-pandas.json b/versions/p-/py-pandas.json index d75a53f0..5d256805 100644 --- a/versions/p-/py-pandas.json +++ b/versions/p-/py-pandas.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "fdd811aa09dde1a75d127d9d268b83ebb54652e4", + "version": "3.1.0", + "port-version": 1 + }, { "git-tree": "1cab19d94fe259d9baaf8ac73dc2fcaa9eb5d6c7", "version": "3.1.0",