Commit Graph

49 Commits

Author SHA1 Message Date
Stephen Finucane 842e5d047c pre-commit: Integrate bandit
We also remove these unnecessary linter dependencies from
test-requirements.txt.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Icf2296c1ad1548ffe8be0610800f1c6c5d33c473
2024-03-29 10:34:19 +09:00
Ghanshyam Mann 58b43501cf Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg

Change-Id: I1dfb59aaccbc50deda08863007536c46f4445a44
2024-01-11 16:18:56 -08:00
Takashi Kajinami 67b9c23f16 Remove deprecated SSLMiddleware
It was deprecated 8 years ago[1].

[1] 67ec676980

Change-Id: Icf5ea03ec56cdb3a42345f1be32a7a9926351a82
2023-11-14 22:55:15 +09:00
Ghanshyam 2eb512cc3b Revert "Moves supported python runtimes from version 3.8 to 3.10"
This reverts commit 089fa3659e.

Keeping Python 3.10 in setup.cfg classifier and zuul.yaml changes.

Reason for revert:

Needed-By: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175

TC has been discussing about re-adding the python 3.8
testing in current master 2023.2 release testing.

- https://meetings.opendev.org/meetings/tc/2023/tc.2023-04-25-18.00.log.html#l-191
- https://lists.openstack.org/pipermail/openstack-discuss/2023-April/033469.html

While governance changes are under review, TC agreed to add py3.8 testing
so that we do not see more project/lib dropping python 3.8 and make them
uninstalable on python 3.8

- https://meetings.opendev.org/meetings/tc/2023/tc.2023-05-02-18.00.log.html#l-17
- https://review.opendev.org/c/openstack/governance/+/882165

Also adding py3.8 testing back in job https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175

Change-Id: I3a9f8ee9ac1fabbc83680051d5930e956ba113f8
2023-05-05 18:57:05 +00:00
Hervé Beraud 089fa3659e Moves supported python runtimes from version 3.8 to 3.10
Within 2023.2 python version 3.9 and 3.10 are the
supported python runtimes [1].
[1] https: //review.opendev.org/c/openstack/governance/+/872232

Change-Id: I45f418ea67bd24a91ec0ca1989b7c54b234a2242
2023-04-10 12:59:22 +09:00
Hervé Beraud 51e1882de1 Drop python3.6/3.7 support in testing runtime
In Zed cycle testing runtime, we are targetting to drop the
python 3.6/3.7 support, project started adding python 3.8 as minimum,

example nova:
- 56b5aed08c/setup.cfg (L13)

Change-Id: Ia82c3c5e8d16fa9d111430a57588e49ab512775a
2022-05-05 16:08:14 +02:00
dengzhaosen 2f72b30cba Update python testing classifier
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I073da11fd075685aa57f95b8eead893dee79143c
2021-12-21 17:09:13 +08:00
Zuul b75a7184d9 Merge "Add paste.filter_factory entrypoint for basic auth middleware" 2021-10-26 16:20:36 +00:00
Takashi Kajinami 8e47bfc77c Add paste.filter_factory entrypoint for basic auth middleware
... so that the middleware can be loaded using the python egg instead
of the direct path.

Closes-Bug: #1940738
Change-Id: I57408766c120d2c9784f3886457e91ee7d30de1b
2021-10-25 22:06:32 +09:00
Takashi Kajinami b413298763 Add oslo.config.opts entrypoint for basic auth middleware
... so that its options can be rendered by oslo-config-generator by
adding the entry point.
This change also updates the base oslo.middleware entry point to
include options of the middleware because the base entry point is
supposed to include all options in the oslo.middleware library.

Closes-Bug: #1940747
Change-Id: Ic9d79d9c46fc1dc78aa4d089e36219b2a34f4099
2021-08-22 01:58:07 +09:00
YuehuiLei 2ec633ccdf setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: Ic9487a052e549a91fcf09b94e5fae525548f8d68
2021-05-05 10:05:47 +08:00
melissaml 2c035c5f1a Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can
generate translation files without them.

Change-Id: I39beb972383622d4c4a3b17cb9c3d30674bca5bc
2020-05-15 11:16:23 +08:00
Sean McGinnis e62d949296
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: I568967e4ae45a47bb625d9ed8b172e56d58d78ac
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:12 -05:00
Andreas Jaeger d9718805c1 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove obsolete sections from setup.cfg
- Update classifiers
- Use newer openstackdocstheme version
- Switch to hacking 3.0, fix problems found

Change-Id: I539b00204279c7645ef4a3f804f64a1e7af30f05
2020-04-13 11:16:21 +02:00
Ben Nemec ecd9383043 Remove universal wheel configuration
Now that we've dropped py2 support we shouldn't be setting this
anymore.

Change-Id: I293ceeb925ff602470a2b67008ca2054338d41f8
2020-02-06 17:34:47 +00:00
Hervé Beraud 0f769d4c9f [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in Ussuri cycle.

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://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I8604e1a22d7cb13251e2ef22ef86318ad2de346e
2020-02-03 18:15:43 +01:00
Corey Bryant f1a47b9e6a Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Ib541de637ecbee664fa281b5920ece2c66055b13
Story: #2005924
Task: #34234
2019-07-05 14:48:43 -04:00
Ghanshyam Mann 91e6d7ae18 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: Idfbab7fbd4f69f041dfe88801e4808e45ccde329
2019-04-15 19:00:50 +00:00
ZhongShengping 1ebcb5c580 Update mailinglist from dev to discuss
openstack-dev was decomissioned this night in https://review.openstack.org/621258
Update openstack-dev to openstack-discuss

Change-Id: Idd212417ed7c8fbf715bfca0179e5220fbc73901
2018-12-05 09:38:31 +08:00
ChangBo Guo(gcb) 1cf39ee5c3 Update URLs in documents according to document migration
Change-Id: Ie988ab85d74f314a3c0ecc0f86ddd9dc48ab2305
2017-07-12 23:06:02 +08:00
Vu Cong Tuan 1062c4d79a Remove pbr warnerrors in favor of sphinx check
This change removes the now unused "warnerrors" setting,
which is replaced by "warning-is-error" in sphinx
releases >= 1.5 [1].

[1] http://lists.openstack.org/pipermail/openstack-dev/
2017-March/113085.html

Change-Id: If356e8bfd2ff414037a8688409798b13044fe3b2
2017-06-12 08:43:20 +07:00
Eric Brown bbc6259d14 Remove references to Python 3.4
Now that there exists only a gate job for Python 3.5 and not 3.4,
we should remove those references to the 3.4 that is untested.

Change-Id: I6264d7d2e1d97291b58b4358f3c397c1fbc320ac
2017-01-09 10:18:43 -08:00
Julien Danjou 6feaa13610 Transform healthcheck from filter to an application
The healthcheck middleware has actually wrongly been designed as a
filter, whereas it is its own application.

This patch fixes that by exporting the healthcheck middleware as an
application, while keeping the old behaviour for compatibility with
existing deployment.

Change-Id: I1ff43c71449f1955267faf6a85f4d70f705db097
2016-12-01 11:16:12 +01:00
melissaml edbb4ba465 Add Python 3.5 classifier and venv
Now that there is a passing gate job, we can claim
support for Python 3.5 in the classifier.
This patch also adds the convenience py35 venv.

Change-Id: I73178227e44caee792e6f7e4f4ddf4cfb07e096d
2016-11-22 23:32:26 +08:00
Jamie Lennox 96c918b86a Allow healthcheck to be configured by oslo.config
It is standard practice in oslo.middleware to allow configuration via
both the paste file and the oslo.config file. Projects such as keystone
don't allow shipping default configuration in the paste.ini files.

Use the configuration methods provided by the existing base middleware
to allow configuing via oslo.config and register the sample options
available for the middleware.

Closes-Bug: #1634329
Change-Id: I33b7b1f9d945280265eb3b712cb85a2d66616c17
2016-11-02 09:50:39 +11:00
melissaml c5de273fc3 Changed the home-page link
Set the correct link for home-page.

Change-Id: I026612ee874e7d926c8b82eab5a60c6601c4e951
2016-10-16 21:14:04 +08:00
Jamie Lennox 652dcc0072 Expose sample config opts for http-proxy-to-wsgi
Allow sample config generators to retrieve the options for the
http-proxy-to-wsgi middleware.

Change-Id: I862c9238b791098c9bb9ce4558db5b21dad14a30
Closes-Bug: #1590218
2016-06-08 14:53:36 +10:00
Andreas Jaeger 9e32b8f19d Update translation setup
Follow new infra setup for translations, see spec
http://specs.openstack.org/openstack-infra/infra-specs/specs/translation_setup.html
for full details.

This basically renames
oslo.middleware/locale/oslo.middleware.pot to
oslo_middleware/locale/oslo_middleware.pot. For this we need to update
setup.cfg.

Update also domain name in i18n.py.

Change-Id: I5d9c146d6bc9392930c93414c04dda89c16044c1
2016-01-29 10:39:12 +00:00
Davanum Srinivas fe8cdc9729 Remove old references to namespace packages
oslo and oslo.middleware packages do not exist any more

Hat Tip to @clarkb

Change-Id: Ia0a80dc9c08bfe72416d876da9ee9de70defe6d4
2016-01-11 13:39:31 -05:00
Davanum Srinivas (dims) ce6ca04280 Re-Add oslo.middleware namespace for backward compat
Short Story:
If we don't do this then we have to drop,
assert:support-upgrade from nova (Really Really Bad!)

Longer Story:
We need to support kilo paste-ini until liberty-eol per policies
already in place. To do that an alternative would have been
to cap global-requirements, but that got ruled out, please
see work and reasons here:
I5731b0278e266699fe716733b6dd4f7238a35586

There's also another new spec openstack-specs that is gathering
a lot of positive votes regarding backward compat:
I72e4e9cfa0539f6b326a0296c065fa3cb754f8ae

Note that this is not a straight revert of:
I1479f37f500a358cdf7ad416f0257288b65c9245

As i just want to drop the tests and keep the files to a
minimum. The grenade job is enough to test the older
scenario (which was failing) which we need to support.

Change-Id: I04739bc3987786b4bc1fefc70fabaa69b3de52b4
Closes-Bug: 1524404
2015-12-10 19:52:44 +03:00
ChangBo Guo(gcb) 33a57f217a Remove python 2.6 classifier
Change-Id: I9fbc3b649f93e320da886fe9e9688aba8d77752d
2015-11-17 14:48:38 +08:00
Jenkins 6121b6782c Merge "Remove oslo namespace package" 2015-11-16 23:50:12 +00:00
Tom Cocozzello 88ad62563d Define entry points for filter factories for Paste Deployment
Define filter factories so other projects can reference them by name
and can take advantage of the python egg instead of referencing
by the direct path.

Change-Id: Id05c319c1d19261618471fa75983cf8020fc60b6
Closes-Bug: 1500509
2015-11-13 08:33:28 -06:00
gordon chung 18d7b08490 Remove oslo namespace package
Blueprint remove-namespace-packages

Co-Authored-By: Doug Hellmann <doug@doughellmann.com>
Closes-Bug: #1463508
Change-Id: I1479f37f500a358cdf7ad416f0257288b65c9245
2015-11-09 13:56:37 -05:00
Joshua Harlow ff3cfe054b Add a disabled by ports -> files healthcheck plugin
Since most openstack applications do not run on a single
port it is useful to be able to have a single healthcheck
plugin that can respond to requests for different ports with
different files; this way for example keystone admin port can
be disabled while its public port can be kept active (without
having to run two different applications, one for the admin
endpoint and one for the public endpoint).

Change-Id: I0bafb5a2091e54c9f01f24812438296b75afaf63
2015-10-22 17:23:08 -07:00
venkatamahesh 5b085f5d73 Fix the home-page in setup.cfg with Oslo wiki page
The current value is launchpad url which is not
appropriate and so changed to Oslo wikipage

Change-Id: I2a324a072869471d8e7f1ece5e1fdadc1bea568f
2015-09-20 07:53:55 +05:30
Doug Hellmann ea893e8ba4 Split option discovery function by middleware
Create separate option discovery functions for each piece of middleware,
so an application that only uses one piece can include only those
options in its sample configuration file.

Test the results with some unit tests that simply ensure the functions
do not raise exceptions, and by adding configuration options to the
documentation for the library, using the new integration of oslo.config
with sphinx.

Change-Id: I4c777cd70c063441f430c48ab1f9c9cac2c1fc75
2015-08-27 06:06:44 -04:00
Doug Hellmann 6a03efc111 Revert "Remove oslo namespace package"
This reverts commit bcbfceb716.

Related-Bug: #1463478

Change-Id: I37055c4a85ad747de9b177fb0d12f48edc2d63f5
2015-06-09 17:40:54 +00:00
Doug Hellmann bcbfceb716 Remove oslo namespace package
Blueprint remove-namespace-packages

Depends-on: I38e7c60ec602c33f74de237b6014b4ac13ee4985
for openstack/nova

Change-Id: I3cc1bf69e5e7daccf283d9b9c7f8620d68961de7
2015-05-11 20:59:55 +00:00
Davanum Srinivas ce1acb4ff7 Advertise support for Python3.4 / Remove support for Python 3.3
Change-Id: Ifa0354af9fa910380125e95c7a96a55b46be1a89
2015-05-10 19:19:11 -04:00
Doug Hellmann 647da55977 Update the list of packages in setup.cfg
Similar to the previous fix, this change ensures that all of the
contents of the library are packaged when the .git repository is not
present.

Change-Id: I125ca872b1784dc389594b59f035cd24b1435c9f
2015-02-20 16:21:19 -05:00
Mehdi Abaakouk edabbd1619 Add healthcheck middleware
Implements blueprint oslo-middleware-healthcheck
Change-Id: Id19a47c07ff4fbf954ab188b7186361ed9ef213a
2015-01-19 10:32:18 +01:00
Doug Hellmann 8e06ca5bd0 Move files out of the namespace package
Move the public API out of oslo.middleware to oslo_middleware. Retain
the ability to import from the old namespace package for backwards
compatibility for this release cycle.

bp/drop-namespace-packages

Change-Id: If88c65c82b64f096a02f7ec62e019aea4de2f9d3
2015-01-06 13:44:01 -05:00
Jenkins 8438a8e15c Merge "Support building wheels (PEP-427)" 2014-10-04 01:51:26 +00:00
Davanum Srinivas 9ccefd8e62 Support building wheels (PEP-427)
Universal is used to identify pure-Python module(by bdist_wheel). For
these, it is sufficient to build a wheel with _any_ Python ABI version
and publish that to PyPI (by whatever means).

Change-Id: I99b5c30b7d7feb00eed1c9b4c7c8a0df4e41da84
2014-10-02 16:18:01 -04:00
Davanum Srinivas 7ee3b0f459 Expose sizelimit option to config generator
* Adding a group name to prevent collision with keystone
  middleware library option
* Adds an opts module for the config generator to use.
* Makes the option in sizelimit private since we don't want consumers
  using them directly.
* Moves the options to an oslo_middleware group with appropriate
  deprecated_opts settings to keep existing configs working.

Closes-Bug: #1368490
Change-Id: I72263bd363a79275a314de727a04277276866565
2014-10-01 08:16:10 -04:00
Doug Hellmann b6c4489960 Update docs for first release
Ensure each exported class has a docstring.

Add API to the sphinx docs.

Fix a few formatting issues so the rendered docs look OK.

Change-Id: Ieef7bae3783a084249169fe9b80ab17518eee15f
2014-08-26 17:33:01 -04:00
Gordon Chung a41dedff40 initial oslo.middleware checkin 2014-06-24 18:14:05 -04:00
Gordon Chung 5abab9ed08 exported from oslo-incubator by graduate.sh 2014-06-24 16:49:39 -04:00