On 26/11/2018 22:07, Thomas Bechtold wrote:
On 01.10.18 18:09, John Paul Adrian Glaubitz wrote:
RPM/DPKG uses a different version ordering than Python. In particular,
Python has a different logic for pre-releases. While DPKG/RPM uses the
tilde for lowering version numbers meaning that RC versions have to be
constructed as something like "1.0.0~rc2", Python uses "1.0.0rc2".
This means, that for Python, "1.0.0rc2" is a lower version than
while for DPKG/RPM, "1.0.0rc2" is actually higher than "1.0.0".
Since lots of Python packages with the rc-suffix exist, I assume there
is a consensus in openSUSE on how to map Python RC versions to RPM RC
versions, isn't there?
The set-version OBS source service has a schema for this convertion. See
. The cloud team uses that service to package the latest git upstream
versions from OpenStack.
I've had that service not work effectively when upstream tags
and beta's that rpm ends up considering out of order. The only solution
i've found that works with some upstreams is to set and update the Major
and Minor versions manually and use whatever the equivalent for "git log
--oneline | wc -l" to give a constantly rising version number.
Simon Lees (Simotek) http://simotek.net
Emergency Update Team keybase.io/simotek
SUSE Linux Adelaide Australia, UTC+10:30
GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B
To unsubscribe, e-mail: opensuse-packaging+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-packaging+owner(a)opensuse.org