Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .cruft.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"project_name": "scmrepo",
"package_name": "scmrepo",
"friendly_name": "scmrepo",
"author": "Iterative",
"author": "Treeverse",
"email": "support@dvc.org",
"github_user": "iterative",
"github_user": "treeverse",
"version": "0.0.0",
"copyright_year": "2022",
"license": "Apache-2.0",
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Here is a list of important resources for contributors:
- `Code of Conduct`_

.. _Apache 2.0 license: https://opensource.org/licenses/Apache-2.0
.. _Source Code: https://github.com/iterative/scmrepo
.. _Issue Tracker: https://github.com/iterative/scmrepo/issues
.. _Source Code: https://github.com/treeverse/scmrepo
.. _Issue Tracker: https://github.com/treeverse/scmrepo/issues

How to report a bug
-------------------
Expand Down Expand Up @@ -104,6 +104,6 @@ To run linting and code formatting checks, you can invoke a `lint` session in no
It is recommended to open an issue before starting work on anything.
This will allow a chance to talk it over with the owners and validate your approach.

.. _pull request: https://github.com/iterative/scmrepo/pulls
.. _pull request: https://github.com/treeverse/scmrepo/pulls
.. github-only
.. _Code of Conduct: CODE_OF_CONDUCT.rst
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2022 Iterative.
Copyright 2025 Treeverse.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
10 changes: 5 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ scmrepo
.. |License| image:: https://img.shields.io/pypi/l/scmrepo
:target: https://opensource.org/licenses/Apache-2.0
:alt: License
.. |Tests| image:: https://github.com/iterative/scmrepo/workflows/Tests/badge.svg
:target: https://github.com/iterative/scmrepo/actions?workflow=Tests
.. |Tests| image:: https://github.com/treeverse/scmrepo/workflows/Tests/badge.svg
:target: https://github.com/treeverse/scmrepo/actions?workflow=Tests
:alt: Tests
.. |Codecov| image:: https://codecov.io/gh/iterative/scmrepo/branch/main/graph/badge.svg
:target: https://app.codecov.io/gh/iterative/scmrepo
.. |Codecov| image:: https://codecov.io/gh/treeverse/scmrepo/branch/main/graph/badge.svg
:target: https://app.codecov.io/gh/treeverse/scmrepo
:alt: Codecov
.. |pre-commit| image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
:target: https://github.com/pre-commit/pre-commit
Expand Down Expand Up @@ -106,7 +106,7 @@ please `file an issue`_ along with a detailed description.
.. _fsspec: https://filesystem-spec.readthedocs.io/
.. _fsspec docs: https://filesystem-spec.readthedocs.io/en/latest/api.html?highlight=walk#fsspec.spec.AbstractFileSystem
.. _PyPI: https://pypi.org/
.. _file an issue: https://github.com/iterative/scmrepo/issues
.. _file an issue: https://github.com/treeverse/scmrepo/issues
.. _pip: https://pip.pypa.io/
.. github-only
.. _Contributor Guide: CONTRIBUTING.rst
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description = "scmrepo"
readme = "README.rst"
license = "Apache-2.0"
license-files = ["LICENSE"]
authors = [{ name = "Iterative", email = "support@dvc.org" }]
authors = [{ name = "Treeverse", email = "support@dvc.org" }]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
Expand All @@ -37,8 +37,8 @@ dependencies = [
]

[project.urls]
Issues = "https://github.com/iterative/scmrepo/issues"
Source = "https://github.com/iterative/scmrepo"
Issues = "https://github.com/treeverse/scmrepo/issues"
Source = "https://github.com/treeverse/scmrepo"

[project.optional-dependencies]
tests = [
Expand Down
4 changes: 2 additions & 2 deletions src/scmrepo/git/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ def no_commits(self):
# with the new backend.
#
# See:
# https://github.com/iterative/dvc/issues/5641
# https://github.com/iterative/dvc/issues/7458
# https://github.com/treeverse/dvc/issues/5641
# https://github.com/treeverse/dvc/issues/7458
def _backend_func(self, name, *args, **kwargs) -> Any:
backends: Iterable[str] = kwargs.pop("backends", self.backends)
for key in backends:
Expand Down
4 changes: 2 additions & 2 deletions src/scmrepo/git/backend/dulwich/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _get_ssh_vendor() -> "SSHVendor":
return SubprocessSSHVendor()

if sys.platform == "win32" and os.environ.get("MSYSTEM") and shutil.which("ssh"):
# see https://github.com/iterative/dvc/issues/7702
# see https://github.com/treeverse/dvc/issues/7702
logger.debug(
"dulwich: native win32 Python inside MSYS2/git-bash, using MSYS2 OpenSSH"
)
Expand Down Expand Up @@ -375,7 +375,7 @@ def commit(self, msg: str, no_verify: bool = False):

with reraise((Error, CommitError), SCMError("Git commit failed")):
try:
commit(self.repo, message=msg, no_verify=no_verify)
commit(self.repo, message=msg, no_verify=no_verify, sign=False)
except InvalidUserIdentity as exc:
raise SCMError("Git username and email must be configured") from exc
except TimezoneFormatError as exc:
Expand Down
4 changes: 2 additions & 2 deletions src/scmrepo/git/backend/gitpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def open(
def name(self) -> str:
# NOTE: `obj.name` is not always a basename. See [1] for more details.
#
# [1] https://github.com/iterative/dvc/issues/3481
# [1] https://github.com/treeverse/dvc/issues/3481
return os.path.basename(self.obj.path)

@property
Expand Down Expand Up @@ -266,7 +266,7 @@ def add(
self.repo.index.add(paths if isinstance(paths, str) else list(paths))
except AssertionError as exc:
# NOTE: GitPython is not currently able to handle index version >= 3.
# See https://github.com/iterative/dvc/issues/610 for more details.
# See https://github.com/treeverse/dvc/issues/610 for more details.
raise UnsupportedIndexFormat from exc

def commit(self, msg: str, no_verify: bool = False):
Expand Down
2 changes: 1 addition & 1 deletion src/scmrepo/git/backend/pygit2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def _get_checkout_strategy(

# Workaround to force git_backend_odb_pack to release open file handles
# in DVC's mixed git-backend environment.
# See https://github.com/iterative/dvc/issues/5641
# See https://github.com/treeverse/dvc/issues/5641
@contextmanager
def release_odb_handles(self):
yield
Expand Down
2 changes: 1 addition & 1 deletion src/scmrepo/git/lfs/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def get_client(**kwargs):
return RetryClient(
connector=aiohttp.TCPConnector(
# Force cleanup of closed SSL transports.
# See https://github.com/iterative/dvc/issues/7414
# See https://github.com/treeverse/dvc/issues/7414
enable_cleanup_closed=True,
),
timeout=aiohttp.ClientTimeout(
Expand Down
8 changes: 4 additions & 4 deletions tests/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def _gen(scm: Git, s: str, commit_timestamp: Optional[float] = None) -> str:
f.write(s)
scm.dulwich.add([s])
scm.dulwich.repo.get_worktree().commit(
message=s.encode("utf-8"), commit_timestamp=commit_timestamp
message=s.encode("utf-8"), commit_timestamp=commit_timestamp, sign=False
)
return scm.get_rev()

Expand Down Expand Up @@ -1117,7 +1117,7 @@ class _ProxyServer(ProxyTestCase):


def test_clone_proxy_server(proxy_server: str, scm: Git, git: Git, tmp_dir: TmpDir):
url = "https://github.com/iterative/dvcyaml-schema"
url = "https://github.com/treeverse/dvcyaml-schema"

p = (
Path(os.environ["HOME"] if "HOME" in os.environ else os.environ["USERPROFILE"])
Expand All @@ -1138,7 +1138,7 @@ def test_clone_proxy_server(proxy_server: str, scm: Git, git: Git, tmp_dir: TmpD


def test_iter_remote_refs_proxy_server(proxy_server: str, scm: Git, tmp_dir: TmpDir):
url = "https://github.com/iterative/dvcyaml-schema"
url = "https://github.com/treeverse/dvcyaml-schema"
git = GitBackends.DEFAULT["dulwich"](".")

p = (
Expand All @@ -1164,7 +1164,7 @@ def test_iter_remote_refs_proxy_server(proxy_server: str, scm: Git, tmp_dir: Tmp
def test_fetch_refspecs_proxy_server(
proxy_server: str, scm: Git, git: Git, tmp_dir: TmpDir
):
url = "https://github.com/iterative/dvcyaml-schema"
url = "https://github.com/treeverse/dvcyaml-schema"

p = (
Path(os.environ["HOME"] if "HOME" in os.environ else os.environ["USERPROFILE"])
Expand Down
10 changes: 5 additions & 5 deletions tests/test_pygit2.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ def test_pygit_stash_apply_conflicts(
@pytest.mark.parametrize(
"url",
[
"git@github.com:iterative/scmrepo.git",
"github.com:iterative/scmrepo.git",
"user@github.com:iterative/scmrepo.git",
"git@github.com:treeverse/scmrepo.git",
"github.com:treeverse/scmrepo.git",
"user@github.com:treeverse/scmrepo.git",
"ssh://login@server.com:12345/repository.git",
],
)
Expand Down Expand Up @@ -104,11 +104,11 @@ def test_pygit_use_env_vars_for_signature(
with pytest.raises(SCMError):
getattr(git.pygit2, name)

mocker.patch.dict(os.environ, {f"GIT_{name.upper()}_EMAIL": "olivaw@iterative.ai"})
mocker.patch.dict(os.environ, {f"GIT_{name.upper()}_EMAIL": "olivaw@treeverse.io"})
with pytest.raises(SCMError):
getattr(git.pygit2, name)

mocker.patch.dict(os.environ, {f"GIT_{name.upper()}_NAME": "R. Daneel Olivaw"})
assert getattr(git.pygit2, name) == Signature(
email="olivaw@iterative.ai", name="R. Daneel Olivaw"
email="olivaw@treeverse.io", name="R. Daneel Olivaw"
)
4 changes: 2 additions & 2 deletions tests/test_scmrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

def test_clone(tmp_dir: TmpDir, matcher: type[Matcher]):
progress = MagicMock()
url = "https://github.com/iterative/dvcyaml-schema"
url = "https://github.com/treeverse/dvcyaml-schema"
rev = "cf279597596b54c5b0ce089eb4bda41ebbbb5db4"

repo = Git.clone(url, "dir", rev=rev, progress=progress)
Expand All @@ -20,7 +20,7 @@ def test_clone(tmp_dir: TmpDir, matcher: type[Matcher]):


def test_clone_shallow(tmp_dir: TmpDir):
url = "https://github.com/iterative/dvcyaml-schema"
url = "https://github.com/treeverse/dvcyaml-schema"
shallow_branch = "master"

repo = Git.clone(url, "dir", shallow_branch=shallow_branch)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_stash.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def test_git_stash_drop(tmp_dir: TmpDir, scm: Git, ref: Optional[str]):


reason = """libgit2 stash_save() is flaky on linux when run inside pytest
https://github.com/iterative/dvc/pull/5286#issuecomment-792574294"""
https://github.com/treeverse/dvc/pull/5286#issuecomment-792574294"""


@pytest.mark.xfail(
Expand Down
14 changes: 7 additions & 7 deletions tests/test_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
@pytest.mark.parametrize(
"url",
[
"git@github.com:iterative/scmrepo.git",
"github.com:iterative/scmrepo.git",
"user@github.com:iterative/scmrepo.git",
"git@github.com:treeverse/scmrepo.git",
"github.com:treeverse/scmrepo.git",
"user@github.com:treeverse/scmrepo.git",
],
)
def test_scp_url(url: str):
Expand All @@ -20,11 +20,11 @@ def test_scp_url(url: str):
[
r"C:\foo\bar",
"C:/foo/bar",
"/home/user/iterative/scmrepo/git",
"~/iterative/scmrepo/git",
"/home/user/treeverse/scmrepo/git",
"~/treeverse/scmrepo/git",
"ssh://login@server.com:12345/repository.git",
"https://user:password@github.com/iterative/scmrepo.git",
"https://github.com/iterative/scmrepo.git",
"https://user:password@github.com/treeverse/scmrepo.git",
"https://github.com/treeverse/scmrepo.git",
],
)
def test_scp_url_invalid(url: str):
Expand Down