Commit Graph

22 Commits

Author SHA1 Message Date
Takashi Kajinami d938b6d8e0 Drop lower-constraints.txt (again)
The commit 9d116cd7c6 says it removes
the file but it didn't.

Change-Id: I1a519b205cce0fc7eeefba8f162d4542c4412425
2024-01-08 23:43:53 +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
Riccardo Pittau 0bbba8e62f Remove lower-constraints job
As discussed during the upstream ironic community meeting on
Monday Dec 14 2020, the lower-constraints job is being removed.

Change-Id: Iab279c57676dba8faa87ab7523e577d3b65eb428
2020-12-15 18:44:24 +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
wu.chunyang d61ca27745 Remove the unused coding style modules
Python modules related to coding style checks (listed in blacklist.txt in
openstack/requirements repo) are dropped from lower-constraints.txt
they are not needed during installation.

Change-Id: I3a686b00cb2a6cb7cde4a26001d6d9016aab08eb
2020-08-26 22:34:19 +08:00
Riccardo Pittau 718817bf7a Use tenacity to retry convert_image
Instead of using a loop, we use the tenacity library to provide
correct retry feature to the convert_image function.

Change-Id: I0ddef614be55b0f6365a952a906197e7a219ef65
2020-08-17 11:59:25 +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
Hervé Beraud c3d9449dbc 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: If307ca1f689b1ade1428b904bbf122bd6aa5da97
2020-06-11 11:57:49 +02:00
Zuul df238ba1f3 Merge "Implement Basic HTTP authentication middleware" 2020-06-01 20:57:22 +00: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
Steve Baker a9abc5699f Implement Basic HTTP authentication middleware
This middleware is added to ironic-lib so that it can eventually be
used by ironic and ironic-inspector as an alternative to noauth in
standalone environments.

This middleware is passed a path to a file which supports the
Apache htpasswd syntax[1]. This file is read for every request, so no
service restart is required when changes are made.

The only password digest supported is bcrypt, and the ``bcrypt``
python library is used for password checks since it supports ``$2y$``
prefixed bcrypt passwords as generated by the Apache htpasswd utility.

[1] https://httpd.apache.org/docs/current/misc/password_encryptions.html
Needed-By: https://review.opendev.org/727467
Needed-By: https://review.opendev.org/729463

Change-Id: I874783b8ece0eedf27a94dfed5163d0c82f8b9de
Story: 2007656
Task: 39740
2020-05-26 10:00:06 +12:00
Riccardo Pittau 72d95b8008 Update lower-constraints.txt
We need to list all dependencies in lower-constraints

Change-Id: Ib7ec4c7e5149e445c1d705cbe29bccbf8f0507b4
2020-05-12 17:38:56 +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
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
Riccardo Pittau 0e01f0735c Stop using six library
Since we've dropped support for Python 2.7, it's time to look at
the bright future that Python 3.x will bring and stop forcing
compatibility with older versions.
This patch removes the six library from requirements, not
looking back.

Change-Id: I4bf885bc7d1ccdf46dde3e0b10a8dbec304aaf9b
2019-12-06 01:49:46 +01:00
Dmitry Tantsur 78249cc93f mdns: support IPv6 addresses
Updates the zeroconf requirement to 0.24.0, breaking compatibility
with Python 2 (dropped in an earlier patch).

Change-Id: Ib77720c3223074e89705f019848e1e4d19ebfdba
2019-11-24 17:59:11 +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 c90d008a5b Add support code for multicast DNS service discovery
To simplify standalone configuration, we need an ability for IPA
to discovery ironic and ironic-inspector on the local network.
This change adds the support code for using multicast DNS (RFC 6762)
with DNS service discovery (RFC 6763) to publish and discover
OpenStack services as proposed in the API SIG guideline
https://review.opendev.org/651222.

Change-Id: Iaf3422331238884412ce608c0667de7891945f98
Story: #2005393
Task: #30432
2019-05-14 12:19:37 +02:00
Vu Cong Tuan 9ba805d4b0 Remove testrepository
This commit is a follow-up of "switch to using stestr"
which was merged already [1].
After switch to using stestr, testrepository is unnecessary
and should be removed.

[1] https://review.openstack.org/578522

Change-Id: I94f4883aa52e5a5623ebd0ce9145951f422ae51a
2018-07-11 18:16:12 +07: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
Doug Hellmann 4270bbe4e9 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: I7b1a6743bea281fc8c75fd8ad062973c51539670
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 13:45:20 -04:00