Project

General

Profile

Actions

Bug #3848

closed

[SDK] Python SDK should always set proper version when built from git

Added by Brett Smith over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
SDKs
Target version:
Story points:
0.5

Description

One thing that would help debug Docker images is if the Arvados Python modules were installed with version numbers that match what we publish. Right now, they just use the plain string '0.1', which means you have to use other metadata to figure out the real version. It would be nice to build the packages with the same version information we use in production, so that pip freeze tells you at a glance what version you're running. See the setup.py egg_info command in Hacking Python SDK for a demonstration of how to do this.

This information would be useful in other contexts, too (i.e., "What version do I have on this development box?"). It might be worth investigating if there's a good way to put this information in setup.py. Note that simply appending the string like we do in our Gemfiles is not appropriate—that will cause setup.py to fail when it's run outside a git tree. Instead this would probably involve extending the egg_info command to look for git information and add it to the default version value.


Subtasks 2 (0 open2 closed)

Task #3952: Review 3848-egg-default-git-tag-wipResolvedBrett Smith09/22/2014Actions
Task #4110: Review arvados-dev branch 3848-build-packages-pyversionResolvedWard Vandewege09/22/2014Actions
Actions

Also available in: Atom PDF