We are pumped to announce the release of: pbr 7.0.0 The source is available from: https://opendev.org/openstack/pbr Download the package from: https://pypi.org/project/pbr For more details, please see below. 7.0.0 ^^^^^ Upgrade Notes ************* * Support for the "[global] compilers" option has been removed. This was an undocumented feature that did not appear to have any use. * The deprecated support for "setup.py test" has been removed. This feature has been deprecated since version 4.0. The two test tools supported, "nose" and "testr", are no longer maintained, and the general concept of distutils commands is itself deprecated. Users should switch to running the test runners directly and ideally migrate to an alternative, supported test runner like "stestr" or "pytest". Deprecation Notes ***************** * A number of pbr-specific *setup.cfg* sections and options have been deprecated in order in favour of setuptools native *setup.cfg* sections and options or their *pyproject.toml* equivalents: * The *[entry_points]* section has been deprecated in favour of the *[options.entry_points]* section (if using *setup.cfg*) or the *[project.scripts]* and/or *[project.entry-points.{name}]* sections (if using *pyproject.toml*) * The *[files] packages_root* option has been deprecated in favour of the *[options] package_dir* option (if using *setup.cfg*) or the *[tools.setuptools] package_dir* option (if using *pyproject.toml*) * The *[files] packages* option has been deprecated in favour of the *[options] packages* option (if using *setup.cfg*) or the *[tools.setuptools] packages* option (if using *pyproject.toml*) * The *[files] package_data* option has been deprecated in favour of the *[options.package_data]* option (if using *setup.cfg*) or the *[tool.setuptools.package-data]* option (if using *pyproject.toml*) * The *[files] namespace_packages* option has been deprecated in favour of the *[options] namespace_packages* option (if using *setup.cfg*). Alternatively, migrate to PEP 420-style namespace packages * The *[files] data_files* option has been deprecated, and support for non-package data files in general is deprecated in setuptools and their use is discouraged. For package data files, use *[options] package_data* (if using *setup.cfg*) or *[tools.setuptools] package_data* (if using *pyproject.toml*) instead. If non-package data files are necessary, use *[options] data_files* (if using *setup.cfg*) or *[tools.setuptools] data- files* (if using *pyproject.toml*) instead. * The *[files] scripts* option has been deprecated. There is no direct replacement. Instead, migrate to using the *console_scripts* entrypoint and use the *[options.entry_points]* option (if using *setup.cfg*) or the *[project.scripts]* option (if using *pyproject.toml*). * The *[files] modules* option has been deprecated in favour of the *[options] py_modules* option (if using *setup.cfg*) or the *[tools.setuptools] py-modules* option (if using *pyproject.toml*) * The *[metadata] home_page* option has been deprecated in favour of the *[metadata] url* option (if using *setup.cfg*) or the *[project.urls]* option (if using *pyproject.toml*) * The *[metadata] summary* option has been deprecated in favour of the *[metadata] description* option (if using *setup.cfg*) or the *[project] description* option (if using *pyproject.toml*) * The *[metadata] classifier* option has been deprecated in favour of the *[metadata] classifiers* option (if using *setup.cfg*) or the *[project] classifiers* option (if using *pyproject.toml*) * The *[metadata] platform* option has been deprecated in favour of the *[metadata] platforms* option (if using *setup.cfg*) or the *[tool.setuptools] platforms* (if using *pyproject.toml*) * The *[metadata] requires_dist* option has been deprecated in favour of the *[options] install_requires* option (if using *setup.cfg*) or the *[project] dependencies* option (if using *pyproject.toml*) * The *[metadata] setup_requires_dist* option has been deprecated in favour of the *[options] setup_requires* option (if using *setup.cfg*) or the *[build-system] requires* option (if using *pyproject.toml*) * The *[metadata] python_requires* option has been deprecated in favour of the *[options] python_requires* option (if using *setup.cfg*) or the *[project] requires-python* option (if using *pyproject.toml*) * The *[metadata] requires_python* option has been deprecated in favour of the *[options] python_requires* option (if using *setup.cfg*) or the *[project] requires-python* option (if using *pyproject.toml*) * The *[metadata] provides_dist* option has been deprecated as it is obsolete and is no longer used by pip * The *[metadata] provides_extra* option has been deprecated as it is obsolete and is no longer used by pip * The *[metadata] obsoletes_dist* option has been deprecated as it is obsolete and is no longer used by pip * The *[backwards_compat] zip_safe* option has been deprecated as it is was only relevant in the context of eggs and is therefore obsolete * The *[backwards_compat] dependency_links* option has been deprecated as it is obsolete and is no longer used by pip * The *[backwards_compat] tests_require* option has been deprecated as it is obsolete and is no longer used by pip * The *[backwards_compat] include_package_data* option has been deprecated in favour of the *[options] include_package_data* option (is using *setup.cfg*) or the *[tools.setuptools] include- package-data* option (if using *pyproject.toml*) Changes in pbr 6.1.1..7.0.0 --------------------------- 63c8efa Remove duplicate line in test_generates_c_extensions 2e8db96 Update setup.cfg usage docs to explain pbr vs setuptools better 3261691 Silence Python warnings 4a17dcb Do not use the onerror parameter in shutil.rmtree() 3bbb792 docs: Remove deprecated options 1ed80ed tox: Stop calling 'setup.py' e177eae Deprecate 'tests_require' option 8f1a6ec Deprecate various '[backwards_compat]' options 145fead Deprecate various '[metadata]' options 370e380 Deprecate '[files]' section 9e7b9cc Deprecate '[entry_points]' section 8d5f4eb docs: Update usage guide and README 6dc031c Move functional tests to their own directory 589076b Move distutils commands to _compat 69fbbbb Use sysconfig for sitedir path in test_wsgi in py3 6dcc15a Remove support for custom compilers 109bb7e Move fixtures to their own module c44dc05 Remove 'test' distutils command override a690610 Cleanup removal of 'build_sphinx' command doc e7f140f Use packaging where possible 0256e75 Use importlib.metadata where possible b92acd3 Tweak loading distribution version 4f8e23d Centralise Python 2/3 compat code 248450d Add __future__ imports 174b397 Resolve post-black issues 28988fd Add black 0c1fb38 docs: Remove use of sphinxcontrib-apidoc c74b961 Don't pin setuptools for all tests 9956df0 pre-commit: Bump versions 3f9c3d4 tests: Skip tests that break on newer setuptools 141d0ea Add openstack-tox-py313 job 90de90c tests: Set GNUPGHOME in tests c1fa2cf tests: Add hint if running integration tests locally e93bedd Modernize tests to use EXT_SUFFIX, fix PyPy 64cad81 Run python release package build job in check and gate Diffstat (except docs and test files) ------------------------------------- .pre-commit-config.yaml | 27 +- .zuul.yaml | 6 + README.rst | 21 +- pbr/_compat/__init__.py | 0 .../commands.py => _compat/command_hooks.py} | 35 +- pbr/_compat/commands.py | 442 +++++++++++ pbr/_compat/five.py | 65 ++ pbr/_compat/metadata.py | 163 ++++ pbr/_compat/packaging.py | 111 +++ pbr/build.py | 5 + pbr/cmd/main.py | 75 +- pbr/core.py | 23 +- pbr/extra_files.py | 6 +- pbr/find_package.py | 8 +- pbr/git.py | 77 +- pbr/hooks/__init__.py | 5 +- pbr/hooks/backwards.py | 15 +- pbr/hooks/base.py | 7 +- pbr/hooks/files.py | 17 +- pbr/hooks/metadata.py | 10 +- pbr/options.py | 10 +- pbr/packaging.py | 599 ++------------ pbr/pbr_json.py | 5 +- pbr/sphinxext.py | 22 +- pbr/testr_command.py | 167 ---- .../test_console_scripts.py} | 95 +-- .../test_wsgi_scripts.py} | 72 +- pbr/util.py | 328 +++++--- pbr/version.py | 195 +++-- pyproject.toml | 4 + .../build_sphinx_removal-de990a5c14a9e64d.yaml | 2 +- .../global-compilers-removal-62b131e40de087ef.yaml | 5 + .../setuptools-alignment-b5b1309f47e9cf98.yaml | 99 +++ .../test-command-removal-153fc9ecdd6834ef.yaml | 10 + releasenotes/source/conf.py | 6 - setup.cfg | 8 +- setup.py | 3 +- test-requirements.txt | 7 - tools/integration.sh | 46 +- tox.ini | 22 +- 72 files changed, 3897 insertions(+), 2570 deletions(-) Requirements updates -------------------- diff --git a/test-requirements.txt b/test-requirements.txt index 7d92462..5bab77d 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,4 +0,0 @@ -# The order of packages is significant, because pip processes them in the order -# of appearance. Changing the order has an impact on the overall integration -# process, which may cause wedges in the gate later. - @@ -7 +2,0 @@ fixtures>=3.0.0 # Apache-2.0/BSD -hacking>=1.1.0,<4.0.0;python_version>='3.6' # Apache-2.0 @@ -21,2 +15,0 @@ testrepository>=0.0.18 # Apache-2.0/BSD - -pre-commit>=2.6.0;python_version>='3.6' # MIT
participants (1)
-
no-reply@openstack.org