Commit Graph

107 Commits

Author SHA1 Message Date
Takashi Kajinami c7f7df2920 Remove unused tempest from test requirements
This repository no longer contains any tempest tests since [1] was
merged.

[1] 4077093c10

Change-Id: I78e3b70d8add8587b596df21f09e3d18e569ae72
2023-10-27 10:20:41 +09:00
elajkat 6eaed1cdba Tests: fix requirements for unit tests
Add WebTest to test-requirements which used to be imported as a
transitive requirement via pecan, but the latest release of
pecan dropped this dependency. So make this requirement explicit.

Related-Bug: #1982110
Change-Id: I55c8ef4bd0e6f71ee058083708bbac4aa9fa56a0
2022-07-19 12:02:25 +00:00
Mohammed Naser 8b39906814 cleanup: drop un-used test-requirements.txt
Change-Id: I10db82bf5769ab7d82600301e22ef4b1ce25eb2f
2022-04-22 19:54:21 +00: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
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
Zuul c3c2145fa6 Merge "Using unittest.mock instead of mock" 2020-04-20 09:23:37 +00:00
Andreas Jaeger a64f25f684 Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Remove obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo
  * Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: I79cf58adf35726999a0791525dd28a7e70de4591
2020-04-05 10:13:09 +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 7124a4d4fa Fix pep8 error in py37
While running PEP8 in python3.7 environment, will met the
following exception:
"RuntimeError: generator raised StopIteration"
This is an known issue in py3.7, and had been fixed in Pylint 2.x.

After upgrade Pylint to 2.2.0, the issue is:
"AttributeError: 'Import' object has no
attribute 'infer_name_module' on import"
This issue was fixed in Pylint 2.3.0.

So upgrades Pylint to 2.3.0, this patch also
adds some refactor recommendations in .pylintrc[1]

[1] http://paste.openstack.org/show/789057/

Change-Id: I2b3983e3653d92c5b12f233b57fb4467df1da83d
2020-02-03 11:16:12 +00:00
Bernard Cafarelli 7d851c6401
Drop python 2 support and testing
This is part of Ussuri goal tracked for Neutron stadium at:
https://etherpad.openstack.org/p/neutron-train-zuulv3-py27drop

Change-Id: Idcbecc3ee3e2140cdff45a58cd4628064f17181f
2019-12-17 15:04:40 +01:00
Slawek Kaplonski 183934eae6 Fix missing "is_sort_key" for basic vpnaas attributes
Patch [1] introduced need to explicity set with "is_sort_key"
flag to attributes which attribute can be used as sort key.
This patch adds it to base attributes in vpnaas resources, like:
* id,
* tenant_id,
* name,
* subnet_id,
* router_id

This commit also updates sphinx requirements to make requirements
jobs passing.

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

Change-Id: Ibe1aee0346e3fc21215d1b3be8752224aa2c162d
Closes-Bug: #1832225
2019-06-11 11:55:13 +02:00
Boden R d1d60b93bc add local pep8 tox target
This patch adds the pep8-dev tox target for running pep8 locally as per
[1]. In addition it updates the pylint version to work with python 3.x
and addresses some pylint errors in the code.

[1] https://etherpad.openstack.org/p/neutron-sibling-setup

Change-Id: I7bd4d8e75601a7291692d6256925f46fb4fa5464
2018-09-26 09:18:01 -06: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
OpenStack Proposal Bot cd0c73816f Updated from global requirements
Change-Id: Id3f794271da9803539ad874bdcc5798d24d692a9
2018-03-23 01:23:23 +00:00
OpenStack Proposal Bot f777901721 Updated from global requirements
Change-Id: I5f351b5c4ec9704c540abf4789a70ea539dab21f
2018-03-15 07:24:25 +00:00
OpenStack Proposal Bot a5e43bd839 Updated from global requirements
Change-Id: I8b871e8f0fd9fd4702dc857cec0347bee2443211
2018-03-10 13:29:08 +00:00
OpenStack Proposal Bot fbbf8bdfdd Updated from global requirements
Change-Id: If46cb3d425fee2da95100103e58cbbc11a674916
2018-01-27 20:11:50 +00:00
OpenStack Proposal Bot 88c3272ee3 Updated from global requirements
Change-Id: Ia74f4ee9a19d79bd595536cd435c3ebaf3a39480
2017-11-16 11:14:56 +00:00
Zuul 4c56c427f9 Merge "Cleanup test-requirements" 2017-11-09 17:16:00 +00:00
OpenStack Proposal Bot 723404724d Updated from global requirements
Change-Id: If529c87ec9115a57acad097a9f6b2b6d2d0c2225
2017-11-01 14:54:10 +00:00
Cao Xuan Hoang d33afac540 Cleanup test-requirements
python-subunit is not used directly anywhere at the moment.
No need to keep it at the requirement dependency.

Change-Id: I37aa91f07bed9ae6fd9e53eb92805fb20516a009
2017-09-25 10:52:07 +07:00
YAMAMOTO Takashi e3da5c10c4 Update for os-testr 1.0.0 / stestr
Note: .testr.conf is still necessary for cover target.

Closes-Bug: #1716743
Change-Id: I567d84d0f1109a4809e1ac69e0d54c73a22b9706
2017-09-19 10:05:01 +09:00
OpenStack Proposal Bot 63179db11b Updated from global requirements
Change-Id: Ia3c5b78eeb68fe87fe45cb4735f8769777a505e5
2017-09-05 12:18:30 +00:00
OpenStack Proposal Bot 8278615c1f Updated from global requirements
Change-Id: Ib9a97ae7b1ca31caae56c97e06631e96eaa5e10a
2017-07-27 19:14:44 +00:00
Jenkins c1b9a1afaf Merge "Use flake8-import-order plugin and clean up exceptions" 2017-07-20 18:35:30 +00:00
OpenStack Proposal Bot 1eda905a84 Updated from global requirements
Change-Id: Ib32f0e283b87d0ae5dfcb9927c72a85a6f19dd35
2017-07-19 18:38:20 +00:00
Cao Xuan Hoang d8ba5b7a81 Use flake8-import-order plugin and clean up exceptions
1. In reviews we usually check import grouping but it is boring.
By using flake8-import-order plugin, we can avoid this.
It enforces loose checking so it sounds good to use it.
This flake8 plugin is already used in tempest.

Note that flake8-import-order version is pinned to avoid unexpected
breakage of pep8 job.

Setup for unit tests of hacking rules is tweaked to disable
flake8-import-order checks. This extension assumes an actual file
exists and causes hacking rule unit tests.

2. This patch is also intend to clean up exceptions to avoid
confusing for other developers and the maintenance-ability as well.

Change-Id: I032892f08e073feb5b822d27d092f041b17d57e1
2017-07-11 15:49:52 +07:00
OpenStack Proposal Bot 9ac61004ac Updated from global requirements
Change-Id: If330041ee3684ba64c29f1bce8e12566d2c58a91
2017-06-30 12:19:28 +00:00
Van Hung Pham 0c1ac4badb Switch from oslosphinx to openstackdocstheme
As part of the docs migration work[0] for Pike we need to switch to use
the openstackdocstheme.

[0]https://review.openstack.org/#/c/472275/

Change-Id: Icb985379c263d7d06544d69bae11282a18a7fc52
2017-06-30 02:50:37 +00:00
OpenStack Proposal Bot 51db56a461 Updated from global requirements
Change-Id: I2eab9772ee70eb310c2c2d8f60730577333dbd3d
2017-05-17 03:52:33 +00:00
Jenkins d13c5298b7 Merge "Updated from global requirements" 2017-04-17 05:50:31 +00:00
OpenStack Proposal Bot e1aca0ba72 Updated from global requirements
Change-Id: I98b4062817844db31a724ceedf98db91da2278c8
2017-04-12 17:01:45 +00:00
Ihar Hrachyshka 6cfc527fc6 Remove subunit-trace fork
This makes tox use the latest version of the tool from os-testr repo,
which contains some valuable changes, like the one making the gate fail
if for some reason no tests are executed because all of them are
skipped.

Change-Id: If88be4b310d746ccc885e3d0c1db8a4dfabb2a28
2017-04-06 11:53:09 -07:00
OpenStack Proposal Bot adad1cb624 Updated from global requirements
Change-Id: I5453b4e0c332a65721b51ecf93ad82079c3e208f
2017-03-07 17:22:28 +00:00
ricolin 993e88bfc1 [Fix gate]Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: I2b5b3ff519c2a956d65be8503aac7e5d05793295
2017-03-02 17:39:27 +08:00
OpenStack Proposal Bot f982cfc423 Updated from global requirements
Change-Id: I967ced6542f80d4eb7dd4300861eccab010bace7
2017-02-10 05:53:38 +00:00
OpenStack Proposal Bot 101ce2fb08 Updated from global requirements
Change-Id: I83d8d49d20b7ddc0e8c92da96c975371b847941a
2016-11-02 15:35:32 +00:00
OpenStack Proposal Bot 23533087c4 Updated from global requirements
Change-Id: I248b44e45520ad88f6549f93f8548fd47df83926
2016-10-22 01:22:47 +00:00
OpenStack Proposal Bot 5a1dba9e8d Updated from global requirements
Change-Id: I3f17dbb1addafae4f9154bd1ef858030172d438c
2016-10-12 22:49:46 +00:00
OpenStack Proposal Bot 8d00cac1cb Updated from global requirements
Change-Id: I018ea878ffb8a9b62afc5454e7290b88b47183b5
2016-09-28 16:56:20 +00:00
OpenStack Proposal Bot 2bd7bd487c Updated from global requirements
Change-Id: I24551c58829799adef666821f59bae4abc779b61
2016-09-26 04:23:22 +00:00
OpenStack Proposal Bot a79c2323bf Updated from global requirements
Change-Id: I3b95502f569cd5791fd65b20a8ec44611aa7b681
2016-07-06 16:37:59 +00:00
ghanshyam 0a82097605 Replace tempest-lib to tempest in test-requirements.txt
Since I516b37d45200cc120a929ecd9011ff8bb4c45d9f tempest-lib has
not been used in tests. In addition, tempest-lib itself is marked
as deprecated.
So this patch removes tempest-lib from test-requirements.txt and
add tempest to have right version of that for used interfaces.

Change-Id: Ic9e93944e3480da5ee411a46b062f2e0afef7a93
2016-07-01 05:30:31 +00:00
OpenStack Proposal Bot 7f79293b94 Updated from global requirements
Change-Id: I1fba1dc0b4313c5c616c762a3928e7125496b0c7
2016-06-24 03:14:27 +00:00
OpenStack Proposal Bot b9eeecbcbe Updated from global requirements
Change-Id: Ie68f2c0bc60f85896f6dca09ad8be6b7301912df
2016-06-22 19:59:44 +00:00
OpenStack Proposal Bot cb935c33f6 Updated from global requirements
Change-Id: I5626ec62e908a23d4adabc2e331db8042149c22c
2016-06-21 18:02:23 +00:00
OpenStack Proposal Bot d47d569bba Updated from global requirements
Change-Id: Ia7762a4202556eaba90f6b01e80bda4be522d72e
2016-06-03 18:15:57 +00:00
OpenStack Proposal Bot 764344f710 Updated from global requirements
Change-Id: Iebe9d46d3f4beaf250f5b950fb98e32ce8987884
2016-05-26 17:01:40 +00:00