Skip to content
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

Snap core24 upgrade #2185

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/test-snap-can-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Snap Builds

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v2

- uses: snapcore/action-build@v1
id: build

- uses: diddlesnaps/snapcraft-review-action@v1
with:
snap: ${{ steps.build.outputs.snap }}
isClassic: 'false'
# Plugs and Slots declarations to override default denial (requires store assertion to publish)
# plugs: ./plug-declaration.json
# slots: ./slot-declaration.json
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ SoftLayer API Python Client
:target: https://coveralls.io/github/softlayer/softlayer-python?branch=master
.. image:: https://snapcraft.io//slcli/badge.svg
:target: https://snapcraft.io/slcli

.. image:: https://https://github.com/softlayer/softlayer-python/workflows/Snap%20Builds/badge.svg
:target: https://github.com/softlayer/softlayer-python/actions?query=workflow:"Snap+Builds"

This library provides a simple Python client to interact with `SoftLayer's
XML-RPC API <https://softlayer.github.io/reference/softlayerapi>`_.
Expand Down
Binary file added snap/local/slcli.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 26 additions & 5 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,32 @@ description: |
SLCLI documentation can be found here: https://softlayer-python.readthedocs.io/en/latest/

license: MIT

base: core22
website: https://www.ibm.com/cloud
source-code: https://github.com/softlayer/softlayer-python
issues: https://github.com/softlayer/softlayer-python/issues
contact: https://github.com/softlayer/softlayer-python
icon: snap/local/slcli.png
base: core24
grade: stable
confinement: strict

platforms:
amd64:
build-on: [amd64]
build-for: [amd64]
arm64:
build-on: [arm64]
build-for: [arm64]
armhf:
build-on: [armhf]
build-for: [armhf]
ppc64el:
build-on: [ppc64el]
build-for: [ppc64el]
s390x:
build-on: [s390x]
build-for: [s390x]

apps:
slcli:
command: bin/slcli
Expand All @@ -25,10 +46,10 @@ parts:
slcli:
source: https://github.com/softlayer/softlayer-python
source-type: git
plugin: python
plugin: python
override-pull: |
snapcraftctl pull
snapcraftctl set-version "$(git describe --tags | sed 's/^v//')"
craftctl default
craftctl set version="$(git describe --tags | sed 's/^v//')"

build-packages:
- python3
Expand Down
Loading