-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: delegate to uv's built-in packaging and dependency handling
Fixes #151
- Loading branch information
1 parent
53e0631
commit 8fb3dae
Showing
5 changed files
with
72 additions
and
3 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
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,31 @@ | ||
from __future__ import annotations | ||
|
||
from typing import TYPE_CHECKING | ||
|
||
from tox.tox_env.python.package import PythonPathPackageWithDeps | ||
|
||
if TYPE_CHECKING: | ||
import pathlib | ||
from collections.abc import Sequence | ||
|
||
|
||
class UvFromDirPackage(PythonPathPackageWithDeps): | ||
"""Package to be built and installed by uv directly.""" | ||
|
||
def __init__(self, path: pathlib.Path, extras: Sequence[str]) -> None: | ||
super().__init__(path, ()) | ||
self.extras = extras | ||
|
||
|
||
class UvFromDirEditablePackage(PythonPathPackageWithDeps): | ||
"""Package to be built and editably installed by uv directly.""" | ||
|
||
def __init__(self, path: pathlib.Path, extras: Sequence[str]) -> None: | ||
super().__init__(path, ()) | ||
self.extras = extras | ||
|
||
|
||
__all__ = [ | ||
"UvFromDirEditablePackage", | ||
"UvFromDirPackage", | ||
] |
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