-
Notifications
You must be signed in to change notification settings - Fork 3
Bye rhino7 #24
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
Bye rhino7 #24
Changes from 11 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
7b2a223
re-worked the components for Rhino8
chenkasirer d36289a
added yak infrastructure
chenkasirer 9d3af6a
replaced .bumpversion.cfg and setup.py with pyproject.toml
chenkasirer df4437c
config section headers
chenkasirer 6d11446
reverted dev header
chenkasirer d520241
added yak publish task
chenkasirer 321dc50
the possibilities are endless
chenkasirer 4b95d24
removed maybe redundant version in docstring
chenkasirer ddfa02a
linting and formatting
chenkasirer 6df0ab5
# noqa: F821 -ing
chenkasirer 67a794f
formatting
chenkasirer 7f1990b
fixed typos
chenkasirer 6ebe37e
removed new functions from docs as they will be upstreamed to core
chenkasirer a776b05
fix breaking change in `pytest >= 8`
gonzalocasas 972919a
minor updates to CI workflows
gonzalocasas ec5f9d4
Update release workflow to remove inlined copy of the action
gonzalocasas ea24e4b
Build and upload components as artifacts for testing
gonzalocasas 300a43f
update upload-artifacts
gonzalocasas 08b594f
meh
gonzalocasas 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 was deleted.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| name: publish_yak | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| environment: | ||
| description: "Choose deployment environment" | ||
| required: true | ||
| type: choice | ||
| options: | ||
| - test | ||
| - prod | ||
|
|
||
| jobs: | ||
|
|
||
| publish_test_yak: | ||
| runs-on: windows-latest | ||
|
|
||
| steps: | ||
|
|
||
| - name: Set test flag based on input | ||
| shell: pwsh | ||
| run: | | ||
| if ("${{ github.event.inputs.environment }}" -eq "test") { | ||
| echo "TEST_FLAG=--test-server" | Out-File -FilePath $env:GITHUB_ENV -Append | ||
| } | ||
| else { | ||
| echo "TEST_FLAG=" | Out-File -FilePath $env:GITHUB_ENV -Append | ||
| } | ||
|
|
||
| - name: Checkout repo | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install -e .[dev] | ||
|
|
||
| - name: Create CPython Grasshopper user objects | ||
| run: | | ||
| invoke build-cpython-ghuser-components | ||
|
|
||
| - name: Create Rhino8 Yak package | ||
| shell: pwsh | ||
| run: | | ||
| invoke yakerize -m $Env:YAK_TEMPLATE\manifest.yml -l $Env:YAK_TEMPLATE\icon.png -g $Env:USER_OBJECTS -t rh8 | ||
| env: | ||
| USER_OBJECTS: src\compas_eve\ghpython\components\ghuser | ||
| YAK_TEMPLATE: src\compas_eve\ghpython\yak_template | ||
|
|
||
| - name: Publish to Yak server (Rhino 8) | ||
| shell: pwsh | ||
| run: | | ||
| $test_flag = if ($Env:TEST_FLAG) { $Env:TEST_FLAG } else { "" } | ||
| $file = Get-ChildItem -Path dist\yak_package\*rh8*.yak -File | Select-Object -ExpandProperty Name | ||
| $command = "invoke publish-yak -y dist\yak_package\$file $test_flag".Trim() | ||
| Invoke-Expression $command | ||
| env: | ||
| YAK_TOKEN: ${{ secrets.YAK_DF_TOKEN }} |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,4 +9,5 @@ pytest-mock | |
| ruff | ||
| sphinx_compas2_theme | ||
| twine | ||
| wheel | ||
| wheel | ||
| pythonnet | ||
This file was deleted.
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
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -13,9 +13,72 @@ | |||||||||
| :nosignatures: | ||||||||||
| BackgroundWorker | ||||||||||
| warning | ||||||||||
| error | ||||||||||
| remark | ||||||||||
| message | ||||||||||
chenkasirer marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||
| """ | ||||||||||
|
|
||||||||||
| try: | ||||||||||
| import Grasshopper # type: ignore | ||||||||||
| except (ImportError, SyntaxError): | ||||||||||
|
||||||||||
| except (ImportError, SyntaxError): | |
| except (ImportError, SyntaxError): | |
| # Grasshopper is only available in Rhino/Grasshopper environments. | |
| # Ignore import errors to allow this module to be imported elsewhere. |
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
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.
Uh oh!
There was an error while loading. Please reload this page.