-
Notifications
You must be signed in to change notification settings - Fork 40
Gh cpython -> LTS-main-1.x
#444
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
36 commits
Select commit
Hold shift + click to select a range
c496fd6
updated to compas_invocations2
chenkasirer 5564dd3
created cpython component definitions
chenkasirer 4041295
fixed plan cartesian motion component
chenkasirer ae2ca08
fixed plan motion component
chenkasirer eed9fcb
removed components from an alternative future
chenkasirer 1793d74
re-introduced current timeline components
chenkasirer 6a1b92f
cpythonized remaining components
chenkasirer 27bf75c
fixed calls to create_id
chenkasirer c861d65
argname and typing in collision mesh component
chenkasirer 10e8a9e
some more typing fixes
chenkasirer 010cca2
removed another component that snuck in from the future
chenkasirer 7635086
added helper functions for GH message printing
chenkasirer 342728d
updated components with new message helpers
chenkasirer 3c7003c
function wants Sphere in primitive form
chenkasirer c6a8912
updated changelog
chenkasirer 148678b
warning using the new helper function
chenkasirer 1695cf0
added yak template and workflow
chenkasirer fcab390
run workflows on LTS branch as well
chenkasirer b5e0e24
fixed typo in requirements
chenkasirer 51acb99
removed python 3.8 from workflow, added 3.11, 3.12, 3.13
chenkasirer 4e42274
add ruff and make it happy
chenkasirer f5de604
make formatter happy
chenkasirer 06d51fe
removed deprecated linting and formatting tools from requirements
chenkasirer bc496f1
updated integratino test
chenkasirer 2f61c0b
pinned sybil version to fix integration test
chenkasirer cd92dc6
import create_id from compas_ghpython and remove local implementation
chenkasirer fbc7bdb
updated changelog
chenkasirer 8392c8b
fixed scene object not properly created
chenkasirer 51afadd
same SceneObject fix in a couple other places
chenkasirer 1e90644
untar packages which cannot be installed with ironpip
chenkasirer fd7e005
linting
chenkasirer fb3d9b7
ironpython test
chenkasirer 9f442e9
skip ros integration tests
chenkasirer af8f1f6
formatting
chenkasirer 0ea8d3b
needs skip on every line
chenkasirer 8bcf410
fixed some doctest skipping statements
chenkasirer 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
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 |
|---|---|---|
|
|
@@ -4,6 +4,7 @@ on: | |
| push: | ||
| branches: | ||
| - main | ||
| - LTS-main-1.x | ||
| tags: | ||
| - 'v*' | ||
| pull_request_review: | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| 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 -r requiremnets-dev.txt | ||
|
|
||
| - name: Create CPython Grasshopper user objects | ||
| run: | | ||
| invoke build-cpython-ghuser-components | ||
|
|
||
| - name: Create IronPython Grasshopper user objects | ||
| run: | | ||
| choco install ironpython --version=2.7.8.1 | ||
| invoke clean | ||
| invoke build-ghuser-components | ||
|
|
||
| - name: Create Rhino7 Yak package | ||
| shell: pwsh | ||
| run: | | ||
| invoke yakerize -m $Env:YAK_TEMPLATE\manifest.yml -l $Env:YAK_TEMPLATE\icon.png -g $Env:USER_OBJECTS -t rh7 | ||
| env: | ||
| USER_OBJECTS: src\compas_fab\ghpython\components\ghuser | ||
| YAK_TEMPLATE: src\compas_fab\ghpython\yak_template | ||
|
|
||
| - name: Publish to Yak server (Rhino 7) | ||
| shell: pwsh | ||
| run: | | ||
| $test_flag = if ($Env:TEST_FLAG) { $Env:TEST_FLAG } else { "" } | ||
| $file = Get-ChildItem -Path dist\yak_package\*rh7*.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 }} | ||
|
|
||
| - 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_fab\ghpython\components_cpython\ghuser | ||
| YAK_TEMPLATE: src\compas_fab\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
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 |
|---|---|---|
| @@ -1,19 +1,16 @@ | ||
| attrs >=19.3.0 | ||
| autopep8 | ||
| black | ||
| bump2version >=1.0.1 | ||
| check-manifest >=0.36 | ||
| compas_invocations | ||
| doc8 | ||
| flake8 | ||
| compas-invocations2 | ||
| ruff | ||
| importlib_metadata <5.0 | ||
| invoke>=0.14 | ||
| isort | ||
| pylint | ||
| pytest | ||
| pytest_mock | ||
| pytest-cov | ||
| sphinx_compas2_theme | ||
| sybil | ||
| sybil~=8.0.1 | ||
| twine | ||
| tomlkit | ||
| -e . |
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
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
Oops, something went wrong.
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.