-
Notifications
You must be signed in to change notification settings - Fork 299
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
Add Python Dependency Deck #2264
Merged
Merged
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
fccb28d
feat: refactor source code rendering in `SourceCodeDeck` class
jasonlai1218 1fec103
refactor: refactor deck rendering for Python dependencies
jasonlai1218 4ec42a7
refactor: refactor class properties and initialization
jasonlai1218 6e70e23
- feat: consolidate Python dependencies in `flytekit/__init__.py`
jasonlai1218 4dfeb34
refactor: refactor `flytekit/deck/deck.py` for `pandas` compatibility
jasonlai1218 27ec1f2
refactor: refactor return types across multiple files
jasonlai1218 5fd853d
feat: consolidate Python dependency management in FlyteContext
jasonlai1218 bc21848
refactor: refactor code to use DataFrame for package handling
jasonlai1218 9b30dc6
chore: refactor code for improved naming conventions
jasonlai1218 5ebc980
style: improve table alignment styling in CSS
jasonlai1218 501fcb6
refactor: refactor method and variable names across files
jasonlai1218 6ce4575
refactor: refactor imports in flytekit package
jasonlai1218 7556126
refactor: consolidate import statements in core/context_manager.py
jasonlai1218 534fa0f
style: improve code consistency and error checking
jasonlai1218 c4358f0
refactor: refactor Python dependency handling in classes
jasonlai1218 363f84f
chore: optimize imports in deck.py files
jasonlai1218 a775c7f
test: improve test coverage for PythonDependencyDeck class
jasonlai1218 a4773e0
feat: enhance user space deck management
jasonlai1218 05db9ab
refactor: refactor deck module and unit tests
jasonlai1218 d2bc23b
fix: update subprocess calls to use `sys.executable`
jasonlai1218 099a931
feat: refactor HTML generation logic and improve user experience
jasonlai1218 b02db7c
feat: enhance table content copying functionality
jasonlai1218 aaedf7a
refactor: improve table content copying functionality
jasonlai1218 938e0dd
refactor: improve package management and error handling
jasonlai1218 265cc60
chore: standardize whitespace in requirements_txt handling
jasonlai1218 7e132c0
style: standardize quotation marks for package_info keys
jasonlai1218 9eacfe7
Merge branch 'master' into add-py-deps-deck
jasonlai1218 20a3e9f
refactor: simplify requirements_txt generation
jasonlai1218 341a7da
docs: fix typos and improve code consistency across files
jasonlai1218 de90326
refactor: refactor dependency handling in PythonDependencyDeck class
jasonlai1218 b5f49b4
Merge branch 'master' into add-py-deps-deck
jasonlai1218 5634e78
refactor: update default name and test assertion in PythonDependencyDeck
jasonlai1218 9bd7995
Merge branch 'master' into add-py-deps-deck
jasonlai1218 79a09ac
Merge branch 'master' into add-py-deps-deck
jasonlai1218 e4c0bd0
refactor: update rendering of Pandas DataFrame using MarkdownRenderer
jasonlai1218 0091f25
Merge branch 'master' into add-py-deps-deck
jasonlai1218 5a58a8e
refactor: refactor PythonDependencyDeck and related classes
jasonlai1218 12ae643
feat: use `TableRenderer` for rendering DataFrames
jasonlai1218 16e681c
test: refactor codebase for improved performance
jasonlai1218 fc21591
Merge branch 'master' into add-py-deps-deck
jasonlai1218 ac21522
test: update test_deck.py for python dependency deck testing
jasonlai1218 96a852c
style: standardize import statements for pandas in project files
jasonlai1218 20b84fc
refactor: refactor import statements for `TableRenderer` usage
jasonlai1218 8572008
refactor: update PythonDependencyRenderer description
jasonlai1218 1c93057
refactor: refactor type hints and assertions across files
jasonlai1218 a32ce2d
Merge branch 'master' into add-py-deps-deck
jasonlai1218 8a40607
feat: refactor rendering classes in deck and plugins
jasonlai1218 f731757
docs: standardize markdown formatting across files
jasonlai1218 20e96c5
refactor: refactor markdown table rendering in PythonDependencyRenderer
jasonlai1218 352b79b
style: improve code consistency in PythonDependencyRenderer
jasonlai1218 0aad322
style: standardize formatting for better readability
jasonlai1218 7f40ad8
fix: update assertion to check for `Name` and `Version` consistency
jasonlai1218 1885662
test: extend test deadlines across various tests
jasonlai1218 3a262c4
Revert "test: extend test deadlines across various tests"
eapolinario 1534070
Only run generate decks in python_function_task if decks are enabled
eapolinario 03cb07c
Remove breakpoint
eapolinario 6153065
Fix test_deck.py tests to account for the number of expected decks (n…
eapolinario 3574aad
Increase deadline of eager tests
eapolinario edb7c18
Fix lint error
eapolinario 57597ed
Merge branch 'master' into add-py-deps-deck
jasonlai1218 9a2470e
test: update test assertions in test_deck.py
jasonlai1218 fc81271
refactor: refactor Python code organization
jasonlai1218 0f5a455
Merge branch 'master' into add-py-deps-deck
jasonlai1218 ef47b14
docs: refactor project structure and improve user experience
jasonlai1218 8c9af6b
Merge branch 'master' into add-py-deps-deck
jasonlai1218 814a952
Separate out tests that require hypothesis
eapolinario 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 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 |
---|---|---|
|
@@ -149,6 +149,41 @@ jobs: | |
fail_ci_if_error: false | ||
files: coverage.xml | ||
|
||
test-hypothesis: | ||
needs: | ||
- detect-python-versions | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ${{fromJson(needs.detect-python-versions.outputs.python-versions)}} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Cache pip | ||
uses: actions/cache@v3 | ||
with: | ||
# This path is specific to Ubuntu | ||
path: ~/.cache/pip | ||
# Look to see if there is a cache hit for the corresponding requirements files | ||
key: ${{ format('{0}-pip-{1}', runner.os, hashFiles('dev-requirements.in', 'requirements.in')) }} | ||
- name: Install dependencies | ||
run: make setup && pip freeze | ||
- name: Test with coverage | ||
env: | ||
FLYTEKIT_HYPOTHESIS_PROFILE: ci | ||
run: | | ||
make unit_test_hypothesis | ||
- name: Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
fail_ci_if_error: false | ||
files: coverage.xml | ||
|
||
test-serialization: | ||
needs: | ||
- detect-python-versions | ||
|
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
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
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.
@eapolinario This copy button does not work. I get this error in the console:
If we can not get this to work, I'm okay with removing the copy button and just showing the table.
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.
This is blocked on flyteorg/flyteconsole#852.
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.
That just got merged, so next Flyte release is going to have this.