Ivan A. Melnikov ba154fa614 py2rpm: New workaround for differences in PIP and RPM version handling
RPM and pip compare versions differently, and this used to lead to lots
problems, pain and sorrows. The most visible outcome of the difference is
that from RPM's point of view version '2' != '2.0', as well as '2.0' !=
'2.0.0', but for pip it's same version.

This change implements new workaround for this. It works as follows: if
python module requires module of some version, (like 2.0.0), the actual RPM
version of the module will have the same non-zero beginning and some '.0's at
the end ('2', '2.0', '2.0.0', '2.0.0.0' ...). Thus, we can calculate lower
bound for requirement by trimming '.0' from the version (we get '2'), and
then set upper bound to lower bound plus tail of '.0' repeated several times.
Luckily, '2.0' and '2.00' is the same version for RPM.

Then, exact requirements (like 'pysendfile==2.0.0') are replaced with
range (pysendfile >= 2, pysendfile <= 2.0.0.0.0.0.0.0.0.0.0.0), while
for '<=' and '>=' we use only upper or lower bound correspondingly.

Also, we do not trim zeroes from versions that we put in Version: tag, as we
don't need to do that any more.

Closes-bug: #1254991
Change-Id: Idb142d0f85d60183e79964baece52e0128cf9d7b
2013-11-27 19:40:19 +04:00
2013-11-22 17:02:50 -08:00
2013-09-16 13:41:55 +03:00
2013-03-16 19:28:04 -07:00
2013-09-17 10:20:38 -07:00
2013-08-15 22:52:29 -07:00
2012-02-18 07:53:43 -08:00
2013-06-21 17:44:48 -07:00
2013-07-11 14:08:58 +04:00
2013-11-21 16:05:22 +02:00
2013-10-11 18:15:01 +03:00
2013-09-30 10:35:35 -04:00
2013-11-21 16:05:22 +02:00
2013-11-13 16:01:36 +04:00

We want more information!

Please check out: http://anvil.readthedocs.org.

Licensing

Anvil is licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Some tools are licensed under different terms; see tools/README.rst for more information.

Description
RETIRED, A set of python scripts and utilities to forge raw OpenStack into a productive tool!
Readme 14 MiB