Commit Graph

400 Commits (13a9c2799ad945da44de8ac1d737270c92d408c1)
 

Author SHA1 Message Date
Zuul 13a9c2799a Merge "remove unicode from code" 8 months ago
OpenStack Release Bot 55e9e1e5e8 Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: I258603f7e7304c3e852d6d47bae5e024e33a90f7
9 months ago
wangjiaqi07 c13ac8a0cc remove unicode from code
Change-Id: Ib4c9f766b2844d8a3cdc748fbd9ef98b81aec5a5
10 months ago
Takashi Kajinami ccd17543a3 Fix remaining logic to support Python 3.6/7
... because this library no longer supports these old versions and
requires Python >= 3.8 now[1].

[1] 8efaa1ceb8

Change-Id: I2b229b24425d3afb9159b2479bd9547e3443011f
12 months ago
Hervé Beraud 8efaa1ceb8 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)

Also indicates that we support python 3.9.

Change-Id: I1bdec397b1ac563b09174763c20e8a91e5f86143
1 year ago
OpenStack Release Bot 3e10666e14 Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I5fab51857949a743a07d4639f5e0ba114de19eab
1 year ago
OpenStack Release Bot 15d258c29e Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/yoga.

Sem-Ver: feature
Change-Id: I732f42ae437931a824aba788bf434f85100f06fa
1 year ago
OpenStack Release Bot 442f157193 Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ia489c3d9a47828961b7a8fe736c3bc1ddaaa32cc
2 years ago
OpenStack Release Bot ba9469f41e Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/xena.

Sem-Ver: feature
Change-Id: I6195a346563189a6867482950b13eda11e0fb5d2
2 years ago
Jason R. Coombs 11da137e3f Rely on member access, the preferred access since importlib_metadata 4.8.
Change-Id: I20a7fe4240cf78e6b863951740c2d0fe9aa28132
Closes: #1941991
2 years ago
Zuul 8846a3f24a Merge "setup.cfg: Replace dashes with underscores" 2 years ago
Zuul e32c2a0396 Merge "Fix formatting of release list" 2 years ago
maaoyu cba482114c 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: I394e12bf1816e4e23e4f547db4bae89547af7989
2 years ago
Zuul 31c58f24e7 Merge "Add Python3 xena unit tests" 2 years ago
Pierre Riteau ba1268da18 Fix formatting of release list
Change-Id: I86d06e8b665e4440f6c67e1de8cd3a217ac1d166
2 years ago
wu.shiming 74d6d5867b Remove lower-constraints remnants
These were missed in change: I62d911111b54976a9df726c48f593a52e275fe6c

Change-Id: I4f07ec3617d5e73abbabd45234fe4e67ec395fdb
2 years ago
Zuul 3ce59eee72 Merge "Update master for stable/wallaby" 2 years ago
Daniel Bengtsson 53838531be Move flake8 as a pre-commit local target.
The goal here is to avoid conflicts between flake8 and hacking version each
2 days.

Inspired from nova's approach[1].

The flake8 version to install will be determined by hacking and
requirements[2] will stay aligned instead of relying on different versions.

[1] https://opendev.org/openstack/nova/src/branch/master/.pre-commit-config.yaml#L26-L35
[2] https://opendev.org/openstack/hacking/src/branch/master/requirements.txt#L1

Change-Id: I9ffd46865477b3fa7d43258d67dd0ec224ee6467
2 years ago
OpenStack Release Bot 518948a489 Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ib5e435c53f7719b6e64a550c0aec6a2d0d576839
2 years ago
OpenStack Release Bot 107308ac1d Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/wallaby.

Sem-Ver: feature
Change-Id: I73998aa60325a26fc11418a0b37c1f4524469e32
2 years ago
Zuul 6cd09a820e Merge "Use TOX_CONSTRAINTS_FILE" 2 years ago
Hervé Beraud 90b5daaa9c Dropping lower constraints testing
We facing errors related to the new pip resolver, this
topic was discussed on the ML and QA team proposed to
to test lower-constraints [1].

I propose to drop this test because the complexity and recurring pain needed
to maintain that now exceeds the benefits provided by this mechanismes.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019390.html

Change-Id: I62d911111b54976a9df726c48f593a52e275fe6c
3 years ago
Zuul 7d7154f7ea Merge "Use py3 as the default runtime for tox" 3 years ago
Zuul d7cfadbb7d Merge "Fix cache dir flooding when running from /tmp" 3 years ago
Hervé Beraud 8b6b861813 Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://review.opendev.org/#/c/722814/
[2] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Change-Id: I03900ffe9e59ad3f4f8f89329a9e1b9c6844b1b1
3 years ago
Hervé Beraud 41a4d63d38 Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update this at
each new cycle.

Wallaby support officially the following runtimes [1]:
- Python 3.6
- Python 3.8

During Victoria Python 3.7 was used as the default runtime [2] however this
version isn't longer officially supported.

[1] https://governance.openstack.org/tc/reference/runtimes/wallaby.html#python-runtimes-for-wallaby
[2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria

Change-Id: Ieb5fd2c1efd9297b9b589e6f13cbe5e0a4cb73cb
3 years ago
Zuul 9f4a7d1e26 Merge "Adding pre-commit" 3 years ago
Hervé Beraud de9b2fc6a1 Adding pre-commit
Introduced changes:
- pre-commit config and rules.
- Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks.
- Applying fixes for pre-commit compliance in all code.

Also commit hash will be used instead of version tags in pre-commit to
prevend arbitrary code from running in developer's machines.

pre-commit will be used to:
- trailing whitespace;
- Replaces or checks mixed line ending (mixed-line-ending);
- Forbid files which have a UTF-8 byte-order marker
  (check-byte-order-marker);
- Checks that non-binary executables have a proper
  shebang (check-executables-have-shebangs);
- Check for files that contain merge conflict strings
  (check-merge-conflict);
- Check for debugger imports and py37+ breakpoint()
  calls in python source (debug-statements);
- Attempts to load all yaml files to verify syntax (check-yaml);
- Run flake8 checks (flake8) (local)

For further details about tests please refer to:
https://github.com/pre-commit/pre-commit-hooks

Change-Id: I045fa1cd7932d960e1cf49b2c335c7acdeba0b46
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
3 years ago
Artem Goncharov 3a46e29141 Fix cache dir flooding when running from /tmp
Ansible invokes modules with executable placed under /tmp. This
causes stevedore caching to create bazillions of useless cache files.
When we can identify we run with executable under /tmp or if in the
target cache directory an empty file '.disable' is present - skip
writing cache.

Change-Id: Ic483ac68027505402ba32d7f612631e15a678d09
3 years ago
OpenStack Release Bot 1f41eccb3a Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I1a592855fcb07e982b7b25688026646d51961096
3 years ago
OpenStack Release Bot 371f87edd4 Update master for stable/victoria
Add file to the reno documentation build to show release notes for
stable/victoria.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/victoria.

Change-Id: I111d3307dd6af6d814d5f685f3acd7a41e5168e0
Sem-Ver: feature
3 years ago
Evgeni Golov 274eaa6c54 fix supported python versions in documentation
Change-Id: Ia92d5b8f6194d9f7ba2f3221fe378dafe23be567
3 years ago
zhangziwen efb338e00b Fix the bug 1892610. There're some syntax errors in the comment of stevedore code.
There is a syntax error in the comment of stevedore code.
For example, in the HookManager class:
    :param on_load_failure_callback: Callback function that will be called when
        a entrypoint can not be loaded.
Here should not be `a entrypoint`, just `an entrypoint` instead.

Fixes: bug #1892610

Change-Id: Ic2aaf5f467bcecaec6adff1ead8e159ae749ac50
3 years ago
Doug Hellmann e9204ee7b7
add property methods to extension for more entry point values
The underlying EntryPoint class has some similar methods to fetch
these values, but they depend on the version of importlib.metadata
that is installed, so this provides a consistent API

Change-Id: I7a1b9541f0e4042a224e49c890ba3c63e8a5a259
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
3 years ago
Doug Hellmann bc04ca91e0
sphinxext: fix warning message for detailed list
Fix the way the warning for undocumented modules in a detail list is
produced. The new importlib.metadata.EntryPoint type is derived from
namedtuple so using string interpolation means the multi-part tuple
causes an error. Take the opportunity to include a more detailed
message.

Change-Id: I02223a982258a1bf8fc28fa91c7c090c7ac3554e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
3 years ago
Doug Hellmann 5eb3ef2de3
add release note before major version update
Change-Id: I1ffe194f9edfffac07c9c78f9691e999f2e61246
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
3 years ago
Doug Hellmann d5297167e0 switch to importlib.metadata package
Load entry points using 'importlib.metadata' instead of 'pkg_resources'.

Include a caching layer.  The cache stores the parsed text data from all
of the ini input files in a single JSON file with a name based on the
hash of the path entries and the mtimes. This should produce a unique
filename for each import path, regardless of the use of a virtualenv.

The data is stored in a format that means no other files need to be
examined or parsed in order to return EntryPoint objects.

Change-Id: I8b08f289d446f4775eac1e1a91997fa96f25f641
Depends-On: Ic6db7af34c87a636bfe55bacae03c42154f4b9c7
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
3 years ago
Sean McGinnis 01c12eca14
Remove Travis CI config
Travis is not actually used for this repo. Remove the old configuration
file to clean things up.

Change-Id: I862f8e0222a7f0e12c7b67ad305e021b76859fe4
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
3 years ago
Michał Górny 34b9a13049 Replace external mock with built-in unittest.mock
Now that stevedore does not support Python 2 anymore, there is no need
to ever use the external 'mock' package.  Python 3.3+ has it integrated
as 'unittest.mock', so just use that.

Change-Id: I28a50cac12670bb6987b4c7794a15e15aa1fe965
Signed-off-by: Michał Górny <mgorny@gentoo.org>
3 years ago
Zuul 0c10f5cf21 Merge "Stop to use the __future__ module." 3 years ago
Hervé Beraud db43e802fb Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I5f8107287877dc5dc4a12c1f85e8671c8d49f56f
3 years ago
Andreas Jaeger 02a28cce85 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.

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: Ie53af423c56f3355e7e911e6f2efd6c73c6d57c5
3 years ago
OpenStack Release Bot 45348742e1 Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I60066db4e84dd3807cd9c35d44e8253ff1c54438
3 years ago
Sean McGinnis edc7f06a92 Mark sphinx extensions thread safe
This adds the return of some metadata to our sphinx extension setup to
indicate they are thread safe. This is needed to allow consuming
projects to do multithreaded docs builds. In some cases, this can save a
noticeable amount of time in job execution.

Change-Id: I43e8f0c992eaec9f5b669eea4ae551c8a3273588
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
3 years ago
Stephen Finucane ee784d5de7 Remove dead files
You don't need a MANIFEST.in file when using pbr, and the announce.rst
file wasn't referenced anywhere and has been effectively replaced by
reno.

Change-Id: Ib40d6f194a47901487c4fca1220dad7002d31984
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
3 years ago
Stephen Finucane 1aca4bcbb7 Drop Python 2.7 support
Change-Id: I7ae34cb701111adb2968e9b0c153dfd60aeb2fbb
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Sem-Ver: api-break
3 years ago
OpenStack Release Bot 08cf225eee Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.

Change-Id: Ib0b263bcc254061c17a42bcb974591d10213545a
Sem-Ver: feature
3 years ago
Zuul 5165a274b7 Merge "Blacklist sphinx 2.1.0 (autodoc bug)" 4 years ago
pengyuesheng 120b70b11a Switch to Ussuri jobs
Change-Id: I473d9bb2d8a1f936ea220baa35815d64340eb9c6
4 years ago
Zuul 568361905d Merge "Update master for stable/train" 4 years ago