-
Notifications
You must be signed in to change notification settings - Fork 3
More refined dependency management for different app types #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
b7a8a56
fix: Don't run `sync` if there's a missing pyproject.toml
bradhe 923392c
chore: Simple integration tests for local execution
bradhe b218d3b
Update crates/tower-runtime/tests/local_test.rs
bradhe 7b2dc96
Update crates/tower-uv/src/lib.rs
bradhe 8d2dd86
chore: Reduce lock contention on reading output
bradhe bd3e7cc
chore: Attempts to resolve `uv` problems on first download
bradhe 5496d17
chore: Concurrent test runs cause problems!
bradhe 92277c3
chore: Only allow one UV setup to proceed at a time.
bradhe c303402
chore: Allow tests to proceed concurrently
bradhe 288009f
chore: We need to actually hold the lock
bradhe 24eeedc
chore: Remove debug output for now
bradhe 76924e0
chore: Add support for installing apps that use requirements.txt
bradhe 3cef82a
Update crates/tower-uv/tests/install_test.rs
bradhe 39b062d
chore: Feedback from @socksy
bradhe f04a4dd
chore: More feedback from @socksy
bradhe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
3 changes: 3 additions & 0 deletions
3
crates/tower-runtime/tests/example-apps/01-hello-world/Towerfile
This file contains hidden or 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,3 @@ | ||
| [app] | ||
| name = "01-hello-world" | ||
| script = "./task.py" |
2 changes: 2 additions & 0 deletions
2
crates/tower-runtime/tests/example-apps/01-hello-world/task.py
This file contains hidden or 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 @@ | ||
| for i in range(0, 5): | ||
| print("Hello, world!") |
Empty file.
3 changes: 3 additions & 0 deletions
3
crates/tower-runtime/tests/example-apps/02-use-faker/Towerfile
This file contains hidden or 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,3 @@ | ||
| [app] | ||
| name = "02-use-faker" | ||
| script = "./main.py" |
This file contains hidden or 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,9 @@ | ||
| from faker import Faker | ||
|
|
||
| def main(): | ||
| fake = Faker() | ||
| print(fake.name()) | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| main() |
9 changes: 9 additions & 0 deletions
9
crates/tower-runtime/tests/example-apps/02-use-faker/pyproject.toml
This file contains hidden or 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,9 @@ | ||
| [project] | ||
| name = "02-get-current-ip" | ||
| version = "0.1.0" | ||
| description = "Add your description here" | ||
| readme = "README.md" | ||
| requires-python = ">=3.12" | ||
| dependencies = [ | ||
| "faker>=37.4.2", | ||
| ] |
35 changes: 35 additions & 0 deletions
35
crates/tower-runtime/tests/example-apps/02-use-faker/uv.lock
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
crates/tower-runtime/tests/example-apps/03-legacy-app/Towerfile
This file contains hidden or 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,3 @@ | ||
| [app] | ||
| name = "03-legacy-app" | ||
| script = "task.py" |
2 changes: 2 additions & 0 deletions
2
crates/tower-runtime/tests/example-apps/03-legacy-app/requirements.txt
This file contains hidden or 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 @@ | ||
| dlt[snowflake,filesystem]==1.4.0 | ||
| pandas |
2 changes: 2 additions & 0 deletions
2
crates/tower-runtime/tests/example-apps/03-legacy-app/task.py
This file contains hidden or 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 @@ | ||
| import dlt | ||
| print(dlt.version.__version__) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The indentation is inconsistent with the surrounding code. The line should be indented to align with the other match arms above it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this one? Maybe there's something messed up in my local enviro config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't it just wrong?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be to me? Thought maybe it was some hidden whitespace issue perhaps.