Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shrinkage #767

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![All Contributors](https://img.shields.io/github/all-contributors/datalad/datalad-next?color=ee8449&style=flat-square)](#contributors)
[![Build status](https://ci.appveyor.com/api/projects/status/dxomp8wysjb7x2os/branch/main?svg=true)](https://ci.appveyor.com/project/mih/datalad-next/branch/main)
[![codecov](https://codecov.io/gh/datalad/datalad-next/branch/main/graph/badge.svg?token=2P8rak7lSX)](https://codecov.io/gh/datalad/datalad-next)
[![Maintainability](https://api.codeclimate.com/v1/badges/6d6091ba6a7fd5ab5baa/maintainability)](https://codeclimate.com/github/datalad/datalad-next/maintainability)
[![docs](https://github.com/datalad/datalad-next/workflows/docs/badge.svg)](https://github.com/datalad/datalad-next/actions?query=workflow%3Adocs)
[![Documentation Status](https://readthedocs.org/projects/datalad-next/badge/?version=latest)](http://docs.datalad.org/projects/next/en/latest/?badge=latest)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
Expand Down
2 changes: 1 addition & 1 deletion datalad_next/annexremotes/tests/test_archivist.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .. import UnsupportedRequest
from ..archivist import ArchivistRemote
from datalad_next.datasets import Dataset
from datalad_next.runners import CommandError
from datalad_core.runners import CommandError

from datalad_next.tests import assert_result_count

Expand Down
2 changes: 1 addition & 1 deletion datalad_next/constraints/git.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Constraints for Git-related concepts and parameters"""
from __future__ import annotations

from datalad_next.runners import (
from datalad_core.runners import (
CommandError,
call_git,
call_git_oneline,
Expand Down
9 changes: 8 additions & 1 deletion datalad_next/consts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
``True`` if executed on the Windows platform.
"""

__all__ = [
'COPY_BUFSIZE',
'PRE_INIT_COMMIT_SHA',
'on_linux',
'on_windows',
]

# import from "utils", but these really are constants
from datalad.utils import (
on_linux,
Expand All @@ -29,4 +36,4 @@
# from PY3.10
COPY_BUFSIZE = 1024 * 1024 if on_windows else 64 * 1024

from datalad.consts import PRE_INIT_COMMIT_SHA
from datalad_core.consts import PRE_INIT_COMMIT_SHA
22 changes: 17 additions & 5 deletions datalad_next/gitpathspec/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
"""Handling of Git's pathspecs with subdirectory mangling support

This functionality can be used to add support for pathspecs to implementations
that rely on Git commands that do not support submodule recursion directly.

.. deprecated:: 1.6
This module is deprecated. It has been migrated to the `datasalad library
<https://pypi.org/project/datasalad>`__. Imports should be adjusted to
``datasalad.gitpathspec``.
"""

__all__ = ['GitPathSpec', 'GitPathSpecs']

from .pathspec import GitPathSpec
from .pathspecs import GitPathSpecs
import warnings

from datasalad.gitpathspec import (
GitPathSpec,
GitPathSpecs,
)

warnings.warn(
'`datalad_next.gitpathspec` has been migrated to the datasalad library, '
'adjust imports to `datasalad.gitpathspec`',
DeprecationWarning,
stacklevel=1,
)
322 changes: 0 additions & 322 deletions datalad_next/gitpathspec/pathspec.py

This file was deleted.

Loading
Loading