-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support noxfile being a symlink (#829)
* fix: support noxfile being a symlink Signed-off-by: Henry Schreiner <[email protected]> * feat: add session.noxfile and add tests Signed-off-by: Henry Schreiner <[email protected]> * refactor: remove session.noxfile in prefernce for __path__ Signed-off-by: Henry Schreiner <[email protected]> --------- Signed-off-by: Henry Schreiner <[email protected]>
- Loading branch information
Showing
6 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from pathlib import Path | ||
|
||
import nox | ||
|
||
FILE = Path(__file__).resolve() | ||
|
||
|
||
@nox.session(venv_backend="none", default=False) | ||
def orig(session: nox.Session) -> None: | ||
assert Path("orig_file.txt").exists() | ||
|
||
|
||
@nox.session(venv_backend="none", default=False) | ||
def sym(session: nox.Session) -> None: | ||
assert Path("sym_file.txt").exists() | ||
|
||
assert FILE.parent.joinpath("orig_file.txt").exists() |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../orig_dir/noxfile.py |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters