Metadata-Version: 2.1
Name: pantsbuild.pants.testutil
Version: 2.0.0.dev2
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
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/x-rst
Requires-Dist: ansicolors (==1.1.8)
Requires-Dist: dataclasses (==0.6)
Requires-Dist: pantsbuild.pants (==2.0.0.dev2)

Pants is an Apache2 licensed build tool written in Python.

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

2.0.x Stable Releases
=====================

This document describes releases leading up to the ``2.0.x`` ``stable`` series.

See https://pants.readme.io/v2.0/docs/release-notes-2-0 for an overview of the changes in this release.

2.0.0.dev2 (7/8/2020)
---------------------

API Changes
~~~~~~~~~~~

* Rename `FilesContent` to `DigestContents` and `InputFilesContent` to `CreateDigest` (#10290)
  `PR #10290 <https://github.com/pantsbuild/pants/pull/10290>`_

* remoting: default is streaming client (#10260)
  `PR #10260 <https://github.com/pantsbuild/pants/pull/10260>`_

* Upgrade setuptools from 47.3.1 to 49.1.0 (#10255)
  `PR #10255 <https://github.com/pantsbuild/pants/pull/10255>`_

* Upgrade packaging from 20.3 to 20.4 (#10256)
  `PR #10256 <https://github.com/pantsbuild/pants/pull/10256>`_

* Deprecate the --v1/--v2 global options. (#10245)
  `PR #10245 <https://github.com/pantsbuild/pants/pull/10245>`_

New Features
~~~~~~~~~~~~

* Preserve source roots with Pytest output (#10165)
  `PR #10165 <https://github.com/pantsbuild/pants/pull/10165>`_

Bugfixes
~~~~~~~~

* Downgrade to tokio 0.2.20 to fix `materialize_directories`. (#10294)
  `PR #10294 <https://github.com/pantsbuild/pants/pull/10294>`_

* Expose method to bring down dynamic UI (#10234)
  `Issue #10005 <https://github.com/pantsbuild/pants/issues/10005>`_
  `PR #10234 <https://github.com/pantsbuild/pants/pull/10234>`_

* Fix double-workunit-completion print (#10247)
  `PR #10247 <https://github.com/pantsbuild/pants/pull/10247>`_
  `PR #10179 <https://github.com/pantsbuild/pants/pull/10179>`_

Refactoring, Improvements, and Tooling
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Remove v1 `source/` abstractions like `EagerFileSet` (#10292)
  `PR #10292 <https://github.com/pantsbuild/pants/pull/10292>`_

* Use f-strings in engine/util.py (#10288)
  `PR #10288 <https://github.com/pantsbuild/pants/pull/10288>`_

* Use dependency inference internally (#10283)
  `PR #10283 <https://github.com/pantsbuild/pants/pull/10283>`_

* Unify `LegacyPythonCallbackParser` and `Parser` (#10281)
  `PR #10281 <https://github.com/pantsbuild/pants/pull/10281>`_

* Lower the default max-memory usage of pantsd. (#10287)
  `PR #10287 <https://github.com/pantsbuild/pants/pull/10287>`_

* Improvements and refactoring of help system. (#10280)
  `PR #10280 <https://github.com/pantsbuild/pants/pull/10280>`_

* Refactor WorkunitStore struct (#10242)
  `PR #10242 <https://github.com/pantsbuild/pants/pull/10242>`_

* remoting: check action cache for cached result before submitting a request (#10253)
  `PR #10253 <https://github.com/pantsbuild/pants/pull/10253>`_

* Remove leftover v1 Target API bindings (#10276)
  `PR #10276 <https://github.com/pantsbuild/pants/pull/10276>`_

* Fix remaining internal dependency cycles (#10254)
  `PR #10254 <https://github.com/pantsbuild/pants/pull/10254>`_

* Remove `build_graph.Target` (#10266)
  `PR #10266 <https://github.com/pantsbuild/pants/pull/10266>`_

* Remove `cache/` and `invalidation/` (#10262)
  `PR #10262 <https://github.com/pantsbuild/pants/pull/10262>`_

* Remove obsolete root patterns. (#10263)
  `PR #10263 <https://github.com/pantsbuild/pants/pull/10263>`_

* Remove `Task`, `Goal`, and `Context` (#10252)
  `PR #10252 <https://github.com/pantsbuild/pants/pull/10252>`_

* Simplify `git.py` and `scm.py` (#10251)
  `PR #10251 <https://github.com/pantsbuild/pants/pull/10251>`_

* Remove the internal tags `type_checked` and `partially_type_checked` (#10244)
  `PR #10244 <https://github.com/pantsbuild/pants/pull/10244>`_

* Remove `HydratedTarget`, `AddressMapper`, and `BuildGraph` (#10250)
  `PR #10250 <https://github.com/pantsbuild/pants/pull/10250>`_

* Remove all remaining v1 Targets (#10246)
  `PR #10246 <https://github.com/pantsbuild/pants/pull/10246>`_

* Remove `TestBase.context()` (#10248)
  `PR #10248 <https://github.com/pantsbuild/pants/pull/10248>`_

* Delete the rest of v1 `pants.backend.python` (#10240)
  `PR #10240 <https://github.com/pantsbuild/pants/pull/10240>`_

* Remove the concept of a scope category. (#10224)
  `PR #10224 <https://github.com/pantsbuild/pants/pull/10224>`_

Testing
~~~~~~~

* Remove stale "pants.pex for integration tests" mechanism (#10279)
  `PR #10279 <https://github.com/pantsbuild/pants/pull/10279>`_

* Re-enable RBE (#10284)
  `PR #10284 <https://github.com/pantsbuild/pants/pull/10284>`_

* Temporarily disable remote execution in CI (#10268)
  `PR #10268 <https://github.com/pantsbuild/pants/pull/10268>`_

* Upgrade responses from 0.10.14 to 0.10.15 (#10257)
  `PR #10257 <https://github.com/pantsbuild/pants/pull/10257>`_

* Increase pylint integration tests timeout. (#10261)
  `PR #10261 <https://github.com/pantsbuild/pants/pull/10261>`_

* Fix broken Pylint test from new isort release (#10259)
  `PR #10259 <https://github.com/pantsbuild/pants/pull/10259>`_

* Simplify ci.py now that we have no v1 tests (#10241)
  `PR #10241 <https://github.com/pantsbuild/pants/pull/10241>`_

2.0.0.dev1 (7/2/2020)
---------------------

API Changes
~~~~~~~~~~~

* Get rid of --plugins2/--backend-packages2 (#10231)
  `PR #10231 <https://github.com/pantsbuild/pants/pull/10231>`_

* Deprecate `--changed-include-dependees` in favor of `--changed-dependees` (#10217)
  `PR #10217 <https://github.com/pantsbuild/pants/pull/10217>`_

* Remove `pants.contrib.mypy` plugin in favor of v2 implementation (#10157)
  `PR #10157 <https://github.com/pantsbuild/pants/pull/10157>`_

* Remove `--coverage-py-omit-test-sources` (#10202)
  `PR #10202 <https://github.com/pantsbuild/pants/pull/10202>`_

* Gets rid of the v1 GoalRunner. (#10167)
  `PR #10167 <https://github.com/pantsbuild/pants/pull/10167>`_

* Remove `pants.backend.jvm` (#10218)
  `PR #10218 <https://github.com/pantsbuild/pants/pull/10218>`_

* Remove --zipkin-trace-v2 option (#10184)
  `PR #10184 <https://github.com/pantsbuild/pants/pull/10184>`_

* Remove `core_tasks/` and most of `task/` (#10236)
  `PR #10236 <https://github.com/pantsbuild/pants/pull/10236>`_

* Remove v1 portions of `backend/native` and `ipex` (#10187)
  `PR #10187 <https://github.com/pantsbuild/pants/pull/10187>`_

* Delete v1 python backend task code (#10223)
  `PR #10223 <https://github.com/pantsbuild/pants/pull/10223>`_

* Remove v1 Python `unpack_whls`, `bundle`, and `repl` (#10204)
  `PR #10204 <https://github.com/pantsbuild/pants/pull/10204>`_

* Remove Thrift (#10171)
  `PR #10171 <https://github.com/pantsbuild/pants/pull/10171>`_

* Remove `TestBase.create_library() and `TestBase.target()` (#10237)
  `PR #10237 <https://github.com/pantsbuild/pants/pull/10237>`_

* Remove some v1 parts of `testutil/` (#10233)
  `PR #10233 <https://github.com/pantsbuild/pants/pull/10233>`_

New Features
~~~~~~~~~~~~

* Add new `typecheck` goal for MyPy (#10212)
  `PR #10212 <https://github.com/pantsbuild/pants/pull/10212>`_

* Properly handle PEP 420 namespace packages (#10183)
  `PR #10183 <https://github.com/pantsbuild/pants/pull/10183>`_

* Add support for creating multiple coverage reports (#9997)
  `PR #9997 <https://github.com/pantsbuild/pants/pull/9997>`_

* Add the ability to write/output the raw coverage file. (#10195)
  `PR #10195 <https://github.com/pantsbuild/pants/pull/10195>`_

* Log Coverage report name as part of the console message. (#10194)
  `PR #10194 <https://github.com/pantsbuild/pants/pull/10194>`_

* Attempt to adjust file handle limits and warn if they cannot be adjusted (#10174)
  `PR #10174 <https://github.com/pantsbuild/pants/pull/10174>`_

Bugfixes
~~~~~~~~

* Fix `--changed-dependees` to work when v1 is disabled (#10235)
  `PR #10235 <https://github.com/pantsbuild/pants/pull/10235>`_

* Teach `pants_requirement()` to work with dependency inference (#10232)
  `PR #10232 <https://github.com/pantsbuild/pants/pull/10232>`_

* Remove indentation in process errors. (#10181)
  `PR #10181 <https://github.com/pantsbuild/pants/pull/10181>`_

* Automatically include `__init__.py` files (#10166)
  `PR #10166 <https://github.com/pantsbuild/pants/pull/10166>`_

* Fix AddPrefix to correctly add arbitrarily many parent components (#10189)
  `PR #10189 <https://github.com/pantsbuild/pants/pull/10189>`_

* Fix `dependencies --transitive` to include target roots that are also dependencies (#10186)
  `PR #10186 <https://github.com/pantsbuild/pants/pull/10186>`_

* Fix MyPy to include `resources`, but still not `files` (#10168)
  `PR #10168 <https://github.com/pantsbuild/pants/pull/10168>`_

Refactoring, Improvements, and Tooling
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Reduce time spend grabbing locks in workunit code (#10179)
  `PR #10179 <https://github.com/pantsbuild/pants/pull/10179>`_

* local_cas supports an instance-name (#10225)
  `PR #10225 <https://github.com/pantsbuild/pants/pull/10225>`_

* local_cas supports GetCapabilities request (#10226)
  `PR #10226 <https://github.com/pantsbuild/pants/pull/10226>`_

* Refactor remoting options into separate struct (#10215)
  `PR #10215 <https://github.com/pantsbuild/pants/pull/10215>`_

* remoting: log RE capabilities and refresh REv2 proto (#10155)
  `PR #10155 <https://github.com/pantsbuild/pants/pull/10155>`_

* Fix stray type error in fs.py (#10182)
  `PR #10182 <https://github.com/pantsbuild/pants/pull/10182>`_

* Remove redundant cast call (#10196)
  `PR #10196 <https://github.com/pantsbuild/pants/pull/10196>`_

* Use debug level for remote store workunits (#10238)
  `PR #10238 <https://github.com/pantsbuild/pants/pull/10238>`_

* Simplify Get implementation. (#10178)
  `PR #10178 <https://github.com/pantsbuild/pants/pull/10178>`_

* Delete the old BinaryTool mechanism. (#10239)
  `PR #10239 <https://github.com/pantsbuild/pants/pull/10239>`_

* Delete more v1 task-related integration tests. (#10210)
  `PR #10210 <https://github.com/pantsbuild/pants/pull/10210>`_

* Refactor coverage integration tests (#10209)
  `PR #10209 <https://github.com/pantsbuild/pants/pull/10209>`_

* Stop using deprecated assertEquals (#10197)
  `PR #10197 <https://github.com/pantsbuild/pants/pull/10197>`_

* Remove `ivy/` and most of `java/` (#10222)
  `PR #10222 <https://github.com/pantsbuild/pants/pull/10222>`_

* Remove Bundle and App code (#10221)
  `PR #10221 <https://github.com/pantsbuild/pants/pull/10221>`_

* Remove more zipkin-related code (#10207)
  `PR #10207 <https://github.com/pantsbuild/pants/pull/10207>`_

* Remove unused `list_backends.py` (#10205)
  `PR #10205 <https://github.com/pantsbuild/pants/pull/10205>`_

* Remove internal `contrib/` infrastructure (#10177)
  `PR #10177 <https://github.com/pantsbuild/pants/pull/10177>`_

* Rewrite/delete some tests that involve v1 tasks. (#10219)
  `PR #10219 <https://github.com/pantsbuild/pants/pull/10219>`_

* Remove JVM testprojects (#10216)
  `PR #10216 <https://github.com/pantsbuild/pants/pull/10216>`_

* Stop testing `testprojects::` (#10170)
  `PR #10170 <https://github.com/pantsbuild/pants/pull/10170>`_

* Remove the src/{scala|java} directories. (#10201)
  `PR #10201 <https://github.com/pantsbuild/pants/pull/10201>`_

* Delete examples/src/{java,scala}. (#10198)
  `PR #10198 <https://github.com/pantsbuild/pants/pull/10198>`_

* Stop running JVM tests written in Java/Scala (#10175)
  `PR #10175 <https://github.com/pantsbuild/pants/pull/10175>`_

* Move `scm/` and `util/` tests to `src` (#10176)
  `PR #10176 <https://github.com/pantsbuild/pants/pull/10176>`_

* Nuke more v1 tests (#10172)
  `PR #10172 <https://github.com/pantsbuild/pants/pull/10172>`_

* upgrade tokio to 0.2.21 (#10191)
  `PR #10191 <https://github.com/pantsbuild/pants/pull/10191>`_

* upgrade futures crate to 0.3.5 (#10190)
  `PR #10190 <https://github.com/pantsbuild/pants/pull/10190>`_

* upgrade async-trait crate to 0.1.36 (#10193)
  `PR #10193 <https://github.com/pantsbuild/pants/pull/10193>`_

* upgrade crossbeam-channel create so only one copy (#10192)
  `PR #10192 <https://github.com/pantsbuild/pants/pull/10192>`_

* upgrade indexmap crate (#10199)
  `PR #10199 <https://github.com/pantsbuild/pants/pull/10199>`_

* upgrade parking_lot crate (#10200)
  `PR #10200 <https://github.com/pantsbuild/pants/pull/10200>`_

Documentation
~~~~~~~~~~~~~

* Prepare 1.30.0rc1. (#10188)
  `PR #10188 <https://github.com/pantsbuild/pants/pull/10188>`_

2.0.0.dev0 (6/25/2020)
----------------------

API Changes
~~~~~~~~~~~

* Remove v1 JVM backend Tasks. (#10142)
  `PR #10142 <https://github.com/pantsbuild/pants/pull/10142>`_

* Remove `targets` goal in favor of `target-types` goal (#10145)
  `PR #10145 <https://github.com/pantsbuild/pants/pull/10145>`_

* Remove deprecated `Get[P](S)` syntax in favor of `Get(P, S)` (#10148)
  `Issue #9899 <https://github.com/pantsbuild/pants/issues/9899>`_
  `PR #10148 <https://github.com/pantsbuild/pants/pull/10148>`_

* Remove v1 `login`, `server`, and `killserver` goals (#10144)
  `PR #10144 <https://github.com/pantsbuild/pants/pull/10144>`_

* Remove v1 `minimize`, `filemap`, `paths`, `sort`, and `depmap` goals (#10135)
  `PR #10135 <https://github.com/pantsbuild/pants/pull/10135>`_

* Replace v1 `dependees`, `dependencies`, `filedeps`, and `filter` with v2 (#10117)
  `PR #10117 <https://github.com/pantsbuild/pants/pull/10117>`_

* Remove the v1 scrooge contrib plugin. (#10127)
  `PR #10127 <https://github.com/pantsbuild/pants/pull/10127>`_

* Remove support for `pants.ini` (#10123)
  `PR #10123 <https://github.com/pantsbuild/pants/pull/10123>`_

* Remove the v1 `export` goal (#10122)
  `PR #10122 <https://github.com/pantsbuild/pants/pull/10122>`_

* Remove `pants.backend.docgen` (#10121)
  `PR #10121 <https://github.com/pantsbuild/pants/pull/10121>`_

* Remove v1 `idea-plugin` goal (#10115)
  `PR #10115 <https://github.com/pantsbuild/pants/pull/10115>`_

* Remove v1 Java Protobuf implementation (#10111)
  `PR #10111 <https://github.com/pantsbuild/pants/pull/10111>`_

* Remove `pants.contrib.node` plugin (#10113)
  `PR #10113 <https://github.com/pantsbuild/pants/pull/10113>`_

* Remove v1 `bash-completion` goal (#10112)
  `PR #10112 <https://github.com/pantsbuild/pants/pull/10112>`_

* Remove watchman. (#10114)
  `PR #10114 <https://github.com/pantsbuild/pants/pull/10114>`_

* Upgrade default mypy version from 0.780 to 0.781 (#10109)
  `PR #10109 <https://github.com/pantsbuild/pants/pull/10109>`_

* Remove `pants.contrib.go` plugin (#10107)
  `PR #10107 <https://github.com/pantsbuild/pants/pull/10107>`_

* Remove v1 Python Grpcio codegen backend (#10108)
  `PR #10108 <https://github.com/pantsbuild/pants/pull/10108>`_

* Remove deprecated `--v2-ui` in favor of `--dynamic-ui` (#10105)
  `PR #10105 <https://github.com/pantsbuild/pants/pull/10105>`_

* Remove deprecated `--enable-pantsd` in favor of `--pantsd` (#10104)
  `PR #10104 <https://github.com/pantsbuild/pants/pull/10104>`_

* Remove deprecated `pytest-coverage` scope in favor of `coverage-py` (#10103)
  `PR #10103 <https://github.com/pantsbuild/pants/pull/10103>`_

* Remove `pants.contrib.confluence` (#10106)
  `PR #10106 <https://github.com/pantsbuild/pants/pull/10106>`_

New Features
~~~~~~~~~~~~

* Add support for MyPy to Pants v2 (#10132)
  `Issue #10131 <https://github.com/pantsbuild/pants/issues/10131>`_
  `PR #10132 <https://github.com/pantsbuild/pants/pull/10132>`_

* Changes to support Django. (#10088)
  `PR #10088 <https://github.com/pantsbuild/pants/pull/10088>`_

* Add support for enum list options. (#10083)
  `Issue #9968 <https://github.com/pantsbuild/pants/issues/9968>`_
  `PR #10083 <https://github.com/pantsbuild/pants/pull/10083>`_

Bugfixes
~~~~~~~~

* Do not render pytest at info by default, but give it a description. (#10164)
  `PR #10164 <https://github.com/pantsbuild/pants/pull/10164>`_

* Preserve source roots in MyPy and Pylint output (#10159)
  `PR #10159 <https://github.com/pantsbuild/pants/pull/10159>`_

* Do not include resource targets in v2 MyPy chroot (#10154)
  `PR #10154 <https://github.com/pantsbuild/pants/pull/10154>`_

* Set dynamic-ui default based on CI (#10140)
  `PR #10140 <https://github.com/pantsbuild/pants/pull/10140>`_

* Fix Pytest XML reports and Coverage breaking with remote execution (#10136)
  `PR #10136 <https://github.com/pantsbuild/pants/pull/10136>`_

* Retry for filesystem changes more quickly, indefinitely, and with logging (#10139)
  `PR #10139 <https://github.com/pantsbuild/pants/pull/10139>`_

* Normalize paths before determining whether we can watch them. (#10130)
  `PR #10130 <https://github.com/pantsbuild/pants/pull/10130>`_

Refactoring, Improvements, and Tooling
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Remove use of importlib for native_engine loading (#10161)
  `PR #10161 <https://github.com/pantsbuild/pants/pull/10161>`_

* Update sha2 crate dependency (#10163)
  `PR #10163 <https://github.com/pantsbuild/pants/pull/10163>`_

* Remove unused rust deps. (#10162)
  `PR #10162 <https://github.com/pantsbuild/pants/pull/10162>`_

* Add message field on workunits and use it to replace some explicit logging (#10158)
  `PR #10158 <https://github.com/pantsbuild/pants/pull/10158>`_

* Expose the types consumed to produce a type in a RuleGraph. (#10153)
  `PR #10153 <https://github.com/pantsbuild/pants/pull/10153>`_

* Upgrade setuptools from 44.0.0 to 47.3.1 (#10149)
  `PR #10149 <https://github.com/pantsbuild/pants/pull/10149>`_

* Support for using unstripped python sources (#10138)
  `PR #10138 <https://github.com/pantsbuild/pants/pull/10138>`_

* fix snapshot subset testing and unrevert #9779 (#10146)
  `PR #10146 <https://github.com/pantsbuild/pants/pull/10146>`_

* Revert "Make SnapshotSubset() faster (#9779)" (#10143)
  `PR #9779 <https://github.com/pantsbuild/pants/pull/9779>`_
  `PR #10143 <https://github.com/pantsbuild/pants/pull/10143>`_

* Make SnapshotSubset() faster (#9779)
  `PR #9779 <https://github.com/pantsbuild/pants/pull/9779>`_

* upgrade to rust v1.44.1 (#10125)
  `PR #10125 <https://github.com/pantsbuild/pants/pull/10125>`_

* Remove `BuildFile` (#10102)
  `PR #10102 <https://github.com/pantsbuild/pants/pull/10102>`_

Testing
~~~~~~~

* Enable test timeouts for python in v2. (#10147)
  `PR #10147 <https://github.com/pantsbuild/pants/pull/10147>`_

* Delete many v1 tests. (#10116)
  `PR #10116 <https://github.com/pantsbuild/pants/pull/10116>`_

* enable REv2 streaming client in CI (#9989)
  `PR #9989 <https://github.com/pantsbuild/pants/pull/9989>`_

Documentation
~~~~~~~~~~~~~

* Remove the v1 docsite (#10120)
  `PR #10120 <https://github.com/pantsbuild/pants/pull/10120>`_


