Skip to main content
Changed Target Tasks Plugin
===========================

A plugin for the pants build system make building and testing
locally edited (or a particular commit's) targets easier.

Details
-------
This creates varients of goals like ``compile`` that, rather than
operate on explicitly provided arguments, find "changed" targets
by consulting the active SCM (eg git) and then operate on those
and (optionally) on their dependees.

Provided goals are:

- ``what-changed``: Lists changed targets (or writes to file)
- ``compile-changed``: Build changed targets
- ``test-changed``: Test changed targets
- ``validate-changed``: Check for dependency rules in changed targets

All of thse take flags which can change how they find targets and
whether or not they include dependees.

Determining what is "changed"
-----------------------------

"changed" is usually determined asking SCM for files with differences
relative to "upstream/master", though this is configurable via the
``--changes-since`` flag or config option.

"changed" can also be determined by ``--diffspec`` (or ``--shas``).
A diffspec can be a single SHA, a aaa..bbb range, a ref or anything
that is meaningful to the SCM to provide a list of changed filenames.

Including Dependees
-------------------
These tasks are useful for checking if ones current changes break
things, without having to know what "things" may have been broken
and need to be built (or tested) to be sure.

However, most changes can not only break the targets in which they
are made, but can easily break a dependee, eg by changing a method
which is called in a dependee. Thus including depnedees of changed
targets in addition to changed targets themselves is often helpful.

- ``--direct-dependees`` or ``--dd``
Include direct dependees of changed targets.
(This is the default behavior, but can be explicitly chosen if defaults
are changed via config.)

- ``--transitive-dependees`` or ``--td``
Include all transitive dependees.

- ``--no-dependees`` or ``--nd``
Include no dependees, and act only on directly changed targets.

Metadata

Release files for foursquare.pants.changed 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for foursquare.pants.changed 0.0.1
File Size Uploaded Provenance Actions
foursquare.pants.changed-0.0.1.tar.gz 5.0 kB Without provenance Details for foursquare.pants.changed-0.0.1.tar.gz

Release files / foursquare.pants.changed-0.0.1.tar.gz

Download URL foursquare.pants.changed-0.0.1.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0ecb39b11d3c571c5e14114709a3ed9ea225ee56d37d4b1cea0b0a185f76cb26
BLAKE2b-256 checksum
How to use checksums
c3b33c60c6b9a1b761b9d6b99ba0bf5cb24c64a17cf058409a91a9f58c749802
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for foursquare.pants.changed 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page