Error getting version in ec2-api repo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ec2-api |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When running python setup.py --version on master branch (Commit 64a3772) I get following error:
]$ python setup.py --version
ERROR:root:Error parsing
Traceback (most recent call last):
File "/usr/lib/
attrs = util.cfg_
File "/usr/lib/
pbr.
File "/usr/lib/
metadata_
File "/usr/lib/
self.hook()
File "/usr/lib/
self.
File "/usr/lib/
version = _get_version_
File "/usr/lib/
result = _get_version_
File "/usr/lib/
dict(
ValueError: git history requires a target version of pbr.version.
error in setup command: Error parsing /tmp/ec2-
Root cause is conflict between pbr discovered version (9.0.1.dev6) and the one set in setup.cfg (9.0.0). It's also happening in stable/train.
Reviewed: https:/ /review. opendev. org/688991 /git.openstack. org/cgit/ openstack/ ec2-api/ commit/ ?id=6e56a244f71 3cbf8531c6ed793 22cf63ab029ea9
Committed: https:/
Submitter: Zuul
Branch: master
commit 6e56a244f713cbf 8531c6ed79322cf 63ab029ea9
Author: Alfredo Moralejo <email address hidden>
Date: Wed Oct 16 19:41:43 2019 +0200
Remove version attribute from setup.cfg
This project uses pbr so it uses git tags and Sem-Ver pseudo header in
commit messages. Having versin setup.cfg can lead to conflicts and
errors when trying to get the package version using setup.py --version.
Note that pbr provides the Sem-Ver "magic" works to bump releases
without adding a tag [1].
[1] https:/ /docs.openstack .org/pbr/ latest/ user/features. html#version
Change-Id: I83f5c66d80601b d241b2e7e5ed068 2c96000c32f
Closes-Bug: #1848364