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

pantsbuild / pants / 7718
0%
main: 93%

Build:
Build:
LAST BUILD BRANCH: add/port-target-adaptor-and-source-block
DEFAULT BRANCH: main
Ran 03 Nov 2015 08:04PM UTC
Jobs 8
Files 0
Run time –
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

pending completion
7718

push

travis-ci

Benjy
Improve handling of -v, -V, --version and --pants-version.

All these could be used with no argument to print the version and exit.
However we also had a hack where these could take an argument. Pants code
itself didn't use this argument, it was just there to document the fact
that the setup script and the intellij plugin grepped for pants_version
in pants.ini.

Unfortunately supporting this required some argparse hackery, and I want
to move us off argparse altogether (as it's now just a minor implementation
detail of the options system). It was also pretty confusing to have a flag
that did different things depending on whether it had an argument or not.

So now -v, -V and --version are special-cased outside the options system, just like
the -h, -H and --help flags. And indeed they resemble help requests far more
than they resemble options.

--pants-version is now an untirely unrelated option, that always takes an
argument. Pants uses it to verify that it is running at the required version.
Scripts can grep it out of pants.ini, as before.

Note that this is backwards-incompatible: using --pants-version with no
argument now issues an error instead of printing the version. However
this doesn't seem like a big deal, as it was the least intuitive of the
version-printing flags anyway. Use -v, -V or --version for this.

Testing Done:
CI passes: https://travis-ci.org/pantsbuild/pants/builds/89069922

Manually verified expected behaviors.

Reviewed at https://rbcommons.com/s/twitter/r/3071/
Jobs
ID Job ID Ran Files Coverage
1 7718.1 (CI_FLAGS="-cjlpn 'Various pants self checks'") 03 Nov 2015 08:04PM UTC 0
Travis Job 7718.1
4 7718.4 (CI_FLAGS="-fkmsrcjlp 'Python contrib tests'") 03 Nov 2015 08:19PM UTC 0
Travis Job 7718.4
5 7718.5 (CI_FLAGS="-fkmsrjlpn -i 0/6 'Python integration tests for pants - shard 1'") 03 Nov 2015 08:06PM UTC 0
Travis Job 7718.5
6 7718.6 (CI_FLAGS="-fkmsrjlpn -i 1/6 'Python integration tests for pants - shard 2'") 03 Nov 2015 08:14PM UTC 0
Travis Job 7718.6
7 7718.7 (CI_FLAGS="-fkmsrjlpn -i 2/6 'Python integration tests for pants - shard 3'") 03 Nov 2015 08:11PM UTC 0
Travis Job 7718.7
8 7718.8 (CI_FLAGS="-fkmsrjlpn -i 3/6 'Python integration tests for pants - shard 4'") 03 Nov 2015 08:18PM UTC 0
Travis Job 7718.8
9 7718.9 (CI_FLAGS="-fkmsrjlpn -i 4/6 'Python integration tests for pants - shard 5'") 03 Nov 2015 08:17PM UTC 0
Travis Job 7718.9
10 7718.10 (CI_FLAGS="-fkmsrjlpn -i 5/6 'Python integration tests for pants - shard 6'") 03 Nov 2015 08:19PM UTC 0
Travis Job 7718.10
Source Files on build 7718
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7718
  • 4ad787d5 on github
  • Prev Build on master (#7707)
  • Next Build on master (#7735)
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