Skip to content

Commit

Permalink
fix: use consistent -r and fix editable test
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Jan 13, 2025
1 parent fdec87d commit a69e89e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions nox/tox_to_nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ def main() -> None:
[
part
for dep in section["deps"].strip().splitlines()
for part in (dep.split() if dep.startswith("-r") else [dep])
for part in (
[dep[:2] + dep[3:]] if dep.startswith("-r ") else [dep]
)
]
)

Expand All @@ -139,7 +141,7 @@ def main() -> None:
)
config[name]["base_python"] = impl + section["py_dot_ver"]

change_dir = Path(section.get("change_dir", "."))
change_dir = Path(section.get("change_dir", ""))
rel_to_cwd = change_dir.relative_to(Path.cwd())
if str(rel_to_cwd) == ".":
config[name]["change_dir"] = None
Expand Down
4 changes: 2 additions & 2 deletions tests/test_tox_to_nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def test_commands_with_requirements(makeconfig: Callable[[str], str]) -> None:
envlist = aiohttp
[testenv]
use_develop = true
usedevelop = true
deps =
pytest
pytest-cov
Expand All @@ -382,7 +382,7 @@ def test_commands_with_requirements(makeconfig: Callable[[str], str]) -> None:
@nox.session(python='python3.13')
def aiohttp(session):
session.install('pytest', 'pytest-cov', '-r', 'requirements/aiohttp.txt')
session.install('pytest', 'pytest-cov', '-rrequirements/aiohttp.txt')
session.install('-e', '.')
""").lstrip()
)

0 comments on commit a69e89e

Please sign in to comment.