It's somewhat strange to say you can build a package with pbr >= 1.8 but
to install it you need 2.0.0. Synchronise these values.
Change-Id: I47640a0226be2e82f2fbbf866d2c235f5e7ed415
If you mistakenly pass a path that isn't a directory, or doens't exist,
you get a traceback that ends with:
---
File "/Users/tony8129/projects/openstack/openstack/requirements/openstack_requirements/cmds/update.py", line 229, in _copy_requires
dest_path, project.merge_setup_cfg(proj['setup.cfg'], output_extras)))
KeyError: 'setup.cfg'
ERROR: InvocationError: '.../openstack/requirements/.tox/update/bin/update-requirements -H -s ./nova'
---
This is a little confusing. This patch checks that the arg is a
directory so a more explicit error can be generated.
Change-Id: I9f3f43d5c9b90746bbf2d651ee4cb37afade1528
A project needs to be able to specify that it depends on a project
including extras for that project and still have it's version maintained
by global-requirements.
Currently if the requirements are seen to mismatch then the string from
global requirements is dropped in place of the project string, but this
drops any extras specified by project.
In the case that extras are different and the version needs updating add
a new combined requirement to the project with the original extras and
the new version.
Closes-Bug: #1567809
Change-Id: Ife48b7963a5e6706289f1b9a47cb95fae7f0bc22
In python3 izip functions got renamed to zip in itertools module.
This was breaking support for python3.
Change-Id: I6fda87b78e40be134d7c94698cca5d85a51eb989
*) We're removing our upper caps - they are just time bombs. Make pbr
be consistent here too.
*) pbr 1.8 handles comments in marker lines properly. We don't need to
update the run-time minimum, but we do need a build-time minimum of
1.8 to ensure OpenStack packages can build properly.
Change-Id: I9fe0c62e774c00c2e521e1e69c5f2f5d87865ec1
Without this version, markers will fail to install in a growing number
of projects.
Change global-requirements to prevent
pip -r requirements.txt; pip install .
failing with an already installed and too old for setup_requires pbr.
Change update.py to signal to setuptools the minimum version required,
giving clearer error messages in the case of downgrades during
devstack.
Change-Id: I074274b470a7a4f2c95211677b135038ab2c942c
I have a project that includes a requirement line this:
-e git://git.openstack.org/openstack/neutron.git#egg=neutron
Every time update.py runs against the file, it adds an extra newline
after this. For example, if I run update.py a few times, I'll have a
few new lines in the file. This patch prevents the extra newlines
from getting added.
Change-Id: I92d02a45c437025b16df067d7b58a3727d42c0e0
Signed-off-by: Russell Bryant <rbryant@redhat.com>
This will provide space to store the result of parsing requirements
like -e file:///opt/stack/new/oslo.THING, which we need to do for
edit-constraint to work in devstack when more than one library is
being installed from git. This is a separate patch to make reviewing
the actual new functionality easier - it is entirely mechanical,
adding the field and dealing with test fallout.
Change-Id: Ied4e92717b0dab871dac42ae639d1f2a6c236414