Commit Graph

23 Commits

Author SHA1 Message Date
Hervé Beraud 2fa5af2c2b drop mock from lower-constraints and requirements
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints and requirements.

These changes will help us to drop `mock` from openstack/requirements

Change-Id: I1a31c6c5a04e0e883cf956a5ae74f444b1673332
2020-06-09 10:46:06 +02:00
Ghanshyam Mann 6006487578 Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: If3e913f5251ecbdcc996199329ec27daa80486ee
2020-05-12 19:48:26 -05:00
Andreas Jaeger a70fa6bc39 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

Change-Id: Iad5e3891c59713f7dd2cdb0a691a964ff37108cf
2020-03-31 13:13:32 +00:00
Akihiro Motoki 82a046cec4 Bump hacking to 1.1.0
Ignore W504 and F405 by configurations.
Reasons of disabling them are explained as comments in tox.ini.
They are already ignored in the horizon repository and
AFAICT it is not easy to avoid them in horizon plugins as well.

Fixes the following new error:
* E123 closing bracket does not match indentation of opening bracket's line

Change-Id: Ic2154fff3b90cebbfba86deb8cf832232682d347
2019-02-14 01:52:13 +09:00
Akihiro Motoki eebb9946b1 Switch test runner to django default runner
nose is not actively maintained now and Django default test runner
seems to have enough features.

Also drops unnecessary python dependencies so that
the maintenance of requirements files easily.
There is no need to install Django explicitly as it is a horizon dependency.
testscenarios, testrepository, testtools are not used actually.

Depends-On: https://review.openstack.org/#/c/544296/
Change-Id: Ic360c181d1f3278957007fc7188560893cc5ed03
2018-06-11 08:37:50 +09:00
Akihiro Motoki f9f43f1a8f Follow the new PTI for document build
The detail is described in the following links:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Our documentation build actually does not depends on Django
as we don't create source code reference.
It is a good chance to drop Django dependencies from the doc build.

Change-Id: I7323187a40dbd41848cee983a90dfcf29d74a77d
2018-05-08 07:19:13 +09:00
Zuul 4b61c2083e Merge "Drop mox3 from test-requirements.txt" 2018-03-25 18:12:32 +00:00
OpenStack Proposal Bot 235f664ffb Updated from global requirements
Change-Id: If63e9a4b366cb28039d80584bbd0ffa3801845aa
2018-03-15 07:24:40 +00:00
OpenStack Proposal Bot b20b2ca1d0 Updated from global requirements
Change-Id: I3c5ce510b7ffdb70b596df96fdaec7c5affb213e
2018-03-13 07:07:46 +00:00
OpenStack Proposal Bot d4b82faf56 Updated from global requirements
Change-Id: I0b4a44e00fc3d522033d5cec11ff4169c6bd366a
2018-03-10 13:29:17 +00:00
Akihiro Motoki 4ae1508604 Drop mox3 from test-requirements.txt
create_stubs in test.helpers is also dropped in this commit
because this creates a stub using mox.

This is part of mox-removal community goal in Rocky.

Depends-On: https://review.openstack.org/549842/
Change-Id: I150d654b40dd14bb738e0da991e5db7f311cf7b6
Closes-Bug: #1753504
2018-03-06 04:08:21 +09:00
OpenStack Proposal Bot c1924c09e8 Updated from global requirements
Change-Id: I03e29266c9be6290c963326e6d88357677798603
2018-01-27 18:03:39 +00:00
OpenStack Proposal Bot d10c0275e3 Updated from global requirements
Change-Id: I25bae0f867eb1889b56e9fea9d83e726d311384c
2018-01-24 02:05:55 +00:00
OpenStack Proposal Bot e928e34336 Updated from global requirements
Change-Id: I93da8d20629238be8bbfea9a5342ce4a1aa1571a
2017-11-16 11:15:01 +00:00
OpenStack Proposal Bot 5e3759e9e4 Updated from global requirements
Change-Id: I0d20a1657b3ae5a8739f5f91d423903cb9d9a940
2017-09-21 00:37:56 +00:00
Akihiro Motoki 55337ba80a Use flake8-import-order plugin
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.

application-import-names needs to be specified in tox.ini
to ensure application imports are placed after third-party imports.

Change-Id: If2067b950737ae7ebc65b2311955754be795758f
2017-08-29 06:52:55 +00:00
OpenStack Proposal Bot a8e81ddc55 Updated from global requirements
Change-Id: I31b62e0879b5e3f4a4d8f564dcff63bf56988d02
2017-08-23 12:15:20 +00:00
OpenStack Proposal Bot 7c0b975b30 Updated from global requirements
Change-Id: If911f2874a390067073d3950397859b0f11edfd5
2017-07-27 19:14:47 +00:00
Dirk Mueller 96051ca0f4 Manually sync with g-r
Change-Id: Ib79f03c4b90c8082794c48788fbb5bd06cc4469b
2017-06-28 22:48:49 +02:00
Akihiro Motoki dfc2257c55 Update openstackdocstheme configuration
In openstackdocstheme 0.11.0, the way to configure openstackdocstheme
was changed and the new way is really simple. Let's use it.

Change-Id: I3f8775cc54ece19915ab7b06285a0e7d2995eb8b
2017-06-28 15:26:03 +00:00
Akihiro Motoki 6a2c69be9c Prepare initial documentationn
* Adopt openstackdocstheme
* Document structure follows doc-migration spec
  https://review.openstack.org/#/c/472275/
* Release notes is generated as part of doc build to make
  doc publishing easy. neutron-vpnaas is not an official project
  and cannot publish it to docs.o.o.

Change-Id: I4fb1058fc078b32d549db3c66d91c85e0bdbe7a5
2017-06-22 17:03:08 +09:00
Akihiro Motoki 5ea44d4a92 Cleanup test env 2017-05-20 23:07:40 +00:00
Akihiro Motoki dc9ff338fe Setup test environment 2017-05-20 11:30:02 +09:00