kou commented on pull request #7605: URL: https://github.com/apache/arrow/pull/7605#issuecomment-652646475
How about using our SNAPSHOT version as the next version of pyarrow? ```diff diff --git a/python/setup.py b/python/setup.py index 4c264a2d7..bc3efee77 100755 --- a/python/setup.py +++ b/python/setup.py @@ -546,6 +546,15 @@ def parse_git(root, **kwargs): return parse(root, **kwargs) +def guess_next_dev_version(version): + if version.exact: + return version.format_with('{tag}') + else: + def guess_next_version(tag_version): + return default_version.replace('-SNAPSHOT', '') + return version.format_next_version(guess_next_version) + + with open('README.md') as f: long_description = f.read() @@ -595,7 +604,8 @@ setup( 'root': os.path.dirname(setup_dir), 'parse': parse_git, 'write_to': os.path.join(scm_version_write_to_prefix, - 'pyarrow/_generated_version.py') + 'pyarrow/_generated_version.py'), + 'version_scheme': guess_next_dev_version }, setup_requires=['setuptools_scm', 'cython >= 0.29'] + setup_requires, install_requires=install_requires, ``` `pyarrow.__version__` will return `"1.0.0.dev..."` with this change. And how about exporting `-SNAPSHOT` tag as `arrow::BuildInfo::version_tag`? It will show that this version is a snapshot version like `.devXXX` in Python. And how about adding `cpp_` prefix to Arrow C++ related versions like `pa.cpp_version` to show that they show C++ version not pyarrow version? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org