Musa Atlıhan and Peter Rowlands
4b6ebc7527
make pull --run-cache work with local remote having relative path ( #4670 )
...
* Fixes #4637
* use PathInfo instead of Path
* catch ValueError with PathInfo.relative_to and fallback to dvc.utils.relpath
* cleanup
* add test
Co-authored-by: Peter Rowlands <[email protected] >
2020-10-19 17:53:01 +09:00
Victor
79e8e4edaf
dvc: override replace in HTTPURLInfo to include extra_parts ( #4517 )
...
* dvc: override replace in HTTPURLInfo to include extra_parts
The objective is to passtrough any parameter configured in http remotes.
fixes #4508
* add unit test for #4508
* Use HTTPURLInfo directly instead of decorator
2020-09-03 15:47:18 +03:00
Casper da Costa-Luis
2bb7257a06
lint: isort pre-commit & misc improvements ( #3749 )
...
* test: clean flake8 config root clutter
* test: pre-commit: add isort
Compatible with black (see https://github.com/timothycrosley/isort/issues/694 )
* lint: reorder imports
* lint: more complex imports
* lint: fix deepsource
* config: isort: add first party dvc
* tests: restyled: add isort
* temp commit to revert before merge
* Revert "temp commit to revert before merge"
This reverts commit 11db0fd8e95fe891597cbb9bf804480909b19e24.
2020-05-06 23:56:07 +03:00
Casper da Costa-Luis
f19d800f43
import-url: allow queries in URL ( #3432 )
...
* import-url: allow queries in URL
Fixes #3424
* Revert "import-url: allow queries in URL"
This reverts commit 48495d027963073fe260f596d85c3c179fee037f.
* path_info: add HTTPURLInfo base
* path_info: HTTPURLInfo complete
* remote: http(s): support params, queries, fragments
Fixes #3424
Closes #3432
* tests: path_info: HTTPURLInfo
* lint
* tests: path_info: HTTPURLInfo
Slightly more thorough testing
2020-03-17 19:23:56 +02:00
Mr. Outis
27f581cf4e
py3: remove imports from utils.compat
2019-12-31 23:16:11 -06:00
Ruslan Kuprieiev
95fe1578bb
dvc: automatically reorder imports
2019-11-05 02:34:40 +02: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
Ivan Shcheklein
164c2e8dc1
url info: fix infinite recustion on deepcopy
2019-07-20 15:26:00 -07:00
Ivan Shcheklein
8fd18f5017
url info and repo grap optimization: address review comments
2019-07-04 23:35:58 -07:00
Ivan Shcheklein
0abf530bef
tests: add tests for some previously failing calls in url info
2019-07-04 19:34:43 -07:00