Skip to content
Myr

Make the build reproducible

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Whilst working on the Reproducible Builds effort [0], we noticed that click could not be built reproducibly. This is due to the documentation containing non-determinstic output such as memory contents or the output of timeit. This was originally filed in Debian as #895270 [1]. [0] https://reproducible-builds.org/ [1] https://bugs.debian.org/895270

authored by Chris Lamb · committed by Chris Lamb · parent 7eb990f · Browse files · 2 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: Chris Lamb <lamby@debian.org>

Diff stats

2 files+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:docs/advanced.rst+2 added-2 removed
293 unmodified lines
294 ))295 @click.option('-v', '--verbose', is_flag=True, help='Enables verbose mode')296 @click.argument('timeit_args', nargs=-1, type=click.UNPROCESSED)297 def cli(verbose, timeit_args):298 """A wrapper around Python's timeit."""299 cmdline = ['python', '-mtimeit'] + list(timeit_args)298 """A fake wrapper around Python's timeit."""299 cmdline = ['echo', 'python', '-mtimeit'] + list(timeit_args)300 if verbose:301 click.echo('Invoking: %s' % ' '.join(cmdline))302 call(cmdline)303
76 unmodified lines
modified:docs/complex.rst+1 added-1 removed
208 unmodified lines
209210 @click.command()211 @pass_repo212 def cp(repo):213 click.echo(repo)213 click.echo(isinstance(repo, Repo))214215As you can see:216217.. click:run::
2 unmodified lines