Commit Graph

101 Commits

Author SHA1 Message Date
Takashi Kajinami 11dc763c47 Remove old excludes
These are detected as errors since the clean up was done[1] in
the requirements repository.

[1] 314734e938f107cbd5ebcc7af4d9167c11347406

Also remove the note about old pip's behavior because the resolver
in recent pip no longer requires specific order.

Change-Id: Ie2f08726cfc764643a50777c552f95413eb67305
2024-04-30 22:45:32 +09:00
Riccardo Pittau b750b74c20 Add lower-constraints job to current development branch
The lower-constraints test was removed because of an issue where pip
could not correctly determine the required packages versions to install,
ending in an almost infinite loop that would end up in timeout, failure,
and general mayhem.
Recently the issue has been fixed and, if properly configured, the
lower-constraints test can provide good indication of which minimum
versions are required to support the current code.
This patch adds the test back to the current development branch, and it
runs only on master.
The lower-constraints file will stay in the future stable branches.

Fix olso.utils min requirement and remove doc8 from test-requirements
as it's already included in tox.ini config.

Change-Id: Ic0174f59b95a878539ab17f659f1663548e94ed7
2021-08-06 10:03:03 +02:00
Dmitry Tantsur 22a944bd31 Import json_rpc from ironic
To be able to use the same JSON RPC implementation for ironic-inspector,
it is now imported in ironic-lib. Some additional abstraction laters are
added to avoid hard dependency on oslo.context and oslo.messaging.

Change-Id: I0e790cebcd086d26bf27b909f73842c3f46bbd77
2021-02-23 15:44:25 +01:00
Dmitry Tantsur 782b85d57f Import common keystone configuration from ironic
This code is used by both ironic and ironic-inspector with barely
any difference and will be required to import the JSON RPC code.

To prevent IPA from depending on keystoneauth, the new requirement
is added as a new extra feature "keystone".

Change-Id: I8bc08ec9e081a67d1687033413fee63698e14e69
2021-02-08 13:33:40 +01:00
Riccardo Pittau c99fae9393 Fix lower-constraints with the new pip resolver
Remove pep8 dependencies from test-requirements, they're not
needed there and are hard to constraint properly.

Change lower-constraints to make pip resolver happy.

Add bindep.txt to provide dev libraries to build python modules.

Change-Id: I4edc2ebc7b29849901964279b5cc551944d830a9
2020-12-09 12:43:40 -08:00
Riccardo Pittau e788188f23 Set safe version of hacking
Versions of hacking from 3.1.0 until 4.0.0 NOT included are supposed
to require a safe version of flake8, so besides normale issues related
to minor version upgrades, we can safely use those versions.
Also forcing pycodestyle versions to be compatible with flake8 installed
by hacking.

Change-Id: I4612e84ee88c21121d97e31c9ab22d776f4fb5bc
2020-10-19 13:41:29 +00:00
Dmitry Tantsur 14d7653ce1 Drop the dependency on oslo.service loopingcall
It forces eventlet on us and can be easily replaced with tenacity.

Change-Id: I0085a3929ec27ab119884e8610b7c15f8dc62d63
2020-08-31 15:15:17 +02:00
Riccardo Pittau 28b64d27c0 Update version of hacking
Now with a safe version of flake8!

Change-Id: Id524994f6c57124d59d5863129c0879965dd1de2
2020-07-30 11:43:27 +02:00
zhangbailin 21572b0c73 Bump 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: Ib39f593616e2933ca5c1dbfa231691d6ced60e6c
2020-05-26 08:18:11 +08:00
Dmitry Tantsur 7fd83d7d9b Dependencies and tox.ini clean-up
* Remove testscenarios, it's an ancient artefact
* Replace the only usage of testtools with a simple check
* Split out doc/requirements.txt
* Clean tox.ini of unnecessary (and probably cargo-culted) stuff
* Added Pygments for syntax highlighting check

Change-Id: I9f6b03606973e1e8123165c46bef53c4ce8e2b92
2020-04-28 13:20:08 +02:00
Riccardo Pittau 81461b5b93 Upgrade flake8-import-order version to 0.17.1
Full py3 compatible version.
Add all Python3 modules to stdlib list.
Also includes fix to an enum34 dependency bug.

Change-Id: Ib518f6f110a52e891fb1952262e4456181d3d712
2020-04-21 15:10:55 +02:00
Sean McGinnis 8d2ac297fd
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I94daf175305b5fd31380088e27ecec2083f89e59
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 16:08:20 -05:00
Andreas Jaeger a235a15346 Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Switch to apidoc instead of autodoc for API docs, use sphinx-build.

Change-Id: Ie6107bc80961a7306957b17ac2eda44417b53d3e
2020-04-05 19:16:10 +02:00
Dmitry Tantsur 6c9d5dc58b Bump hacking to 3.0.0
The new version enables a lot of standard flake8 checks, so a few
fixes are required. W503 is disabled as it conflicts with W504
and the latter seems to be preferred nowadays.

Change-Id: I929ff36eaa47a42bc551f5c37bd40f64bc4f14d0
2020-03-30 11:34:27 +02:00
Iury Gregory Melo Ferreira 6bb4f81c46 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

ironic-lib is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal - https://review.opendev.org/#/c/691178/

Change-Id: Idfa5afedb607c99c34ff4a07594f698c9bd3bed8
2019-11-22 14:10:45 +01:00
Kaifeng Wang aa44aadb72 Build pdf doc
The is one of community goals that each project could produce a
single PDF file. The pdf should be in the output of openstack-tox-docs
job.

TeX packages are required to build PDF locally, following is recommended:

* inkscape
* texlive-latex-base
* texlive-latex-extra
* texlive-fonts-recommended

More about the goal:
https://governance.openstack.org/tc/goals/train/pdf-doc-generation.html
https://etherpad.openstack.org/p/train-pdf-support-goal
https://etherpad.openstack.org/p/pdf-goal-train-common-problems

Change-Id: I8b42ab0f057cb33c1ec93adfa32c45aafc2730b0
2019-09-06 08:45:32 +08:00
Dmitry Tantsur 8a798680e1 Update Sphinx requirements to match global-requirements
Change-Id: I99550cdc484ca8802e58bcdfe444296697c22e7e
2019-05-14 12:19:01 +02:00
Chuck Short 89fbae42ac Switch to using 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: Ibb1e23aceeb9a864306c52b410bda77736454ef0
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-06-27 14:50:06 -04:00
ghanshyam 19c9f0594d Gate fix: Cap hacking to avoid gate failure
hacking is not capped in g-r and it is in
blacklist for requirement as hacking new version
can break the gate jobs.

Hacking can break gate jobs because of various
reasons:
- There might be new rule addition in hacking
- Some rules becomes default from non-default
- Updates in pycodestyle etc

That was the main reason it was not added in g-r
auto sync also. Most of the project maintained the
compatible and cap the hacking version in
test-requirements.txt and update to new version when
project is ready. Bumping new version might need code
fix also on project side depends on what new in that
version.

If project does not have cap the hacking version then,
there is possibility of gate failure whenever new hacking
version is released by QA team.

Example of such failure in recent release of hacking 1.1.0
- http://lists.openstack.org/pipermail/openstack-dev/2018-May/130282.html

Change-Id: I2cdc79ed0cd302990a0434c477d6f3ec2c05fb8b
2018-05-09 02:45:52 +00:00
Doug Hellmann 01468cba3b fix lower constraints and uncap eventlet
Fix the lower constraints settings to match the expected values.

We will manage the eventlet version using constraints now. See the
thread starting at
http://lists.openstack.org/pipermail/openstack-dev/2018-April/129096.html
for more details.

Change-Id: If7314a88a57bdd8db9bfa090e5e46c09c37a5087
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-17 13:10:43 +09:00
OpenStack Proposal Bot bf6411340c Updated from global requirements
Change-Id: I3bfc66124aa51295509e13dfc4aa9597d26cfcec
2018-03-15 07:00:46 +00:00
OpenStack Proposal Bot 307acb2327 Updated from global requirements
Change-Id: I8bc6d790ba81fb878c7da49abf924f09f2c9f371
2018-03-13 06:55:02 +00:00
OpenStack Proposal Bot 8c17876082 Updated from global requirements
Change-Id: I7de1040be18ce7db8cb5eb97f81e01192b066c77
2018-03-10 13:15:27 +00:00
OpenStack Proposal Bot 8f4e89facd Updated from global requirements
Change-Id: I2f80411eb93d768c4e1eac400a1f9f38cca2eb0b
2018-01-24 00:55:53 +00:00
OpenStack Proposal Bot c67ca2c726 Updated from global requirements
Change-Id: I049f8bb1188a4ef35600e3313586ce4c7fbfc3da
2018-01-17 20:35:38 +00:00
OpenStack Proposal Bot ef1596988a Updated from global requirements
Change-Id: I0e2bec99b0d5a151a560adc7d6dca05011f859d2
2018-01-16 12:29:38 +00:00
John L. Villalovos 5d1d7c4cc7 Update version of flake8-import-order package
Use latest version of flake8-import-order package, like we do in
openstack/ironic

Fix two issues detected by new version.

Change-Id: I3d2f5499f3a863167419469d313e06be79f51841
2017-12-08 14:13:32 -08:00
OpenStack Proposal Bot 02aac8094b Updated from global requirements
Change-Id: I68501966aae807c500a698190cf38814b5adbd0a
2017-11-16 11:05:48 +00:00
OpenStack Proposal Bot 7fe023de21 Updated from global requirements
Change-Id: I417926a728618e77a8abe33938101032c9c0af30
2017-09-16 23:13:03 +00:00
OpenStack Proposal Bot fda26ac644 Updated from global requirements
Change-Id: I23f6078bd717878464907c532a9cb058f13d62ec
2017-09-13 12:51:24 +00:00
John L. Villalovos c693d5d04f flake8: Enable some off-by-default checks
Enable the following off-by-default checks:
    * [H106] Don't put vim configuration in source files.
    * [H203] Use assertIs(Not)None to check for None.
    * [H204] Use assert(Not)Equal to check for equality.
    * [H205] Use assert(Greater|Less)(Equal) for comparison.
    * [H210] Require ‘autospec’, ‘spec’, or ‘spec_set’ in
             mock.patch/mock.patch.object calls
    * [H904] Delay string interpolations at logging calls.

Fix code that failed [H904]. Nothing else failed the new added checks.

Change-Id: I727c944aad04298de07bcdd1d0008dcb9ffe32e9
2017-09-06 20:39:38 -07:00
OpenStack Proposal Bot d5d0b3bbd1 Updated from global requirements
Change-Id: I3a1d618e60038f80fbc5cc993790338bd2aeda6c
2017-08-18 04:41:35 +00:00
OpenStack Proposal Bot cb1e041ec2 Updated from global requirements
Change-Id: I3fbf025ece33e47a57db4c6442e2f2636ba49c69
2017-07-18 01:47:00 +00:00
Julia Kreger 958063e1ed Switch from oslosphinx to openstackdocstheme
Change-Id: I52055e7b3c0ed8f56d05ca624339b7e9aca19222
2017-07-15 14:39:36 +00:00
OpenStack Proposal Bot 52440836bd Updated from global requirements
Change-Id: I5c5b575324f71a87936036e8f4c16009fd9eaaf1
2017-06-27 12:11:06 +00:00
OpenStack Proposal Bot 11106dfb42 Updated from global requirements
Change-Id: I30576714cd6195c3ec98daa5c81ff9527247d901
2017-06-10 21:38:06 +00:00
OpenStack Proposal Bot fc75e159e1 Updated from global requirements
Change-Id: Ic1215a9ef301e5db92f660f91a6c823e64e1b853
2017-05-17 13:40:13 +00:00
OpenStack Proposal Bot 5278105658 Updated from global requirements
Change-Id: Ibbd5852508f4b20aa988516103e1caf50ddd3f21
2017-05-15 00:45:01 +00:00
OpenStack Proposal Bot 2d658aaeb9 Updated from global requirements
Change-Id: I7bf1b6ba5dbbfe8da7514643eba97e5774cddde5
2017-03-02 23:55:32 +00:00
ricolin 3882d82f39 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: Icb9a79cac0222db5261e8802b4b3b08c4d5e6ac2
2017-03-02 17:01:45 +08:00
John L. Villalovos 30c946d330 Use flake8-import-order
Use the flake8 plugin flake8-import-order to check import ordering. It
can do it automatically and don't need reviewers to check it.

Change-Id: Ib3fde54d8baa2c6e3567ff3f1a902de4b25f9f70
2017-02-16 09:51:31 -08:00
OpenStack Proposal Bot 061211cf2e Updated from global requirements
Change-Id: I931ae50ad48b68e4dff01107813d54d842f1f8ac
2017-02-11 17:42:57 +00:00
Jenkins cb336f4b41 Merge "Bump hacking to 0.11.0 in test-requirements" 2016-10-28 10:51:51 +00:00
OpenStack Proposal Bot 33c282545f Updated from global requirements
Change-Id: I383f48a4b517256d77004faed823310017a7cc8a
2016-10-27 12:14:38 +00:00
Jay Faulkner 9825cb7d7d Bump hacking to 0.11.0 in test-requirements
Hacking's latest release is 0.11.0. Most other ironic projects are using
this release.

These updates are done project-by-project to avoid introducing
unexpected new hacking rules to projects. This version bump already
applies cleanly to ironic-lib with no code style changes.

Change-Id: I6e47390299bf8f073b8c8413f0cd4e1365f938bb
2016-10-19 04:19:49 -07:00
OpenStack Proposal Bot e1cad868df Updated from global requirements
Change-Id: Iae3d5af83d5a7a62204bd64f782f52f2597504be
2016-09-30 10:17:35 +00:00
Jay Faulkner 84f8c3095a Enforce doc8, make it pass, + fix inaccuracies
This patch fixes all sphinx warnings generated by malformed docstrings.

Additionally, it contains formatting and accuracy fixes for the metrics
docstrings, to ensure blockquotes are properly rendered, and to indicate
the get_metrics_logger() method is actually in metrics_utils.

Finally, this adds doc8 to the pep8 job, ensuring we don't reintroduce
some of these errors. As a note, there are items that can cause warnings
in doc builds that aren't enforced by doc8, and can't be enforced until
a doc build job is added to project-config.

Change-Id: I622812bfe8af576ab215c098dd211c6faf697a0c
Partial-bug: #1614272
Partial-bug: #1611559
2016-08-18 16:47:22 +00:00
Jay Faulkner 4f58317ce0 Add framework for doc building in ironic-lib
This adds a doc build for ironic-lib. Currently the only documentation
is that generated from docstrings.

Change-Id: I6ee00ad863bc7ce72958db4e8d5b6871a5b96eb0
Partial-bug: #1614272
2016-08-18 09:14:52 -07:00
OpenStack Proposal Bot cd25d69987 Updated from global requirements
Change-Id: I86570efe458ab49d192551e793509e14ad7b2b1a
2016-05-30 00:13:26 +00:00
Dmitry Tantsur 20720a8c0b Clean up test-requirements
Remove unused: discover, oslosphinx, sphinx, pylint, simplejson, mox3.

Add actually used mock.

Change-Id: I8c839a99b25e7ec4def4f1eb7d1aaff45c3f0381
2016-03-29 19:30:58 +02:00