Commit Graph

15 Commits

Author SHA1 Message Date
Ghanshyam Mann 130d6ddf1b 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: Iddb575ef94f8162f8d07f650db4611a5fd07b258
2022-04-30 20:16:07 -05:00
elajkat 64cedb7d25 req: Bump some requirements
oslo.context to 2.22.0
oslo.policy to 3.7.0
Mako to 1.0.7
oslo.config to 6.0.0
eventlet to 0.22.1
SQLAlchemy to 1.3.0
requests to 2.18.0
rfc3986 to 1.2.0
idna down to 2.5 (requests 2.18.0 depends on idna<2.6 and >=2.5)

Change-Id: Iff72bfcc386b1219802d7842dfa394711fa8ae5f
2021-09-30 16:46:40 +02:00
Akihiro Motoki 7c8262cf50 Fix inconsistency in requirements
The latest pip resolver started to check requirements strictly
and it detects many inconsistencies in neutron-vpnaas requirements.
Also applies the practices discussed in the mailing list [1][2].

* Drop pyflakes from requirements.txt as it is not used.
* Move document dependencies to doc/requirements.txt [1]
  and drop them from lower-constriants.txt.
* Bump MarkupSafe lower-constraint to 1.1.1
  to make it work with newer setuptools.
* Bump the minimum neutron requirement to 17.0.0 (victoria release)
  as the previous min version 13.0.0.0b2 is too old.
  Wallaby and Victoria neutron are not different much, so I think
  it is no problem to use the latest released version here.
* Dependenicy related to neutron min version bump are updated
  in requirements and lower-constraints.
  Note that eventlet 0.22.0 is used as lower-constraints as 0.21.0
  (the min requirement in neutron 17.0.0) is blocked in several libs.
* Move linter dependencies to tox.ini and drop them from
  lower-constraints.txt (pylint, pyflakes, astroid, isort)
* Drop psutil from neutron_vpnaas/tests/functional/requirements.txt
  as the specified version of psutil is too old and psutil is a dependency
  of neutron so we don't need to install it explicitly here.

In addition, hacking version is updated as hacking 0.12.0 is not compatible
with python 3.8. W504 and I202 are ignored as we do in the neutron repo.
Other new flake8 violations are fixed.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019362.html

Change-Id: I47f6d39379b68c4d71fc4d85ebb06d97cb5a6ce2
2021-01-07 05:13:34 +09:00
Dongcan Ye 2d8177e3c5 Fix lower-constraints and pep8 for Focal
Change-Id: I08502e7251e7f2e956ce54b007af59d09f0f1cfc
2020-09-27 01:32:10 +00:00
Elod Illes 2b293a1bfa Pin isort to 4.3.21
This patch fixes multiple issues to unblock gate:

1. With new isort releases (5.X.X) pylint started to fail, with error:

     AttributeError: module 'isort' has no attribute 'SortImports'

   This patch pin isort to 4.3.21, the last version before 5.0.0.

2. lower-constraints of appdirs and pytz need to be updated as
   currently lower-constraints job fails.

   Since patch Ia012a8e116a276a6674f86366c803e0e2d8ff704 modified the
   NEUTRON_PATH variable the functional test fails with:

   [..]neutron/tools/configure_for_func_testing.sh: line 113: /home/zuul/src/opendev.org/openstack/neutron-vpnaas/devstack/lib/ovs: No such file or directory

3. Functional job fails, because during tox run the latest released
   neutron is installed and it requires mock to be installed. This
   patch adds mock to functional test requirements. Note: this needs
   to be deleted as soon as new neutron will be released as on
   development branch neutron does not depend on mock anymore.

Change-Id: Ibc4cd7f8a055457b288ef101893c252cf0464a28
2020-08-12 10:21:24 +02:00
Zuul adaa2c38db Merge "Remove translation sections from setup.cfg" 2020-06-18 15:39:43 +00:00
gugug 644a19d38e Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can
generate translation files without them.

Change-Id: Idbd4f0b3565de74aa40a054ee6e98699422a0095
2020-05-27 23:56:59 +08:00
Andreas Jaeger d18958bf72 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.

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: Ibeec55164eaa9985b3e9281bc23ecdad232e4fff
2020-05-21 20:43:36 +02:00
Dongcan Ye 92781c975c Using unittest.mock instead of mock
We're only support py3 now, so using the standard library
unittest.mock instead of the mock module.

Change-Id: Ie827780a950cf66030ee1a688674e66ca7f3479c
2020-04-02 01:56:51 +00:00
Dongcan Ye 5b3a139c4a Drop using six library
Since we dropped python 2 support and testing in[1], there is
no compatibility with Python2 now. We can stop using python
six module.

[1] https://review.opendev.org/#/c/698245/

Change-Id: I15771f129ada53f1f8ca6683c8d80d5675332db5
2020-01-07 06:26:03 +00:00
Boden R 8bf042180a Fix and skip gate failures
lower-constraints.txt is updated.
- ryu 4.24
- pecan 1.3.2

neutron-vpnaas-tempest-libreswan-centos is now non-voting
because Cinder DB migration fails on CentOS 7.

This patch also includes the changes from [1] as without them the tests
fail.

[1] https://review.openstack.org/#/c/599034/

Related-Bug: 1808709

Change-Id: Id6a2eadfacb3983cfc05142860a827d3233561dd
2018-12-19 07:01:03 -07:00
Boden R 02e9f5888b update requirements for neutron-lib 1.18.0
Neutron-lib 1.18.0 is our Rocky RC and is already being used by neutron
[1]. This patch updates the neutron-lib required version to match
neutron [1] in prep for the Rocky release.

[1] https://review.openstack.org/#/c/583671/

To work with neutron-lib 1.18.0, we need Rocky version of neutron,
so the minimum version of neutron is bumped to 13.0.0.0b2 (Rocky-2).

We also need to bump the minimum version of SQLAlchemy. Rocky neutron
depends on pending_to_persistent ORM event in SQLAlchemy which was added
in SQLAlchemy 1.1. Rocky neutron now requires SqlAlchemy>=1.2.0,
so the min version of SQLAlchemy is bumped to 1.2.0.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: I7c8c6c1b28e9dd85e192ec8d44e324e135419cbd
2018-07-24 07:45:43 +09:00
Slawek Kaplonski 83db537dc6 Switch to stestr
According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects
should migrate.
Let's switch it then.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Ia4c71631e4c51ec814bcefc115d4f5690c11e37b
2018-06-28 13:07:54 +00:00
Akihiro Motoki 16935c7b1a Fix lower-constraints.txt
During the change https://review.openstack.org/#/c/573216/,
neutron-vpnaas lower-constraints.txt looks out-of-date.
This commit fixes lower-constraints.txt.

Change-Id: Ie15722a60d4be5dc326ce16466610d7c6308884c
2018-06-21 16:34:30 +00:00
Doug Hellmann 9233ac27f8 add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I312f591a68fa30636502eadb563de5656faca3e9
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 16:37:09 -04:00