Ruslan Kuprieiev
0347cfb891
gitignore: don't forget to add /tmp
2019-09-22 05:22:55 +03:00
Mr. Outis and Ruslan Kuprieiev
ae90904fb3
pull: download data from imported stages ( #2499 )
...
* wip - pull is working
* use fetch instead of reproduce
* test pull and fetch
* style changes
* fetch: catch config error on fetch instead of get_remote
* output: remove unused guard clause
* fetch: define a more specific error instead of ConfigError
* fetch: display number of errors correctly
* exceptions: remove "Failed" prefix to download/upload
* fetch: catch other exceptions that might halt the download
* fetch: log catched exceptions
* fetch: reformat exception
Co-Authored-By: Ruslan Kuprieiev <[email protected] >
* fix formatting
2019-09-22 01:28:12 +03:00
Ruslan Kuprieiev
23fc2662d0
Merge pull request #2519 from efiop/755
...
dvc: move repo lock from CLI to API
2019-09-21 19:12:34 +03:00
Ruslan Kuprieiev
9d6ca1ef6c
dvc: move repo lock from CLI to API
...
For the longest time we've had `repo.lock`, but were only using it from
CLI when running specific command, instead of simply properly taking it
on API operations. This patch takes care of that.
2019-09-21 05:10:06 +03:00
Ruslan Kuprieiev
64c3973522
Merge pull request #2517 from Suor/later-imports
...
perf: import some things later
2019-09-20 18:00:01 +03:00
Ruslan Kuprieiev
f1d3f4344e
Merge pull request #2494 from Suor/lazy
...
perf: do not use pkg_resources
2019-09-20 13:47:47 +03:00
Alexander Schepanovski
cb5ff6e085
perf: import some things later
...
Saves on startup time
2019-09-20 16:45:02 +07:00
Paweł Redzyński and Ruslan Kuprieiev
d16178ab61
checkout: raise error on failed dir cache loading ( #2503 )
...
* remote: base: load_dir_cache: raise exception on failed download
* output: base: raise error on failed get_files_number
* remote: base: log failed download as warning
* Update dvc/output/base.py
Co-Authored-By: Ruslan Kuprieiev <[email protected] >
* remote: base: dont download dir cache on load_dir_cache
2019-09-19 16:35:37 +03:00
Paweł Redzyński and Ruslan Kuprieiev
349b4af3ae
install: verify no hooks colliding with dvc exist ( #2505 )
...
* install: verify no hooks colliding with dvc exist
* test: install: remove obsolete tests
* Update tests/func/test_install.py
Co-Authored-By: Ruslan Kuprieiev <[email protected] >
* test: install: import GitHookAlreadyExistsError
2019-09-19 15:40:58 +03:00
Ruslan Kuprieiev
67e31eaa2f
Merge pull request #2504 from Suor/http-compat
...
perf: do not import http.server each run
2019-09-18 22:27:52 +03:00
Alexander Schepanovski
ffb52b256b
perf: do not import http.server each run
...
It is only used in tests.
2019-09-17 18:41:05 +07:00
Alexander Schepanovski
eac0aa13b2
perf: use packaging.version instead of pkg_resources
...
This is the same functionality without a cost of loading a huge package.
2019-09-17 14:32:31 +07:00
Ruslan Kuprieiev
e36f242f66
Merge pull request #2493 from pared/2345
...
output: prevent stage file from being used as output
2019-09-14 21:42:06 +03:00
Paweł Redzyński and Ruslan Kuprieiev
53f6aead95
Update dvc/dependency/base.py
...
Co-Authored-By: Ruslan Kuprieiev <[email protected] >
2019-09-14 19:40:59 +02:00
Paweł Redzyński and Ruslan Kuprieiev
74a0cef3e5
Update dvc/output/base.py
...
Co-Authored-By: Ruslan Kuprieiev <[email protected] >
2019-09-13 16:02:49 +02:00
pawel
0935930f46
output: prevent stage file from being used as output
2019-09-13 13:31:50 +02:00
Ruslan Kuprieiev
6d16227bc1
Merge pull request #2496 from efiop/2483
...
path_info: don't forget to override as_posix method
2019-09-13 05:12:39 +03:00
Ruslan Kuprieiev
f0c43b4e02
path_info: don't forget to override as_posix method
...
Unlike original implementation [1] that uses `str()` we actually need
to use `fspath`, because we've overriden `__str__` method to return
relative paths, which will break original `as_posix`.
[1] https://github.com/python/cpython/blob/v3.7.0/Lib/pathlib.py#L692
Fixes #2483
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-09-13 04:52:03 +03:00
Alexander Schepanovski
293a50d75c
perf: use fast entry points on non-wheel install
...
This avoids importing `pkg_resources` on startup, which saves around 200
ms.
NOTE: wheel installer uses its own entry points template, which is the same
fastentrypoints.py script provides, so no gain there.
2019-09-12 22:33:59 +07:00
Paweł Redzyński and Ruslan Kuprieiev
69f0de0090
google-resumable-media build problems ( #2449 )
...
* google-resumable-media hook for pyinstaller
* working wtih g-r-m build with -e
* update google-cloud-storage
* google-cloud-storage hook: remove hiddenimports
* Update setup.py
Co-Authored-By: Ruslan Kuprieiev <[email protected] >
2019-09-12 12:12:37 +03:00
Ruslan Kuprieiev
da6a0ca933
lock: remove unused lifetime argument
2019-09-11 16:45:09 +03:00
Ruslan Kuprieiev
05adcf9a4f
Merge pull request #2461 from Suor/nfs
...
dvc: switch to flufl lock
2019-09-11 16:43:40 +03:00
Ruslan Kuprieiev
8338d4507c
Merge pull request #2488 from pared/2444
...
remote: checkout: reuse _checkout_file functionality
2019-09-11 15:22:18 +03:00
pawel
d4c9c71a2f
remote: checkout: reuse _checkout_file functionality
2019-09-11 11:26:30 +02:00
Alexander Schepanovski
3c3378bdca
dvc: make lock lifetime long by default
2019-09-11 14:21:12 +07:00
Alexander Schepanovski
d9d85f3cb0
dvc: fix locks in Python2.7/Windows
...
Return to zc.lockfile lock in Python 2, NFS is not supported there
anyway since sqlite3 doesn't support URIs.
2019-09-11 14:17:21 +07:00
Alexander Schepanovski
f29f07ca88
dvc: do not lock sqlite db
2019-09-11 14:17:16 +07:00
Ruslan Kuprieiev
09f6b1c7b9
Merge pull request #2485 from pared/2477
...
move: use relpath to find target path
2019-09-10 16:23:27 +03:00
pawel
a16dc58ae3
move: use relpath to find target path
2019-09-10 14:03:55 +02:00
Ruslan Kuprieiev
9fa6bee13a
Merge pull request #2482 from efiop/master
...
test: repro: fix link types
2019-09-10 03:10:29 +03:00
Ruslan Kuprieiev
384fd4cd9a
test: repro: fix link types
2019-09-10 02:12:28 +03:00
Ruslan Kuprieiev
2c003fdc04
Merge pull request #2426 from mroutis/close-1652
...
ssh: support linking
2019-09-09 20:48:22 +03:00
Ruslan Kuprieiev
af8a7aa25d
dvc: bump to 0.59.2
0.59.2
2019-09-09 20:28:37 +03:00
Mr. Outis
3c5bcbd463
local: mark static methods
2019-09-09 12:26:48 -05:00
Ruslan Kuprieiev
b0b958e14b
Merge pull request #2481 from efiop/2476
...
scm: remove `pkg install` leftovers
2019-09-09 20:16:01 +03:00
Ruslan Kuprieiev
a529f7d8ad
Merge pull request #2479 from efiop/always_reproduce
...
run: introduce --always-changed
2019-09-09 19:45:35 +03:00
Ruslan Kuprieiev
ce27444dd2
scm: remove pkg install leftovers
...
Leftover code was causing problems when working with symlinks, because
it tried to use `realpath` on symlinks to further use it to determine
parent directory.
Fixes #2476
2019-09-09 19:43:10 +03:00
Mr. Outis
2a847ef25c
tests: ignore ssh's hardlink and copy tests on windows
2019-09-09 11:20:29 -05:00
Mr. Outis
e0fd808ab0
setup: iterative/mock-ssh-server -> pypi mock-ssh-server
2019-09-09 11:15:49 -05:00
Ruslan Kuprieiev
9638b454d7
Merge pull request #2478 from pared/2443
...
stage: prevent writing default wdir into stage file
2019-09-09 18:23:36 +03:00
Ruslan Kuprieiev
357ce82f28
run: introduce --always-changed
...
This is an extension of our callback stages (no deps, so always
considered as changed) for stages with dependencies, so that these
stages could be used properly in the middle of the DAG. See attached
issue for more info.
Related to #2378
2019-09-09 18:03:28 +03:00
pawel
90738fab9c
stage: prevent writing default wdir into stage file
2019-09-09 16:20:33 +02:00
Ruslan Kuprieiev
b3e4ff7cba
test: install: don't forget to adjust hook tests
2019-09-09 05:10:30 +03:00
Ruslan Kuprieiev
79cd3d670f
dvc: bump to 0.59.1
2019-09-09 00:26:54 +03:00
Ruslan Kuprieiev
2d2ac67e50
hooks: make syntax compatible with bare sh
...
`==` is not part of the posix and not all shells (e.g. dash) support it, making hooks break.
2019-09-09 00:26:04 +03:00
Mr. Outis and Ruslan Kuprieiev
5103dfd4aa
tests: fix skipif on ssh/test_connection.py
...
Co-Authored-By: Ruslan Kuprieiev <[email protected] >
2019-09-07 21:38:50 -05:00
Mr. Outis
b4507444d5
version: adjust get_fs_type to discover all partitions
2019-09-06 19:27:23 -05:00
Ruslan Kuprieiev
2ee9da61f0
dvc: bump to 0.59.0
0.59.0
2019-09-07 00:13:05 +03:00
Ruslan Kuprieiev
b61c97aa68
Merge pull request #2475 from efiop/2471
...
erepo: fix environment before running git
2019-09-07 00:12:35 +03:00
Ruslan Kuprieiev
60d8e8fbec
erepo: fix environment before running git
...
Fixes #2471
2019-09-06 23:42:46 +03:00