-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test and fix readme * try trigger pipeline in non master branch * fix readme * remove poetry lock file * fix readme * remove poetry lock file * try a bit * try remote testing * try again * add back tox * remove tol.ini * round up * fix readme * remove poetry lock file * try a bit * try remote testing * try again * add back tox * remove tol.ini * round up
- Loading branch information
Showing
7 changed files
with
277 additions
and
73 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,26 @@ | ||
import pathlib | ||
import _pytest.pathlib | ||
|
||
|
||
resolve_pkg_path_orig = _pytest.pathlib.resolve_package_path | ||
|
||
# we consider all dirs in repo/ to be namespace packages | ||
rootdir = pathlib.Path(__file__).parent.resolve() | ||
namespace_pkg_dirs = [str(d) for d in rootdir.iterdir() if d.is_dir()] | ||
|
||
# patched method | ||
def resolve_package_path(path): | ||
# call original lookup | ||
result = resolve_pkg_path_orig(path) | ||
if result is not None: | ||
return result | ||
# original lookup failed, check if we are subdir of a namespace package | ||
# if yes, return the namespace package we belong to | ||
for parent in path.parents: | ||
if str(parent) in namespace_pkg_dirs: | ||
return parent | ||
return None | ||
|
||
# apply patch | ||
_pytest.pathlib.resolve_package_path = resolve_package_path | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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,2 @@ | ||
dgl | ||
torch |
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 |
---|---|---|
|
@@ -96,5 +96,3 @@ commands = | |
|
||
[options] | ||
packages = find_namespace: | ||
install_requires = | ||
dgl==0.6.1 |
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