Wykres commitów

1086 Commity (50cee3e1236eac82b98d4a095087e26fc9509828)

Autor SHA1 Wiadomość Data
Min RK 50cee3e123
Merge pull request #496 from yuvipanda/separate-argparse
Make repo2docker easier to use as a library - Part 1
2018-12-17 10:29:40 +01:00
Tim Head ed85e17373
Merge pull request #509 from yuvipanda/fix-local-cache-busting
Fix cache-busting when running tests locally
2018-12-17 08:04:09 +01:00
yuvipanda b555adda43 Fix cache-busting when running tests locally
When you run repo2docker locally, the uid is usually set
to the current user's uid. However, when we push the content
to Docker, we invariably set the uid of the scripts we
use as part of repo2docker at 1000. This causes a cache bust
every time.

This patch uses the correct uid, and fixes cache busting. Makes
local test runs *much* faster.

Fixes #508
2018-12-16 11:15:36 -08:00
Yuvi Panda c02bba2e44
Merge pull request #505 from betatim/docs-fixup
Fix typos and syntax errors in the documentation
2018-12-15 12:15:08 -08:00
Tim Head 3f9f4918c5 Fix typos and syntax errors in the documentation 2018-12-15 08:40:27 +01:00
yuvipanda 3a85fb814b Use pytest's capsys to test for stdout values
Works better with pytest's output capturing system
2018-12-14 13:30:22 -08:00
yuvipanda a9f45e6fae Make sure our args tests are run
We don't wanna block this PR on fixing all the tests,
instead only on making the added tests run
2018-12-14 13:15:33 -08:00
yuvipanda 0a1d9e3d5f Add test for valid & invalid docker image names 2018-12-14 13:15:33 -08:00
yuvipanda 183d504515 Add test for cleanup_checkout 2018-12-14 13:15:33 -08:00
yuvipanda a44aed7664 Add some argument parsing tests
And fix the one bug discovered in this process
2018-12-14 13:15:33 -08:00
yuvipanda 769efb8a69 Add test for proper failure when ref isn't found in git repo 2018-12-14 13:15:33 -08:00
yuvipanda 8f56061e69 Don't call sys.exit from inside the class
Instead, we raise exceptions that can be caught and
handled by calling code instead
2018-12-14 13:15:33 -08:00
yuvipanda a0ad3f92e3 Rename 'build' to 'dry_run'
A better description
2018-12-14 13:15:33 -08:00
yuvipanda ac700c49be Split 'build' function out of start 2018-12-14 13:15:33 -08:00
yuvipanda cd04da56fc Move cleanup_checkout automatic determination to main()
This is automaticaly determined only from commandline args,
so it should be in __main__
2018-12-14 13:15:33 -08:00
yuvipanda e1ead75302 Move argument parsing out of Repo2Docker class
Argument parsing should only be used when calling from
the command line, and not be deeply tied into the class
itself. This makes it easier for folks to just set
traitlets on an empty class and start it, without having to
deal with passing arguments.

This breaks how people might already be using Repo2Docker as
a library, so should not be part of 0.7
2018-12-14 13:15:33 -08:00
Tim Head 7bcfa06d8f
Merge pull request #500 from jrbourbeau/add-labels
Add repo2docker Dockerfile labels
2018-12-14 08:17:08 +01:00
James Bourbeau db00d4982c Use "local" label for local directory 2018-12-13 17:12:09 -06:00
James Bourbeau 2448730b75 Refactor test to use mock 2018-12-13 16:40:39 -06:00
James Bourbeau a55a3f6d30 Add test for BuildPack label rendering 2018-12-13 13:34:57 -06:00
James Bourbeau 99b1e7548a Update test_labels.py 2018-12-13 12:43:45 -06:00
James Bourbeau 624ad94073 Remove getattr usage 2018-12-13 11:09:50 -06:00
James Bourbeau adae4b9649 Update changelog 2018-12-13 10:42:04 -06:00
James Bourbeau 204856b21c Add changelog entry 2018-12-12 22:48:54 -06:00
James Bourbeau 5ff24d960b Add test_labels 2018-12-12 22:05:35 -06:00
James Bourbeau 2e31e6e80e Add Dockerfile repo2docker labels 2018-12-12 22:05:06 -06:00
Tim Head eb272875b1
Merge pull request #499 from minrk/push-tags
push tagged images on travis
2018-12-12 17:24:03 +01:00
Min RK 65a4633992 push tagged images on travis
creates jupyter/repo2docker:0.7.0 when we release 0.7.0
2018-12-12 15:54:06 +01:00
Min RK 72d763486f
Merge pull request #498 from betatim/changelog-for-v070
Update changelog in preparation for releasing v0.7.0
2018-12-12 14:14:23 +01:00
Min RK 8c683708a1
Update CHANGES.rst
Co-Authored-By: betatim <betatim@gmail.com>
2018-12-12 10:46:02 +01:00
Tim Head 5c6d23223f Update changelog in preparation for releasing v0.7.0 2018-12-12 10:13:50 +01:00
Tim Head 19d7c165d1
Merge pull request #482 from yuvipanda/push-log
Log a 'success' message when push is complete
2018-12-12 08:35:33 +01:00
Tim Head 1fe211d284
Merge pull request #497 from betatim/codecov-round3
Swap codecov targets around
2018-12-12 08:32:50 +01:00
Tim Head 52855c2f1c
Merge pull request #475 from betatim/bump-notebook
[WIP] Update notebook to latest release
2018-12-12 07:20:59 +01:00
Tim Head 5fa48dfa98 Swap codecov targets around 2018-12-12 07:09:27 +01:00
Tim Head ef7bf9e456 Remove notebook from list of conda packages 2018-12-11 22:39:04 +01:00
Tim Head f3989a6555 Refreeze environments
The frozen Python 3.6 environment was empty so refreezing everything.
Added the generated environment.py-3.6.yml which used to be excluded by
gitignore because it was the only one not also commited to the repo.
2018-12-11 22:32:05 +01:00
Yuvi Panda 1552dd20de
Merge pull request #495 from betatim/codecov-round2
Remove duplicate codecov config
2018-12-11 07:29:06 -08:00
Tim Head 77f6241990 Remove duplicate codecov config 2018-12-11 13:12:00 +01:00
Tim Head 69cd760e07
Merge pull request #494 from yuvipanda/util-tests
Add unit tests for repo2docker/utils.py
2018-12-11 13:05:08 +01:00
Min RK 81f35ba629 remove everything but the comment in unused environment.py-3.5.yml 2018-12-11 11:02:11 +01:00
Min RK 694e728ffd
Merge pull request #478 from yuvipanda/cache-from
Allow specifying images to reuse cache from
2018-12-11 11:00:23 +01:00
Tim Head d934c59156
Remove unused shutil import 2018-12-11 10:55:00 +01:00
Tim Head 153765aa70
Add shutil import 2018-12-11 10:54:06 +01:00
Min RK 48dcd88365 opt-out of auto-freezing Python 3.5
now that it's not being updated anymore

only security fixes from now on for Python 3.5
2018-12-11 10:54:02 +01:00
yuvipanda bf8836243c Add test for ByteSpecification validation 2018-12-10 23:19:13 -08:00
yuvipanda b441176a6a Add test for utils.chdir 2018-12-10 23:13:56 -08:00
yuvipanda ee9b150ef8 Remove maybe_cleanup util function
It was used in exactly one place, and could be inlined with
minimal loss of clarity
2018-12-10 23:13:46 -08:00
yuvipanda 30e69bccee Add unit test for execute_cmd in repo2docker.utils 2018-12-10 23:06:25 -08:00
yuvipanda d035483d1c Add tests for Docker & Legacy Docker buildpacks 2018-12-10 22:46:06 -08:00