Skip to content

Commit 6c3f1df

Browse files
authored
Merge branch 'async' into tapo-500
2 parents bd4cad0 + 487f74f commit 6c3f1df

File tree

6 files changed

+112
-19
lines changed

6 files changed

+112
-19
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "pip" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/workflows/ci.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [async]
7+
8+
jobs:
9+
coverage:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
cache: "pip"
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install -r requirements_dev.txt .
27+
- name: Pre-commit
28+
uses: pre-commit/[email protected]
29+
- name: Tests
30+
run: pytest --cov=onvif --cov-report=term-missing --cov-report=xml tests
31+
- name: Upload coverage to Codecov
32+
uses: codecov/[email protected]
33+
with:
34+
token: ${{ secrets.CODECOV_TOKEN }} # required

.github/workflows/python-publish.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# This workflows will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
name: Upload Python Package
4+
5+
on:
6+
release:
7+
types: [created]
8+
9+
jobs:
10+
build:
11+
name: Build distribution 📦
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.x"
20+
- name: Install pypa/build
21+
run: >-
22+
python3 -m
23+
pip install
24+
build
25+
--user
26+
- name: Build a binary wheel and a source tarball
27+
run: python3 -m build
28+
- name: Store the distribution packages
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: python-package-distributions
32+
path: dist/
33+
34+
deploy:
35+
permissions:
36+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
37+
runs-on: ubuntu-latest
38+
needs:
39+
- build
40+
name: >-
41+
Publish Python 🐍 distribution 📦 to PyPI
42+
environment:
43+
name: pypi
44+
url: https://pypi.org/p/onvif-zeep-async
45+
46+
steps:
47+
- name: Download all the dists
48+
uses: actions/download-artifact@v4
49+
with:
50+
name: python-package-distributions
51+
path: dist/
52+
- name: Publish package distributions to PyPI
53+
uses: pypa/gh-action-pypi-publish@release/v1

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
33
exclude: "CHANGELOG.md|.copier-answers.yml|.all-contributorsrc"
4-
default_stages: [pre-commit]
4+
default_stages: [commit]
55

66
ci:
77
autofix_commit_msg: "chore(pre-commit.ci): auto fixes"

requirements.txt

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,4 @@
11
# Package
22
ciso8601>=2.1.3
3-
httpx>=0.19.0,<1.0.0
4-
zeep[async]>=4.2.1,<5.0.0
5-
6-
# Dev
7-
aiohttp
8-
pytest
9-
pytest-cov
10-
pylint
11-
12-
# pre-commit
13-
pre-commit==2.7.1
14-
pyupgrade==2.7.2
15-
black==20.8b1
16-
flake8==3.8.3
17-
# flake8-docstrings==1.5.0
18-
pydocstyle==5.1.1
19-
bandit==1.6.2
20-
isort==5.5.3
3+
httpx==0.28.0
4+
zeep[async]==4.3.1

requirements_dev.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Package
2+
-r requirements.txt
3+
4+
# Dev
5+
pytest
6+
pytest-cov
7+
pytest-asyncio
8+
pylint
9+
10+
# pre-commit
11+
pre-commit==2.7.1

0 commit comments

Comments
 (0)