Ronan Lamy
a3181bb509
fs: remove _get_fs_pair()
2022-09-08 17:39:32 +03:00
Ronan Lamy
4d6b90502b
fs: improve performance of _DvcFileSystem._update()
...
Avoid back and forth conversions between key tuples and path strings.
2022-09-08 17:39:32 +03:00
Ronan Lamy
947427f4d9
fs: remove dead code
2022-09-08 17:39:32 +03:00
Ronan Lamy
0482a1a88b
fs: simplify data flow
...
This uses the fact that repo.fs is always self.repo.fs and that
self.repo.fs always exists.
2022-09-08 17:39:32 +03:00
Ronan Lamy
b470459987
fs: simplify return values of _get_fs_pair_2()
2022-09-08 17:39:32 +03:00
Ronan Lamy
81a010674e
fs: avoid costly redundant dvcignore check when calling ._info() from .ls()
2022-09-08 17:39:32 +03:00
Ronan Lamy
d946a1328e
fs: Extract ._info() from .info()
...
This avoids unnecessarily recomputing dvc_parts when calling .info()
from .ls()
2022-09-08 17:39:32 +03:00
Ronan Lamy
ad7d39da20
fs: chop up ._get_fs_pair()
2022-09-08 17:39:32 +03:00
Saugat Pachhai (सौगात)
8432de5980
metadata: add support for dvc.yaml file
2022-09-08 15:10:33 +03:00
Saugat Pachhai (सौगात)
c73764156e
metadata: support custom metadata in .dvc files
...
This adds support for custom metadata in outputs under `meta` key.
Also adds `--meta` flag to `add`/`import`/`import-url` that supports
`key=value` values.
2022-09-08 14:10:35 +03:00
skshetry
df60df5242
add metadata fields: label, type to data ( #8232 )
...
gto like metadata fields: labels and type
2022-09-08 16:33:47 +05:45
dependabot[bot]
504485ed6e
build(deps-dev): Bump pylint from 2.15.0 to 2.15.2 ( #8268 )
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.15.0 to 2.15.2.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.15.0...v2.15.2 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-08 10:57:12 +05:45
dependabot[bot]
1e989bde2c
build(deps): Bump scmrepo from 0.1.0 to 0.1.1 ( #8269 )
...
Bumps [scmrepo](https://github.com/iterative/scmrepo ) from 0.1.0 to 0.1.1.
- [Release notes](https://github.com/iterative/scmrepo/releases )
- [Commits](https://github.com/iterative/scmrepo/compare/0.1.0...0.1.1 )
---
updated-dependencies:
- dependency-name: scmrepo
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-08 10:56:53 +05:45
Ruslan Kuprieiev
7e2248bbe5
deps: bump dvc-data to 0.7.1
2022-09-07 23:07:35 +03:00
Daniele Trifirò
a2d80b2403
silence flake8 errors (abstract class with no abstract method)
2022-09-07 21:51:33 +03:00
Daniele Trifirò
76e7c76ae5
data status: fix for scmrepo 0.1.0
2022-09-07 21:48:53 +03:00
Ruslan Kuprieiev
6cada6dc12
dvc: cloud versioning POC
2022-09-07 21:43:34 +03:00
Ruslan Kuprieiev
89d4461908
deps: temporarily limit dulwich to <0.20.46
...
Looks like the new release broke some data status logic.
2022-09-07 02:56:14 +03:00
Ruslan Kuprieiev
a124d7e866
deps: bump dvc-data to 0.6.3
2022-09-07 02:23:29 +03:00
Ruslan Kuprieiev
628be2ae49
deps: bump dvc-data to 0.6.1
2022-09-06 20:30:20 +03:00
dependabot[bot]
7a71e06946
build(deps): Bump dvc-render from 0.0.9 to 0.0.10
...
Bumps [dvc-render](https://github.com/iterative/dvc-render ) from 0.0.9 to 0.0.10.
- [Release notes](https://github.com/iterative/dvc-render/releases )
- [Commits](https://github.com/iterative/dvc-render/compare/0.0.9...0.0.10 )
---
updated-dependencies:
- dependency-name: dvc-render
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-09-06 17:12:36 +02:00
dependabot[bot]
91e54d8c27
build(deps): Bump dvc-data from 0.4.0 to 0.5.3
2022-09-06 17:17:21 +03:00
skshetry
071b2b8f81
add support for foreach target ( #8210 )
...
add general support for foreach target
2022-09-06 06:39:37 +05:45
skshetry
0b2b59a601
dvc.yaml: preserve outputs' desc on rewrites/updates to the stage ( #8247 )
...
preserve outputs' desc on rewrites/updates to the stage
We were not loading `desc` of the output, due to which we were not preserving the desc field over rewrites. Note that the rewrite only happens in select commands for `dvc.yaml`: `freeze`/`unfreeze`/`run`/`stage-add`, so we did not notice this before.
2022-09-05 18:49:39 +05:45
dependabot[bot]
65dc1cd08f
build(deps-dev): Bump pytest from 7.1.2 to 7.1.3
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.1.2 to 7.1.3.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/7.1.2...7.1.3 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-09-03 02:04:01 +03:00
dependabot[bot]
1b103297b7
build(deps-dev): Bump dvc-azure from 2.20.0 to 2.20.2
...
Bumps [dvc-azure](https://github.com/iterative/dvc-azure ) from 2.20.0 to 2.20.2.
- [Release notes](https://github.com/iterative/dvc-azure/releases )
- [Commits](https://github.com/iterative/dvc-azure/compare/2.20.0...2.20.2 )
---
updated-dependencies:
- dependency-name: dvc-azure
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected] >
2022-09-03 02:03:46 +03:00
John Henning
887c73b3c6
adjusted formatting for dvc-hdfs
2022-09-02 23:04:59 +03:00
Peter Rowlands
660c17f654
output: save version_id meta
2022-09-01 19:36:53 +03:00
skshetry
49da2eef02
tests: set celery ping_task_timeout 3x the default ( #8221 )
...
tests: set celery ping_timeout 3x the default
2022-09-01 16:48:19 +05:45
Ruslan Kuprieiev
aff65d42bb
deps: bump dvc-azure and dvc-s3 to 2.20.0
2022-09-01 13:00:47 +03:00
skshetry
8968405770
data status: fix path for committed changes in Windows ( #8220 )
...
The path we get from GitFileSystem is posixpath, even on Windows. We need to
convert that posixpath to os.path here.
2.24.0
2022-09-01 10:02:08 +05:45
dependabot[bot]
b6e8ba6758
build(deps-dev): Bump pylint from 2.14.5 to 2.15.0
...
Bumps [pylint](https://github.com/PyCQA/pylint) from 2.14.5 to 2.15.0.
- [Release notes](https://github.com/PyCQA/pylint/releases)
- [Commits](https://github.com/PyCQA/pylint/compare/v2.14.5...v2.15.0)
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-minor
...
2022-09-01 10:42:16 +08:00
Ruslan Kuprieiev
e307a62dc0
deps: bump dvc-data to 0.4.0
2022-09-01 02:59:24 +03:00
Saugat Pachhai (सौगात)
639eeed43b
skip tests that depend on hydra.compose in 3.11
2022-08-31 17:24:09 +02:00
David de la Iglesia Castro
91f12395f1
exp run: Support composing and dumping Hydra config.
...
The feature will be used depending on whether `config.hydra.enabled` is True or False.
Uses `hydra.initialize_config_dir` and `hydra.compose` (from https://hydra.cc/docs/advanced/compose_api/ ) to build the config and dump it to `params.yaml`. The content of the output file will be overwritten.
`config.hydra.config_dir` and `config.hydra.config_name` can be used to customize the values passed to `hydra.initialize_config_dir` and `hydra.compose`.
Can be combined with `--set-param` overrides.
Closes #8082
2022-08-31 17:24:09 +02:00
Ruslan Kuprieiev
e7daeb1c3e
deps: bump dvc-data to 0.3.0
2022-08-30 22:46:27 +03:00
Saugat Pachhai (सौगात)
d3569035c8
output.get_obj: catch ObjectCorruptedError
2.23.0
2022-08-30 21:31:33 +03:00
David de la Iglesia Castro
daee52e176
info: skip missing subprojects
2022-08-30 20:15:41 +03:00
skshetry
a8415b01d0
data status: fix quoting on command hints for untracked files ( #8211 )
...
data status: fix quoting on command hints
2022-08-30 22:51:39 +05:45
Daniele Trifirò
77f56090ff
do not checkout partials imports on fetch
2022-08-30 20:05:09 +03:00
Dave Berenbaum
1d3102f29b
data status: update hints to include fetch and checkout ( #8209 )
2022-08-30 22:05:32 +05:45
skshetry
a0cbcaa3c8
Delete CODEOWNERS
2022-08-30 13:12:57 +05:45
David de la Iglesia Castro
ab780879d1
info: Include subprojects.
2022-08-30 09:22:39 +02:00
skshetry
bfad82a2e3
data status: remove --withdirs, show unknowns in CLI ( #8189 )
...
* data status: remove --withdirs, show unknowns in CLI
* data status: only consider unknown from newer object during diff
2022-08-30 12:11:02 +05:45
skshetry
e5eec59cb8
test on 3.11 ( #8196 )
...
We don't have aiohttp support yet, due to which we have to install
without cythonized extension.
Similarly, there has been some changes in how dataclasses disallows some
mutable arguments to be set as a class property, due to which
`hydra.conf` fails to import in 3.11.
See https://github.com/python/cpython/pull/29867 . For now, I have
patched the module and avoid importing as a pytest-plugin.
dvc-hdfs/pyarrow is not there yet, we'll usually see a release 2-3
months after official reelase.
dvc-hdfs is skipped in 3.11 in extras_requires. `--set-params` will
return a nice error message if hydra cannot be imported in 3.11. I
decided to only patch that in tests.
2022-08-29 19:58:17 +05:45
Paweł Redzyński
2a4b83060e
plots: support dirs in top level definitions
...
Fixes : #7914
2022-08-29 10:51:16 +02:00
David de la Iglesia Castro
9e2ebe9fcc
resolve_rev: raise DvcException on empty repo.
2022-08-29 01:50:14 +03:00
David de la Iglesia Castro
2cef130191
repo: Handle no commits for exp show and plots diff.
...
Make it consistent with all the other commands that use `brancher` (i.e. `dvc diff`, `metrics diff`, `params diff`)
Closes #8163
2022-08-29 01:50:14 +03:00
David de la Iglesia Castro
17b9b1571e
api: Add details forparams_show stages syntax.
...
Explain `stages` syntax for cases where the api is used from a directory different to the one the `dvc.yam` is located.
2022-08-29 01:49:38 +03:00
skshetry
37c8ef3406
Update dvc/commands/plots.py
2022-08-29 01:46:47 +03:00