• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 6860 / 3
0%
main: 93%

Build:
Build:
LAST BUILD BRANCH: uv-lockfile-resolver
DEFAULT BRANCH: main
Ran 15 Sep 2015 05:53AM UTC
Files 391
Run time 103min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Sep 2015 05:53AM UTC coverage: 71.049% (-0.6%) from 71.628%
CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'"

push

travis-ci

jsirois
Fix resource handling for the python backend.

Previously resource handling was broken in a few ways:
1. Resources targets in the same build file could not be addressed
   via `PythonTarget.resources` because relative_to was not passed to
   the build_graph.
2. Since resource targets were not modelled as dependencies, they
   could not be found via the `PythonTarget.resources` property since
   they never were loaded into the build graph.
3. SetupPy only honored resources set via the `PythonTarget`
   `resources` constructor parameter.

This change fixes resources to be modelled as dependencies like they
are for `JvmTarget`, solving 2 above, and fixes resources target
resolution to use `relative_to` solving 1 above.  `SetupPy` now reads
resources from the fixed `PythonTarget.resources` property and gathers
resource sources like it does for all other dependencies fixing 3
above.

All existing python targets are updated to use `target_resources`
instead of `resources` as dogfood and a unit test is added to ensure
both modes of expressing resources work.

Testing Done:
CI went green here:
  https://travis-ci.org/pantsbuild/pants/builds/80315273

Bugs closed: 309, 1841, 2191

Reviewed at https://rbcommons.com/s/twitter/r/2817/

16708 of 23516 relevant lines covered (71.05%)

0.71 hits per line

Source Files on job 6860.3 (CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'")
  • Tree
  • List 0
  • Changed 117
  • Source Changed 3
  • Coverage Changed 117
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 6860
  • Travis Job 6860.3
  • 775600e9 on github
  • Prev Job for CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'" on master (#6859.3)
  • Next Job for CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'" on master (#6870.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc