Skip to content

Commit 6bad186

Browse files
merging in updates from softlayer-python
2 parents 0ac0bd8 + dab2c05 commit 6bad186

File tree

415 files changed

+10174
-3696
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

415 files changed

+10174
-3696
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939

4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@v4
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v1
46+
uses: github/codeql-action/init@v2
4747
with:
4848
languages: ${{ matrix.language }}
4949
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -54,7 +54,7 @@ jobs:
5454
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5555
# If this step fails, then you should remove it and run the build manually (see below)
5656
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v1
57+
uses: github/codeql-action/autobuild@v2
5858

5959
# ℹ️ Command-line programs to run using the OS shell.
6060
# 📚 https://git.io/JvXDl
@@ -68,4 +68,4 @@ jobs:
6868
# make release
6969

7070
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v1
71+
uses: github/codeql-action/analyze@v2

.github/workflows/documentation.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: [3.8]
13+
python-version: [3.11]
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v1
18+
uses: actions/setup-python@v4
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Install dependencies

.github/workflows/release.yml

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,27 @@
1-
name: Release Snapcraft and PyPi
1+
# https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
2+
# Trusted Publisher stuff: https://docs.pypi.org/trusted-publishers/adding-a-publisher/
3+
4+
name: Release to PyPi
25

36
on:
47
release:
58
types: [published]
69

710
jobs:
8-
snap-release:
9-
runs-on: ubuntu-18.04
10-
strategy:
11-
matrix:
12-
arch: ['armhf','amd64','arm64','ppc64el','s390x']
13-
steps:
14-
- name: Install Snapcraft
15-
uses: samuelmeuli/[email protected]
16-
with:
17-
snapcraft_token: ${{ secrets.snapcraft_token }}
18-
- name: Push to stable
19-
run: |
20-
VERSION=`snapcraft list-revisions slcli --arch ${{ matrix.arch }} | grep "edge\*" | awk '{print $1}'`
21-
echo Publishing $VERSION on ${{ matrix.arch }}
22-
snapcraft release slcli $VERSION stable
2311
build-n-publish:
2412
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
2513
runs-on: ubuntu-latest
14+
environment:
15+
name: pypi
16+
url: https://pypi.org/project/SoftLayer/
17+
permissions:
18+
id-token: write
2619
steps:
27-
- uses: actions/checkout@master
28-
- name: Set up Python 3.8
29-
uses: actions/setup-python@v2
20+
- uses: actions/checkout@v4
21+
- name: Set up Python 3.11
22+
uses: actions/setup-python@v4
3023
with:
31-
python-version: 3.8
24+
python-version: 3.11
3225
- name: Install pypa/build
3326
run: >-
3427
python -m
@@ -43,10 +36,6 @@ jobs:
4336
--wheel
4437
--outdir dist/
4538
.
46-
- name: Publish 📦 to Test PyPI
39+
- name: 📦 to PyPI
4740
uses: pypa/gh-action-pypi-publish@release/v1
48-
with:
49-
user: __token__
50-
password: ${{ secrets.CGALLO_PYPI }}
51-
repository_url: https://upload.pypi.org/legacy/
5241

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
# https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
2+
# Trusted Publisher stuff: https://docs.pypi.org/trusted-publishers/adding-a-publisher/
23

3-
name: Publish 📦 to TestPyPI
4+
name: TEST Publish 📦 to TestPyPI
45

56
on:
67
push:
7-
branches: [test-pypi ]
8+
branches: [test-pypi]
89

910
jobs:
1011
build-n-publish:
11-
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
12+
name: TEST Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
1213
runs-on: ubuntu-latest
14+
environment:
15+
name: pypi-test
16+
url: https://test.pypi.org/project/SoftLayer/
17+
permissions:
18+
id-token: write
1319
steps:
1420
- uses: actions/checkout@master
15-
- name: Set up Python 3.8
16-
uses: actions/setup-python@v2
21+
- name: Set up Python 3.11
22+
uses: actions/setup-python@v4
1723
with:
18-
python-version: 3.8
24+
python-version: 3.11
1925
- name: Install pypa/build
2026
run: >-
2127
python -m
@@ -31,7 +37,6 @@ jobs:
3137
--outdir dist/
3238
.
3339
- name: Publish 📦 to Test PyPI
34-
uses: pypa/gh-action-pypi-publish@master
40+
uses: pypa/gh-action-pypi-publish@release/v1
3541
with:
36-
password: ${{ secrets.CGALLO_TEST_PYPI }}
37-
repository_url: https://test.pypi.org/legacy/
42+
repository-url: https://test.pypi.org/legacy/

.github/workflows/tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
python-version: [3.7,3.8,3.9,'3.10',3.11]
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v1
18+
uses: actions/setup-python@v4
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Install dependencies
@@ -27,9 +27,9 @@ jobs:
2727
coverage:
2828
runs-on: ubuntu-latest
2929
steps:
30-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v4
3131
- name: Set up Python
32-
uses: actions/setup-python@v1
32+
uses: actions/setup-python@v4
3333
with:
3434
python-version: 3.9
3535
- name: Install dependencies
@@ -41,9 +41,9 @@ jobs:
4141
analysis:
4242
runs-on: ubuntu-latest
4343
steps:
44-
- uses: actions/checkout@v2
44+
- uses: actions/checkout@v4
4545
- name: Set up Python
46-
uses: actions/setup-python@v1
46+
uses: actions/setup-python@v4
4747
with:
4848
python-version: 3.9
4949
- name: Install dependencies

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ dist/*
1515
.cache
1616
.idea
1717
.pytest_cache/*
18-
slcli

.pre-commit-config.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This is an example configuration to enable detect-secrets in the pre-commit hook.
2+
# Add this file to the root folder of your repository.
3+
#
4+
# Read pre-commit hook framework https://pre-commit.com/ for more details about the structure of config yaml file and how git pre-commit would invoke each hook.
5+
#
6+
# This line indicates we will use the hook from ibm/detect-secrets to run scan during committing phase.
7+
repos:
8+
- repo: https://github.com/ibm/detect-secrets
9+
# If you desire to use a specific version of detect-secrets, you can replace `master` with other git revisions such as branch, tag or commit sha.
10+
# You are encouraged to use static refs such as tags, instead of branch name
11+
#
12+
# Running "pre-commit autoupdate" automatically updates rev to latest tag
13+
rev: 0.13.1+ibm.61.dss
14+
hooks:
15+
- id: detect-secrets # pragma: whitelist secret
16+
# Add options for detect-secrets-hook binary. You can run `detect-secrets-hook --help` to list out all possible options.
17+
# You may also run `pre-commit run detect-secrets` to preview the scan result.
18+
# when "--baseline" without "--use-all-plugins", pre-commit scan with just plugins in baseline file
19+
# when "--baseline" with "--use-all-plugins", pre-commit scan with all available plugins
20+
# add "--fail-on-unaudited" to fail pre-commit for unaudited potential secrets
21+
args: [--baseline, .secrets.baseline, --use-all-plugins]

.readthedocs.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
# Required
66
version: 2
77

8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.10"
12+
813
# Build documentation in the docs/ directory with Sphinx
914
sphinx:
1015
builder: htmldir
@@ -15,10 +20,11 @@ sphinx:
1520
# configuration: mkdocs.yml
1621

1722
# Optionally build your docs in additional formats such as PDF and ePub
18-
formats: all
23+
# formats: all
1924

2025
# Optionally set the version of Python and requirements required to build your docs
2126
python:
22-
version: 3.7
2327
install:
2428
- requirements: docs/requirements.txt
29+
- method: pip
30+
path: .

0 commit comments

Comments
 (0)