-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(dependencies): Adding ability to install nested dependencies (#77)
* ref(dependencies): Adding ability to install nested dependencies * fixing dependency version error * fixing tests * Improving test coverage * Fixing naming
- Loading branch information
1 parent
2e3e906
commit e5e907b
Showing
12 changed files
with
586 additions
and
97 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
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,24 @@ | ||
from __future__ import annotations | ||
|
||
import contextlib | ||
import fcntl | ||
from collections.abc import Generator | ||
|
||
|
||
@contextlib.contextmanager | ||
def lock(path: str) -> Generator[None, None, None]: | ||
with open(path, mode="a+") as f: | ||
with _locked(f.fileno()): | ||
yield | ||
|
||
|
||
@contextlib.contextmanager | ||
def _locked(fileno: int) -> Generator[None, None, None]: | ||
try: | ||
fcntl.flock(fileno, fcntl.LOCK_EX | fcntl.LOCK_NB) | ||
except OSError: | ||
fcntl.flock(fileno, fcntl.LOCK_EX) | ||
try: | ||
yield | ||
finally: | ||
fcntl.flock(fileno, fcntl.LOCK_UN) |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
x-sentry-service-config: | ||
version: 0.1, | ||
service_name: basic, | ||
dependencies: | ||
version: 0.1 | ||
service_name: basic | ||
dependencies: {} | ||
modes: | ||
default: | ||
default: [] |
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 @@ | ||
# This is a blank repository for testing purposes |
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 @@ | ||
# This is an invalid repository for testing purposes |
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,7 @@ | ||
x-sentry-service-config: | ||
version: 0.1 | ||
service_name: invalid | ||
dependencies: {} | ||
modes: | ||
default: [] | ||
invalid |
Oops, something went wrong.