Commit Graph

14 Commits

Author SHA1 Message Date
Ghanshyam Mann 712535f6be Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I2a42a907170a6fcd8cae245f864121fd12422ef0
2022-04-30 20:27:36 -05:00
Slawek Kaplonski e70fe7e205 Bump min eventlet version to 0.26.1
That version have fix for the issue with Python 3.7. See
[1] for more details.

It is done instead of backporting ryu workaround
ddb32f678a

[1] https://github.com/eventlet/eventlet/issues/526

Story: #2009283
Task: #43563
Change-Id: I5bb684c75bde1512f379127520b840f55f0e42ab
2021-11-02 21:56:18 +01:00
Manu B 4468605ff6 Msgpack version upgrade to 1.0.0
* Encoding parameter is removed. UTF-8 is used always. [0]
* strict_map_key is changed to False to keep the older behaviour.
  Default is changed to True in 1.0.0

Signed-off-by: Manu B <manu.b@est.tech>

[0]: https://github.com/msgpack/msgpack-python#major-breaking-changes-in-msgpack-10

Change-Id: I0e5902c4b13ab11f45f44bb9d9d9540d9630c9bb
2021-10-28 09:41:10 +00:00
Slawek Kaplonski cd4926b235 Remove os_ken/app and os_ken/services/protocols/bgp/api/jsonrpc modules
The os_ken/services/protocols/bgp/api/jsonrpc.py module was using
os_ken/app and os_ken app is the only one which was using tinyrpc lib.
Modules under os_ken/app except os_ken/app/ofctl are not used in neutron
and neutron-dynamic-routing so lets drop them from the code.

With that we can also drop tinyrpc from the requirements file at all.

Task: #41912
Story: #2008648
Change-Id: Ic35d1f7ee4112bc5cf16fee3d828534ded26ce7f
2021-03-02 08:29:32 +09:00
Akihiro Motoki 28b0341e48 Fix lower-constraints job
The summary of changes in lower-constraints.txt are as below.

* Address version mismatch of eventlet in requirements.txt and
  lower-constraints.txt. eventlet 0.21.0 is blocked in
  global-requirements.txt, so the min version is set to 0.22.0.
* pytz version in l-c is bumped to satisfy Babel requirement.
* Update the min version of msgpack to 0.5.0 as 0.3.0 is not
  available in PyPI. msgpack-python is dropped as it is not used.
* Drop linter-specific entries from lower-constraints.txt
* hacking in l-c is updated to match the version in test-requirements.

I also ran requirements-check script locally and detected
a lot of inconsistencies in requirements related files in os-ken.
Errors detected by the script are fixed in this commit too.

NOTE: The above inconsistencies were not detected mainly because
we don't have requirements-check job in os-ken CI.
Perhaps it is due to 'tinyrpc' which is not included in g-r.
It is better to enable requirements-check job in os-ken CI,
but we need to add tinyrpc to global-requirements.txt or drop
tinyrpc dependencies (for example, by dropping os-ken/app
as tinyrpc is used only in os-ken/app).

Change-Id: I19617aee765f9086fbfdb67fb17839b83d9df48c
2021-02-10 10:56:49 +09:00
Bernard Cafarelli f61da64144
Fix lower-constraints and pep8 for Focal
Bump lower-constraints to versions supporting python 3.8 and with wheels
available and sync requirements

Bump hacking to 3.2.0 in order to work with Focal, disabling W504
to align with neutron and F405 (similar F403 is already disabled and it
needs a large fix)

Change-Id: I6b6329b2bb7a117f7426fdd63186d321290d9b67
2020-09-16 12:56:36 +02:00
Zuul 1128ef4881 Merge "Remove translation sections from setup.cfg" 2020-06-19 17:13:29 +00:00
wu.chunyang 3616b29ccf Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can
generate translation files without them.

Remove babel.cfg as well, this is the default role and not needed
anymore.

also remove Babel from requirements[1]
[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014227.html

Change-Id: I073d3d7e2f2e8a4f06c17541a0f4d4fedcaed2dc
2020-06-16 00:24:58 +08:00
Hervé Beraud 778ed750a0 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: I03172d63f61cba012ec4f85b20106744c9c24a1c
2020-06-11 11:02:42 +02:00
Andreas Jaeger dd379ae2f6 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I2e87016e0dbabf0e5c2b6f05b8b3a2e0d026e20c
2020-05-23 18:09:47 +02:00
Nate Johnston 408d1ec85c Remove oslosphinx from lower-constraints
Since the oslosphinx repo is being retired, remove the only remaining
reference to it in os-ken, which is in lower-constraints.txt.

Change-Id: Id646ba262d97700b4fd0d5d25c23568cbbb4e647
2019-04-01 11:20:23 -04:00
Nate Johnston a3b706a774 Fix pep8 errors in os-ken
Update the lower constraint for appdirs, similarly to how it has been
done in other repos.

Whitelist pep8 error E113.  This is the "unexpected indent" error.  This
module uses C-style comment blocks pervasively, things like:

    OFPP_IN_PORT = 0xfff8   # Send the packet out the input port. This
                            # virtual port must be explicitly used
                            # in order to send back out of the input
                            # port.
    OFPP_TABLE = 0xfff9     # Perform actions in flow table.
                            # NB: This can only be the destination
                            # port for packet-out messages.
    OFPP_NORMAL = 0xfffa    # Process with normal L2/L3 switching.

For the lines above the ones that have an indented comment with no code
to the left would get E113 with a recent change to a less permissive
policy.  It would cause over 260 changes to comment strings, destroying
the consistency of comment style, to make that change.  Therefore,
blacklist that pycodestyle error.

Change-Id: I6d2f463b50551f32bce863aa7dc0c70ad3054cbd
Story: #2005142
2019-03-05 15:39:00 -05:00
Hongbin Lu 28c7fa6aca Add constraint for nose in test requirements
This is a prerequisite to add os-ken into global requirements

Change-Id: Iff68a03fcc7e4e7f94539ec531b251969fbd3d1c
2018-10-29 15:17:27 +00:00
Hongbin Lu b5be390943 Add minimum constraint for some requirements
The constraints were picked to be the same as neutron for consistency.

Change-Id: I957c144e52e29ec4724b1632eba998c0c4a64b33
2018-10-17 17:59:18 +00:00