Skip to content

Commit

Permalink
Update Skewer
Browse files Browse the repository at this point in the history
  • Loading branch information
ssorj committed Jan 13, 2024
1 parent 6873d4a commit c7f492a
Show file tree
Hide file tree
Showing 11 changed files with 140 additions and 21 deletions.
1 change: 0 additions & 1 deletion .plano.py

This file was deleted.

20 changes: 20 additions & 0 deletions .plano.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

from skewer.planocommands import *
18 changes: 10 additions & 8 deletions external/skewer-main/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,28 @@ use the [Skupper example template][template] as a starting point.

[template]: https://github.com/skupperproject/skupper-example-template

Add the Skewer code as a subdirectory in your example project:
Change directory to the root of your example project:

cd <project-dir>/

Add the Skewer code as a subdirectory in your example project:

mkdir -p external
curl -sfL https://github.com/skupperproject/skewer/archive/main.tar.gz | tar -C external -xz

Symlink the Skewer library into your `python` directory:
Symlink the Skewer and Plano libraries into your `python` directory:

mkdir -p python
ln -s ../external/skewer-main/python/skewer python/skewer
ln -s ../external/skewer-main/python/plano python/plano

Symlink the `plano` command into the root of your project. Symlink
the standard `.plano.py` and `.gitignore` files as well.
Copy the `plano` command into the root of your project:

ln -s external/skewer-main/plano
ln -s external/skewer-main/config/.plano.py
cp external/skewer-main/plano plano

Copy the standard `.gitignore` and GitHub Actions workflow file into
your project:
Copy the standard config files and workflow file into your project:

cp external/skewer-main/config/.plano.py .plano.py
cp external/skewer-main/config/.gitignore .gitignore

mkdir -p .github/workflows
Expand Down
5 changes: 1 addition & 4 deletions external/skewer-main/external/plano-main/bin/plano
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@
# under the License.
#

import os
import sys

if os.path.islink(__file__):
repo_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
sys.path.insert(0, os.path.join(repo_dir, "src"))
sys.path.insert(0, "python")

from plano import PlanoCommand

Expand Down
5 changes: 1 addition & 4 deletions external/skewer-main/external/plano-main/bin/plano-test
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@
# under the License.
#

import os
import sys

if os.path.islink(__file__):
repo_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
sys.path.insert(0, os.path.join(repo_dir, "src"))
sys.path.insert(0, "python")

from plano import PlanoTestCommand

Expand Down
1 change: 0 additions & 1 deletion external/skewer-main/plano

This file was deleted.

28 changes: 28 additions & 0 deletions external/skewer-main/plano
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/python3
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

import sys

sys.path.insert(0, "python")

from plano import PlanoCommand

if __name__ == "__main__":
PlanoCommand().main()
2 changes: 2 additions & 0 deletions external/skewer-main/python/skewer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ def run_step(skewer_data, step_data, check=True):
await_console_ok()

def pause_for_demo(skewer_data):
notice("Pausing for demo time")

sites = list(get_sites(skewer_data))
frontend_url = None

Expand Down
1 change: 0 additions & 1 deletion external/skewer-main/test-example/.plano.py

This file was deleted.

20 changes: 20 additions & 0 deletions external/skewer-main/test-example/.plano.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

from skewer.planocommands import *
1 change: 0 additions & 1 deletion external/skewer-main/test-example/plano

This file was deleted.

28 changes: 28 additions & 0 deletions external/skewer-main/test-example/plano
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/python3
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

import sys

sys.path.insert(0, "python")

from plano import PlanoCommand

if __name__ == "__main__":
PlanoCommand().main()
1 change: 1 addition & 0 deletions external/skewer-main/test-example/python/plano
1 change: 0 additions & 1 deletion plano

This file was deleted.

28 changes: 28 additions & 0 deletions plano
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/python3
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

import sys

sys.path.insert(0, "python")

from plano import PlanoCommand

if __name__ == "__main__":
PlanoCommand().main()
1 change: 1 addition & 0 deletions python/plano

0 comments on commit c7f492a

Please sign in to comment.