Skip to content

Commit 1a0a17e

Browse files
authored
Merge pull request #234 from WebexCommunity/dev/v2/cmlccie
New WebexPythonSDK v2!
2 parents 9c1ca18 + 95f6157 commit 1a0a17e

File tree

157 files changed

+3002
-6511
lines changed

Some content is hidden

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

157 files changed

+3002
-6511
lines changed

.flake8

Lines changed: 0 additions & 24 deletions
This file was deleted.

.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/build-and-test.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ jobs:
2424
- name: Get Webex Token
2525
id: webex_token
2626
run: |
27-
WEBEX_TEAMS_ACCESS_TOKEN=$(curl -s ${{ secrets.WEBEX_TOKEN_KEEPER_URL }} | jq -r .access_token)
28-
echo "WEBEX_TEAMS_ACCESS_TOKEN=$WEBEX_TEAMS_ACCESS_TOKEN" >> "$GITHUB_OUTPUT"
29-
echo "::add-mask::$WEBEX_TEAMS_ACCESS_TOKEN"
27+
WEBEX_ACCESS_TOKEN=$(curl -s ${{ secrets.WEBEX_TOKEN_KEEPER_URL }} | jq -r .access_token)
28+
echo "WEBEX_ACCESS_TOKEN=$WEBEX_ACCESS_TOKEN" >> "$GITHUB_OUTPUT"
29+
echo "::add-mask::$WEBEX_ACCESS_TOKEN"
3030
- name: Build and Test
3131
run: script/ci
3232
env:
33-
WEBEX_TEAMS_ACCESS_TOKEN: ${{ steps.webex_token.outputs.WEBEX_TEAMS_ACCESS_TOKEN }}
34-
WEBEX_TEAMS_TEST_DOMAIN: ${{ vars.WEBEX_TEAMS_TEST_DOMAIN }}
35-
WEBEX_TEAMS_TEST_ID_START: ${{ vars.WEBEX_TEAMS_TEST_ID_START }}
36-
WEBEX_TEAMS_TEST_FILE_URL: ${{ vars.WEBEX_TEAMS_TEST_FILE_URL }}
37-
WEBEX_TEAMS_GUEST_ISSUER_ID: ${{ secrets.WEBEX_TEAMS_GUEST_ISSUER_ID }}
38-
WEBEX_TEAMS_GUEST_ISSUER_SECRET: ${{ secrets.WEBEX_TEAMS_GUEST_ISSUER_SECRET }}
33+
WEBEX_ACCESS_TOKEN: ${{ steps.webex_token.outputs.WEBEX_ACCESS_TOKEN }}
34+
WEBEX_TEST_DOMAIN: ${{ vars.WEBEX_TEST_DOMAIN }}
35+
WEBEX_TEST_ID_START: ${{ vars.WEBEX_TEST_ID_START }}
36+
WEBEX_TEST_FILE_URL: ${{ vars.WEBEX_TEST_FILE_URL }}
37+
WEBEX_GUEST_ISSUER_ID: ${{ secrets.WEBEX_GUEST_ISSUER_ID }}
38+
WEBEX_GUEST_ISSUER_SECRET: ${{ secrets.WEBEX_GUEST_ISSUER_SECRET }}
3939
- name: Upload Distribution Files
4040
uses: actions/upload-artifact@v4
4141
with:

.ruff.toml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"recommendations": [
3+
"charliermarsh.ruff",
4+
"github.vscode-github-actions",
5+
"github.vscode-pull-request-github",
6+
"ms-python.debugpy",
7+
"ms-python.python",
8+
"ms-python.vscode-pylance",
9+
"streetsidesoftware.code-spell-checker"
10+
]
11+
}

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"python.testing.unittestEnabled": false,
3+
"python.testing.pytestEnabled": true,
4+
"python.testing.pytestArgs": ["-s", "-m", "not slow and not manual"],
5+
"cSpell.words": ["ciscosparkapi", "webexpythonsdk", "webexteamssdk"]
6+
}

MANIFEST.in

Lines changed: 0 additions & 4 deletions
This file was deleted.

Makefile

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
.PHONY: clean setup update format lint build tests tests-manual tests-slow tests-all docs
2+
3+
clean:
4+
find . -name '*.pyc' -exec rm -f {} +
5+
find . -name '*.pyo' -exec rm -f {} +
6+
find . -name '*~' -exec rm -f {} +
7+
find . -name '__pycache__' -exec rm -fr {} +
8+
rm -rf build/
9+
rm -rf dist/
10+
rm -rf .cache/
11+
rm -f .coverage
12+
rm -rf .pytest_cache/
13+
rm -rf docs/_build/*
14+
15+
setup:
16+
-poetry env remove --all
17+
poetry install
18+
19+
update:
20+
poetry update
21+
22+
format:
23+
poetry run ruff format .
24+
25+
lint:
26+
poetry run ruff check .
27+
28+
build:
29+
poetry build
30+
31+
tests:
32+
poetry run pytest -s -m "not slow and not manual"
33+
34+
tests-manual:
35+
poetry run pytest -s -m "manual"
36+
37+
tests-slow:
38+
poetry run pytest -s -m "slow and not manual"
39+
40+
tests-all:
41+
poetry run pytest
42+
43+
docs:
44+
$(MAKE) -C docs html

Pipfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)