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
26 changes: 25 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,19 @@ classifiers = [
]
requires-python = ">=3.8"
dynamic = ["version"]
dependencies = []
dependencies = [
"gitpython>3",
"dulwich>=0.21.6",
"pygit2>=1.13.3",
"pygtrie>=2.3.2",
"fsspec>=2021.7.0",
"pathspec>=0.9.0",
"asyncssh>=2.13.1,<3",
"funcy>=1.14",
"shortuuid>=0.5.0",
"dvc-objects>=1.0.1,<2",
"dvc-http>=2.29.0",
]

[project.urls]
Issues = "https://github.com/iterative/scmrepo/issues"
Expand All @@ -33,11 +45,23 @@ tests = [
"pytest-cov==3.0.0",
"pytest-mock==3.8.2",
"mypy==0.971",
"pytest-test-utils==0.0.8",
"pytest-asyncio==0.18.3",
# https://github.com/docker/docker-py/issues/2902
"pytest-docker==0.12.0; python_version < '3.10' and implementation_name != 'pypy'",
"mock==5.1.0",
"paramiko==3.3.1",
"types-certifi==2021.10.8.3",
"types-mock==5.1.0.2",
"types-paramiko==3.3.0.0",
]
dev = [
"scmrepo[tests]",
]

[tool.setuptools.package-data]
dvc_objects = ["py.typed"]

[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
Expand Down
83 changes: 0 additions & 83 deletions setup.cfg

This file was deleted.

3 changes: 2 additions & 1 deletion src/scmrepo/git/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ def _input_tty(prompt: str = "Username: ") -> str:
with ExitStack() as stack:
try:
fd = os.open(
"/dev/tty", os.O_RDWR | os.O_NOCTTY # pylint: disable=no-member
"/dev/tty",
os.O_RDWR | os.O_NOCTTY, # pylint: disable=no-member
)
tty = io.FileIO(fd, "w+")
stack.enter_context(tty)
Expand Down
18 changes: 6 additions & 12 deletions tests/test_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,11 @@ def test_get_matching_commands():
from dulwich.config import ConfigFile

config_file = io.BytesIO(
"""
b"""
[credential]
helper = /usr/local/bin/my-helper
UseHttpPath = true
""".encode(
"ascii"
)
"""
)
config_file.seek(0)
config = ConfigFile.from_file(config_file)
Expand All @@ -189,12 +187,10 @@ def test_get_matching_commands():
) == [("/usr/local/bin/my-helper", True)]

config_file = io.BytesIO(
"""
b"""
[credential]
helper = /usr/local/bin/my-helper
""".encode(
"ascii"
)
"""
)
config_file.seek(0)
config = ConfigFile.from_file(config_file)
Expand All @@ -203,12 +199,10 @@ def test_get_matching_commands():
) == [("/usr/local/bin/my-helper", False)]

config_file = io.BytesIO(
"""
b"""
[credential]
helper =
""".encode(
"ascii"
)
"""
)
config_file.seek(0)
config = ConfigFile.from_file(config_file)
Expand Down