diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9d945567450344fa94ec9e6280095e86a6c532b0..08aef91b213be4ddd939a50b8dc41a603a8cc14f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ default_language_version: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: ebc15addedad713c86ef18ae9632c88e187dd0af # v3.1.0 + rev: 9136088a246768144165fcc3ecc3d31bb686920a # v3.3.0 hooks: - id: trailing-whitespace # Replaces or checks mixed line ending @@ -27,9 +27,13 @@ repos: - id: debug-statements - id: check-yaml files: .*\.(yaml|yml)$ - - repo: https://gitlab.com/pycqa/flake8 - rev: 181bb46098dddf7e2d45319ea654b4b4d58c2840 # 3.8.3 + - repo: local hooks: - id: flake8 + name: flake8 additional_dependencies: - hacking>=3.0.1,<3.1.0 + language: python + entry: flake8 + files: '^.*\.py$' + exclude: '^(doc|releasenotes|tools)/.*$' diff --git a/.zuul.yaml b/.zuul.yaml index 842503010e8067207e14a591251da141657d69b2..84bb45c2f858c4e54d39cadce50ede7e7390c34e 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -2,7 +2,7 @@ templates: - check-requirements - lib-forward-testing-python3 - - openstack-python3-wallaby-jobs + - openstack-python3-xena-jobs - periodic-stable-jobs - publish-openstack-docs-pti - release-notes-jobs-python3 diff --git a/lower-constraints.txt b/lower-constraints.txt deleted file mode 100644 index 107c82e0b4105da0c83a1803303c2e5a5fcd68fc..0000000000000000000000000000000000000000 --- a/lower-constraints.txt +++ /dev/null @@ -1,35 +0,0 @@ -appdirs==1.3.0 -Babel==2.3.4 -bandit==1.4.0 -coverage==4.0 -debtcollector==1.2.0 -extras==1.0.0 -fixtures==3.0.0 -gitdb==0.6.4 -GitPython==1.0.1 -ipaddress===1.0.17 -iso8601==0.1.11 -keystoneauth1==3.4.0 -linecache2==1.0.0 -mox3==0.20.0 -msgpack==0.5.2 -netaddr==0.7.18 -netifaces==0.10.4 -os-client-config==1.28.0 -oslo.i18n==3.15.3 -oslo.utils==3.33.0 -oslotest==3.2.0 -pbr==2.0.0 -pyparsing==2.1.0 -python-mimeparse==1.6.0 -python-subunit==1.0.0 -pytz==2013.6 -requests==2.14.2 -requestsexceptions==1.2.0 -smmap==0.9.0 -stestr==2.0.0 -stevedore==1.20.0 -testtools==2.2.0 -traceback2==1.4.0 -unittest2==1.1.0 -wrapt==1.7.0 diff --git a/oslo_serialization/tests/test_jsonutils.py b/oslo_serialization/tests/test_jsonutils.py index f07682203d76b8bc7805575197da0976e0d0fb7a..9c922359bc8f8baeba5c683744a2b1dae18cc418 100644 --- a/oslo_serialization/tests/test_jsonutils.py +++ b/oslo_serialization/tests/test_jsonutils.py @@ -14,6 +14,7 @@ # under the License. import collections +import collections.abc import datetime import functools import io @@ -241,9 +242,9 @@ class ToPrimitiveTestCase(test_base.BaseTestCase): self.assertEqual({'iteritems': 'iteritems'}, p) def test_mapping(self): - # Make sure collections.Mapping is converted to a dict + # Make sure collections.abc.Mapping is converted to a dict # and not a list. - class MappingClass(collections.Mapping): + class MappingClass(collections.abc.Mapping): def __init__(self): self.data = dict(a=1, b=2, c=3) diff --git a/releasenotes/source/index.rst b/releasenotes/source/index.rst index 8e1b9fe0e4521a14f41cbff38f7063a6460bfba5..19a54bea7997b5519003ba941cb7b1127802f717 100644 --- a/releasenotes/source/index.rst +++ b/releasenotes/source/index.rst @@ -6,6 +6,7 @@ :maxdepth: 1 unreleased + wallaby victoria ussuri train diff --git a/releasenotes/source/wallaby.rst b/releasenotes/source/wallaby.rst new file mode 100644 index 0000000000000000000000000000000000000000..d77b56599553b6fe996624b33c1663168342fb94 --- /dev/null +++ b/releasenotes/source/wallaby.rst @@ -0,0 +1,6 @@ +============================ +Wallaby Series Release Notes +============================ + +.. release-notes:: + :branch: stable/wallaby diff --git a/setup.cfg b/setup.cfg index 3d464b5b278a3c83217a8e18d77da2b07af7ef8e..6b0ff4d61afe3d3d6fa3830dc586b95ce50881ca 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,12 +1,12 @@ [metadata] name = oslo.serialization summary = Oslo Serialization library -description-file = +description_file = README.rst author = OpenStack -author-email = openstack-discuss@lists.openstack.org -home-page = https://docs.openstack.org/oslo.serialization/latest/ -python-requires = >=3.6 +author_email = openstack-discuss@lists.openstack.org +home_page = https://docs.openstack.org/oslo.serialization/latest/ +python_requires = >=3.6 classifier = Environment :: OpenStack Intended Audience :: Information Technology diff --git a/tox.ini b/tox.ini index 929b8dc4ca6dd038bd34f47623a8b03f9c37bf21..3069e46bff45dda23df0feddd57cfa2adf568538 100644 --- a/tox.ini +++ b/tox.ini @@ -6,7 +6,7 @@ ignore_basepython_conflict = true [testenv] deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt commands = stestr run --slowest {posargs} @@ -26,7 +26,7 @@ commands = python setup.py test --coverage --coverage-package-name=oslo_serializ [testenv:docs] whitelist_externals = rm deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/doc/requirements.txt commands = rm -fr doc/build @@ -39,12 +39,6 @@ commands = rm -rf releasenotes/build sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html -[testenv:lower-constraints] -deps = - -c{toxinidir}/lower-constraints.txt - -r{toxinidir}/test-requirements.txt - -r{toxinidir}/requirements.txt - [flake8] # E123, E125 skipped as they are invalid PEP-8. # W504 line break after binary operator