File: consuming.rst

package info (click to toggle)
python-neutron-lib 3.21.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,660 kB
  • sloc: python: 22,829; sh: 137; makefile: 24
file content (30 lines) | stat: -rw-r--r-- 1,747 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
=====================
Consuming neutron-lib
=====================

Many OpenStack projects consume neutron-lib by importing and using its code.
As a result, these consumers must define ``neutron-lib`` as a dependency in their
respective ``requirements.txt`` file. While this is likely nothing new to most
OpenStack developers, it may not be obvious to consumers if they need to always
use the latest release of neutron-lib, or if they can lag behind using an
old(er) release of it.

The answer is that it's up to the consuming project if they want to stay
"current" or not in terms of the neutron-lib version they use. While we might
like all consumers to stay current and there are benefits to it, this isn't
always realistic for projects that have less developers/velocity. Therefore,
each project has two options for consuming neutron-lib.

* Opt-in to stay current by adding a comment with ``neutron-lib-current`` in
  their ``requirements.txt``. This string declares the project's intent to use
  the latest version of neutron-lib as well as their agreement to stay current
  with overall OpenStack initiatives. These projects receive updates "for free"
  as part of the ongoing neutron-lib work. For more details see the
  `ML archive <http://lists.openstack.org/pipermail/openstack-dev/2018-September/135063.html>`_

* Do not opt-in and rather manage your own consumption of neutron-lib. In this
  case your project developers must define the version of neutron-lib to use
  and update the project's code to consume it as they bump up the version. In
  this scenario most projects will also be managing a back-leveled version of
  ``neutron`` since neutron is always current with neutron-lib and might otherwise
  break the consuming code.