Metadata-Version: 2.1
Name: pantsbuild.pants.testutil
Version: 2.7.0rc0
Summary: Test support for writing Pants plugins.
Home-page: https://github.com/pantsbuild/pants
License: Apache License, Version 2.0
Project-URL: Documentation, https://www.pantsbuild.org/
Project-URL: Source, https://github.com/pantsbuild/pants
Project-URL: Tracker, https://github.com/pantsbuild/pants/issues
Project-URL: Changelog, https://www.pantsbuild.org/docs/changelog
Project-URL: Twitter, https://twitter.com/pantsbuild
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: Software Development :: Testing
Description-Content-Type: text/markdown
Requires-Dist: pantsbuild.pants (==2.7.0rc0)
Requires-Dist: pytest (<6.3,>=6.0.1)

Pants is an Apache2 licensed build tool written in Python.

The latest documentation can be found at `pantsbuild <https://www.pantsbuild.org/>`_.


# 2.7.x Stable Releases

## 2.7.0rc0 (Aug 31, 2021)

### New Features

* Add `[tool].lockfile` (e.g. `[black].lockfile`) for Python tools and activate `./pants generate-lockfiles` by default ([#12684](https://github.com/pantsbuild/pants/pull/12684))

* Add `--generate-lockfiles-resolve` to allow generating for only certain tools ([#12676](https://github.com/pantsbuild/pants/pull/12676))

* Add `[generate-lockfiles].custom_command` ([#12687](https://github.com/pantsbuild/pants/pull/12687))

* Add experimental Docker build rules. ([#12467](https://github.com/pantsbuild/pants/pull/12467))

### User API Changes

* Use Pants's default tool lockfiles by default for Python tools like Black, Pytest, and Flake8 ([#12689](https://github.com/pantsbuild/pants/pull/12689))

* Set `[python-setup].invalid_lockfile_behavior` to `error` by default ([#12686](https://github.com/pantsbuild/pants/pull/12686))

* Bump default for `pytest-cov` (`[pytest].extra_requirements`) and `[coverage-py].version` so both use `coverage 5.5` ([#12690](https://github.com/pantsbuild/pants/pull/12690))

* Pin `GitPython==3.1.18` by default with Bandit to ensure yanked release isn't used in lockfile generation ([#12691](https://github.com/pantsbuild/pants/pull/12691))

* Stop pinning `stevedore<3` by default for Bandit ([#12681](https://github.com/pantsbuild/pants/pull/12681))

* Stop installing `setuptools` by default with Black, Flake8, Isort, and Yapf ([#12673](https://github.com/pantsbuild/pants/pull/12673))

* Stop using `[python-setup].requirements_constraints` when installing tools like Black and MyPy ([#12639](https://github.com/pantsbuild/pants/pull/12639))

* Default to `my-dep-stubs` and `stubs-my-dep` being third-party type stubs ([#12598](https://github.com/pantsbuild/pants/pull/12598))

* Type stubs should be registered as normal requirements, not in `[mypy].extra_requirements` ([#12597](https://github.com/pantsbuild/pants/pull/12597))

### Plugin API Changes

* Support indivisible Sources fields ([#12685](https://github.com/pantsbuild/pants/pull/12685))

* Render EngineAware parameters in cycle errors from Graph. ([#12668](https://github.com/pantsbuild/pants/pull/12668))

* Split PexRequirements into three unioned types ([#12644](https://github.com/pantsbuild/pants/pull/12644))

* Add `__repr__` impl for PySnapshot ([#12622](https://github.com/pantsbuild/pants/pull/12622))

* Remove the `rationale` field from BashBinaryRequest. ([#12624](https://github.com/pantsbuild/pants/pull/12624))

### Bug fixes

* The `pex_binary` "venv" mode now sees bin scripts. ([#12664](https://github.com/pantsbuild/pants/pull/12664))

* Fix UI rendering when multiple tasks have the same label. ([#12659](https://github.com/pantsbuild/pants/pull/12659))

* tailor: do not append comma to kwarg with empty tuple ([#12653](https://github.com/pantsbuild/pants/pull/12653))

* Fix `FindBinary` when `which` is discoverable on `$PATH` on macOS ([#12581](https://github.com/pantsbuild/pants/pull/12581))

* Fix coloring of stderr logs with pantsd ([#12585](https://github.com/pantsbuild/pants/pull/12585))

### Performance

* Decompose requirements pexes ([#12675](https://github.com/pantsbuild/pants/pull/12675))

### Documentation

* Switch log warning rendering to yellow. ([#12596](https://github.com/pantsbuild/pants/pull/12596))

* Align `Enriched*Result` colors, sigils, and log levels. ([#12645](https://github.com/pantsbuild/pants/pull/12645))

* Fix Toolchain plugin being included in generated reference docs ([#12642](https://github.com/pantsbuild/pants/pull/12642))

## 2.7.0.dev4 (Aug 15, 2021)

### New Features

* Add additional Google Cloud libraries to dependency inference's default module mapping ([#12553](https://github.com/pantsbuild/pants/pull/12553))

* Validate that `pytest-cov` is installed when `[test].use_coverage` is set ([#12534](https://github.com/pantsbuild/pants/pull/12534))

### User API Changes

* Deprecate `--pants-supportdir`, rename `--engine-visualize-to`, and fix help for `--loop`. ([#12558](https://github.com/pantsbuild/pants/pull/12558))

* Change the PythonProtobufMypyPlugin option scope. ([#12525](https://github.com/pantsbuild/pants/pull/12525))

### Plugin API Changes

* Upgrade packaging from 20.9 to 21.0 ([#12561](https://github.com/pantsbuild/pants/pull/12561))

* Allow newer versions of setuptools and wheel. ([#12555](https://github.com/pantsbuild/pants/pull/12555))

* Deprecate an options scope with underscores. ([#12532](https://github.com/pantsbuild/pants/pull/12532))

* Remove `TestResult.skip()` in favor of `TestFieldSet.opt_out()` ([#12516](https://github.com/pantsbuild/pants/pull/12516))

* Finally get rid of Optionable entirely. ([#12538](https://github.com/pantsbuild/pants/pull/12538))

### Bug fixes

* Fix `shfmt` and `--test-open-coverage` to handle CPU architecture `Platform` changes ([#12546](https://github.com/pantsbuild/pants/pull/12546))

* Fix asdf directory lookup. ([#12528](https://github.com/pantsbuild/pants/pull/12528))

* Fix shlexing of passthrough args. ([#12547](https://github.com/pantsbuild/pants/pull/12547))

* pyenv should fall back to $HOME/.pyenv ([#12527](https://github.com/pantsbuild/pants/pull/12527))

### Performance

* Stream files into the local store while capturing them ([#12563](https://github.com/pantsbuild/pants/pull/12563))

* use REAPI batch API for small blob writes ([#12537](https://github.com/pantsbuild/pants/pull/12537))

* add capabilties cache for remote store client ([#12522](https://github.com/pantsbuild/pants/pull/12522))

## 2.7.0.dev3 (Aug 06, 2021)

### New Features

* Add `skip_tests` field to `python_tests` to facilitate incremental migrations ([#12510](https://github.com/pantsbuild/pants/pull/12510))

* Adds support for Poetry group dependencies ([#12492](https://github.com/pantsbuild/pants/pull/12492))

* Tailor pex_binary targets for entry points. ([#12478](https://github.com/pantsbuild/pants/pull/12478))

### User API Changes

* Add to default module mapping: Django extensions, Google Cloud, Pillow, and python-dotenv ([#12506](https://github.com/pantsbuild/pants/pull/12506))

### Plugin API Changes

* Refactor Pex working directory handling. ([#12479](https://github.com/pantsbuild/pants/pull/12479))

### Bug fixes

* Make the pantsd crash error message more precise. ([#12512](https://github.com/pantsbuild/pants/pull/12512))

* Resolve plugins using the PEX --python option. ([#12500](https://github.com/pantsbuild/pants/pull/12500))

* Shield isolated-Sessions / StreamingWorkunitHandlers from Ctrl+C. ([#12483](https://github.com/pantsbuild/pants/pull/12483))

* Fix default coverage collection. ([#12477](https://github.com/pantsbuild/pants/pull/12477))

### Performance

* Don't resolve constraints file / lockfile if no 3rd-party requirements used ([#12488](https://github.com/pantsbuild/pants/pull/12488))

## 2.7.0.dev2 (Jul 30, 2021)

### New Features

* Provide a peek goal to easily view BUILD metadata from command line ([#11347](https://github.com/pantsbuild/pants/pull/11347))

* Add `entry_points` field to python_distribution ([#11872](https://github.com/pantsbuild/pants/pull/11872))

* Add hadolint to lint Docker files ([#12426](https://github.com/pantsbuild/pants/pull/12426))

* Add experimental Docker target type and tailor ([#12431](https://github.com/pantsbuild/pants/pull/12431))

* Support `pex_binary` addresses in `provides=setup_py(entry_points)` field ([#12414](https://github.com/pantsbuild/pants/pull/12414))

* Add option for async completion of StreamingWorkunitHandlers, disable by default in containers ([#12392](https://github.com/pantsbuild/pants/pull/12392))

* Dependency inference for `pex_binary` and `python_awslambda` can disambiguate ambiguous modules based on file paths ([#12326](https://github.com/pantsbuild/pants/pull/12326))

### User API Changes

* Deprecate `[pytest].pytest_plugins` in favor of `[pytest].extra_requirements` ([#12450](https://github.com/pantsbuild/pants/pull/12450))

* Deprecate `setup_py().with_binaries()` in favor of `entry_points` field ([#12413](https://github.com/pantsbuild/pants/pull/12413))

* Add instruction set architecture awareness to platforms and `--url-platform-mapping` options ([#12367](https://github.com/pantsbuild/pants/pull/12367))

* Add `[python-setup].interpreter_versions_universe` to ensure Pants works robustly with future Python interpreters ([#12379](https://github.com/pantsbuild/pants/pull/12379))

* Upgrade to Lambdex 0.1.5. ([#12461](https://github.com/pantsbuild/pants/pull/12461))

* Upgrade to Pex 2.1.44. ([#12342](https://github.com/pantsbuild/pants/pull/12342))

### Bug fixes

* More robust support for Poetry dependency attributes (`markers`, and`extras`) ([#12323](https://github.com/pantsbuild/pants/pull/12323))

* Mark workunits blocked, and skip rendering completed workunits ([#12369](https://github.com/pantsbuild/pants/pull/12369))

### Performance

* Do not upload Action inputs for remote cache writes. ([#12443](https://github.com/pantsbuild/pants/pull/12443))

* Skip preparation of workunit log messages which will never be rendered. ([#12396](https://github.com/pantsbuild/pants/pull/12396))

### Documentation

* Clarify when we are subsetting the lockfile for 3rdparty dependencies ([#12435](https://github.com/pantsbuild/pants/pull/12435))

* Add counters for blob bytes uploaded/downloaded to/from CAS ([#12471](https://github.com/pantsbuild/pants/pull/12471))

* Add cache and runtime metadata to Process workunits ([#12469](https://github.com/pantsbuild/pants/pull/12469))

* Fix the content type for Pants' wheel long_descriptions. ([#12391](https://github.com/pantsbuild/pants/pull/12391))

## 2.7.0.dev1 (Jul 16, 2021)

### New Features

* Allow restricting which versions are valid for `ExternalTools`. ([#12332](https://github.com/pantsbuild/pants/pull/12332))

* Add yapf Python formatter ([#12317](https://github.com/pantsbuild/pants/pull/12317))

* Add ASDF support to interpreter-search-paths ([#12028](https://github.com/pantsbuild/pants/pull/12028))

### Plugin API Changes

* Validate option default values to be of correct type. ([#12331](https://github.com/pantsbuild/pants/pull/12331))

### Bug fixes

* Do not leak subsystems as goals to the command line interface ([#12337](https://github.com/pantsbuild/pants/pull/12337))

* Fix anonymous telemetry logging. ([#12340](https://github.com/pantsbuild/pants/pull/12340))

* Fixup incorrect platform help message. ([#12320](https://github.com/pantsbuild/pants/pull/12320))

### Documentation

* Improve wording for `pex_binary` `platforms` field help ([#12304](https://github.com/pantsbuild/pants/pull/12304))

--------------------------------------------------------------------

## 2.7.0.dev0 (Jul 09, 2021)

### New Features

* Add skimage module mapping for dependency inference ([#12301](https://github.com/pantsbuild/pants/pull/12301))

* Add experimental terraform plugin with fmt and lint rules ([#11973](https://github.com/pantsbuild/pants/pull/11973))

* Add support for MyPy report files ([#12271](https://github.com/pantsbuild/pants/pull/12271))

* Support running tailor on subdirs. ([#12262](https://github.com/pantsbuild/pants/pull/12262))

* Support building dists from preexisting setup.py. ([#12250](https://github.com/pantsbuild/pants/pull/12250))

### User API Changes

* Don't tailor a python_library for a solitary __init__.py. ([#12288](https://github.com/pantsbuild/pants/pull/12288))

* Apply a concurrency limit to remote store/cache/execution gRPC requests ([#12256](https://github.com/pantsbuild/pants/pull/12256))

### Bug fixes

* Fix poetry_requirements: ignore internal projects. ([#12280](https://github.com/pantsbuild/pants/pull/12280))

* Fix poetry_requirements handling of python. ([#12278](https://github.com/pantsbuild/pants/pull/12278))

* Do not use `[python-setup].resolve_all_constraints` when using `platforms` ([#12268](https://github.com/pantsbuild/pants/pull/12268))

* Hotfix for `poetry_requirements` not being recognized as a macro in build files ([#12263](https://github.com/pantsbuild/pants/pull/12263))

* Include experimental Go backends in pantsbuild.pants ([#12290](https://github.com/pantsbuild/pants/pull/12290))

### Documentation

* Improve error for out-of-line Gets. ([#12305](https://github.com/pantsbuild/pants/pull/12305))


