caerulea 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- caerulea-0.1.0/.github/workflows/ci.yml +148 -0
- caerulea-0.1.0/.github/workflows/publish.yml +26 -0
- caerulea-0.1.0/.github/workflows/release.yml +79 -0
- caerulea-0.1.0/.github/zizmor.yml +8 -0
- caerulea-0.1.0/.gitignore +13 -0
- caerulea-0.1.0/.pre-commit-config.yaml +24 -0
- caerulea-0.1.0/CHANGELOG.md +9 -0
- caerulea-0.1.0/LICENSE +27 -0
- caerulea-0.1.0/PKG-INFO +102 -0
- caerulea-0.1.0/README.md +59 -0
- caerulea-0.1.0/changes/.gitignore +1 -0
- caerulea-0.1.0/changes/template.md +31 -0
- caerulea-0.1.0/pyproject.toml +180 -0
- caerulea-0.1.0/setup.cfg +4 -0
- caerulea-0.1.0/src/caerulea/__init__.py +43 -0
- caerulea-0.1.0/src/caerulea/__main__.py +309 -0
- caerulea-0.1.0/src/caerulea/backends/__init__.py +32 -0
- caerulea-0.1.0/src/caerulea/backends/android.py +634 -0
- caerulea-0.1.0/src/caerulea/backends/android_proxies.py +88 -0
- caerulea-0.1.0/src/caerulea/backends/base.py +138 -0
- caerulea-0.1.0/src/caerulea/backends/bluez.py +778 -0
- caerulea-0.1.0/src/caerulea/backends/corebluetooth.py +605 -0
- caerulea-0.1.0/src/caerulea/backends/fake.py +326 -0
- caerulea-0.1.0/src/caerulea/backends/winrt.py +711 -0
- caerulea-0.1.0/src/caerulea/central.py +656 -0
- caerulea-0.1.0/src/caerulea/errors.py +42 -0
- caerulea-0.1.0/src/caerulea/model.py +108 -0
- caerulea-0.1.0/src/caerulea/uuids.py +95 -0
- caerulea-0.1.0/src/caerulea.egg-info/PKG-INFO +102 -0
- caerulea-0.1.0/src/caerulea.egg-info/SOURCES.txt +38 -0
- caerulea-0.1.0/src/caerulea.egg-info/dependency_links.txt +1 -0
- caerulea-0.1.0/src/caerulea.egg-info/entry_points.txt +2 -0
- caerulea-0.1.0/src/caerulea.egg-info/requires.txt +16 -0
- caerulea-0.1.0/src/caerulea.egg-info/scm_file_list.json +34 -0
- caerulea-0.1.0/src/caerulea.egg-info/scm_version.json +8 -0
- caerulea-0.1.0/src/caerulea.egg-info/top_level.txt +1 -0
- caerulea-0.1.0/tests/test_bluez.py +252 -0
- caerulea-0.1.0/tests/test_central.py +92 -0
- caerulea-0.1.0/tests/test_winrt.py +268 -0
- caerulea-0.1.0/tox.ini +55 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
workflow_call:
|
|
8
|
+
inputs:
|
|
9
|
+
attest-package:
|
|
10
|
+
description: "Create GitHub provenance attestation for the package."
|
|
11
|
+
default: "false"
|
|
12
|
+
type: string
|
|
13
|
+
outputs:
|
|
14
|
+
artifact-name:
|
|
15
|
+
description: "Name of the uploaded artifact; use for artifact retrieval."
|
|
16
|
+
value: ${{ jobs.package.outputs.artifact-name }}
|
|
17
|
+
|
|
18
|
+
# Cancel active CI runs for a PR before starting another run
|
|
19
|
+
concurrency:
|
|
20
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
21
|
+
cancel-in-progress: true
|
|
22
|
+
|
|
23
|
+
permissions:
|
|
24
|
+
contents: read
|
|
25
|
+
|
|
26
|
+
defaults:
|
|
27
|
+
run:
|
|
28
|
+
shell: bash
|
|
29
|
+
|
|
30
|
+
env:
|
|
31
|
+
FORCE_COLOR: "1"
|
|
32
|
+
|
|
33
|
+
jobs:
|
|
34
|
+
pre-commit:
|
|
35
|
+
name: Pre-commit checks
|
|
36
|
+
uses: beeware/.github/.github/workflows/pre-commit-run.yml@main
|
|
37
|
+
with:
|
|
38
|
+
pre-commit-source: "--group pre-commit"
|
|
39
|
+
|
|
40
|
+
towncrier:
|
|
41
|
+
name: Check towncrier
|
|
42
|
+
permissions:
|
|
43
|
+
contents: read
|
|
44
|
+
pull-requests: write
|
|
45
|
+
uses: beeware/.github/.github/workflows/towncrier-run.yml@main
|
|
46
|
+
with:
|
|
47
|
+
tox-source: "--group tox-uv"
|
|
48
|
+
|
|
49
|
+
package:
|
|
50
|
+
name: Package caerulea
|
|
51
|
+
permissions:
|
|
52
|
+
id-token: write
|
|
53
|
+
contents: read
|
|
54
|
+
attestations: write
|
|
55
|
+
uses: beeware/.github/.github/workflows/python-package-create.yml@main
|
|
56
|
+
with:
|
|
57
|
+
attest: ${{ inputs.attest-package }}
|
|
58
|
+
|
|
59
|
+
unit-tests:
|
|
60
|
+
name: Unit tests
|
|
61
|
+
needs: [ pre-commit, towncrier, package ]
|
|
62
|
+
runs-on: ${{ matrix.platform }}
|
|
63
|
+
strategy:
|
|
64
|
+
fail-fast: false
|
|
65
|
+
matrix:
|
|
66
|
+
platform: [ "macos-latest", "ubuntu-latest", "windows-latest" ]
|
|
67
|
+
# Python 3.16 isn't tested yet: it removes asyncio's event loop policies,
|
|
68
|
+
# which pytest-asyncio 1.x still uses (fixed in pytest-asyncio 2.0). Add it
|
|
69
|
+
# here (macOS and Linux only; winrt-runtime doesn't publish wheels for
|
|
70
|
+
# pre-release Pythons) once a stable pytest-asyncio 2.0 is out.
|
|
71
|
+
python-version: [ "3.11", "3.12", "3.13", "3.14", "3.15" ]
|
|
72
|
+
|
|
73
|
+
steps:
|
|
74
|
+
- name: Checkout
|
|
75
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
76
|
+
with:
|
|
77
|
+
persist-credentials: false
|
|
78
|
+
|
|
79
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
80
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
81
|
+
with:
|
|
82
|
+
python-version: ${{ matrix.python-version }}
|
|
83
|
+
allow-prereleases: true
|
|
84
|
+
|
|
85
|
+
- name: Get packages
|
|
86
|
+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
87
|
+
with:
|
|
88
|
+
name: ${{ needs.package.outputs.artifact-name }}
|
|
89
|
+
path: dist
|
|
90
|
+
|
|
91
|
+
- name: Install Tox
|
|
92
|
+
run: |
|
|
93
|
+
python -m pip install -U pip
|
|
94
|
+
python -m pip install --group tox-uv
|
|
95
|
+
|
|
96
|
+
- name: Test
|
|
97
|
+
id: test
|
|
98
|
+
timeout-minutes: 10
|
|
99
|
+
env:
|
|
100
|
+
COVERAGE_FILE: ".coverage.${{ matrix.platform }}.${{ matrix.python-version }}"
|
|
101
|
+
run: tox -e py-cov --installpkg dist/caerulea-*.whl
|
|
102
|
+
|
|
103
|
+
- name: Store coverage data
|
|
104
|
+
if: always() && contains(fromJSON('["success", "failure"]'), steps.test.outcome)
|
|
105
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
106
|
+
with:
|
|
107
|
+
name: coverage-data-${{ matrix.platform }}-${{ matrix.python-version }}
|
|
108
|
+
path: ".coverage.*"
|
|
109
|
+
if-no-files-found: error
|
|
110
|
+
include-hidden-files: true
|
|
111
|
+
|
|
112
|
+
coverage:
|
|
113
|
+
name: Project coverage
|
|
114
|
+
runs-on: ubuntu-latest
|
|
115
|
+
needs: unit-tests
|
|
116
|
+
if: always() && contains(fromJSON('["success", "failure"]'), needs.unit-tests.result)
|
|
117
|
+
steps:
|
|
118
|
+
- name: Checkout
|
|
119
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
120
|
+
with:
|
|
121
|
+
persist-credentials: false
|
|
122
|
+
|
|
123
|
+
- name: Set up Python
|
|
124
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
125
|
+
with:
|
|
126
|
+
# Use the oldest supported Python for coverage to avoid phantom branches
|
|
127
|
+
# https://github.com/nedbat/coveragepy/issues/1572#issuecomment-1522546425
|
|
128
|
+
python-version: "3.11"
|
|
129
|
+
|
|
130
|
+
- name: Install Tox
|
|
131
|
+
run: |
|
|
132
|
+
python -m pip install -U pip
|
|
133
|
+
python -m pip install --group tox-uv
|
|
134
|
+
|
|
135
|
+
- name: Retrieve coverage data
|
|
136
|
+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
137
|
+
with:
|
|
138
|
+
pattern: coverage-data-*
|
|
139
|
+
merge-multiple: true
|
|
140
|
+
|
|
141
|
+
- name: Project coverage report
|
|
142
|
+
run: tox -qe coverage-html
|
|
143
|
+
|
|
144
|
+
- name: Upload project coverage HTML report
|
|
145
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
146
|
+
with:
|
|
147
|
+
name: html-coverage-report-project
|
|
148
|
+
path: htmlcov
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: Upload Python Package
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: published
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
deploy:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
permissions:
|
|
11
|
+
# Needed to download the release's assets.
|
|
12
|
+
contents: read
|
|
13
|
+
# This permission is required for trusted publishing.
|
|
14
|
+
id-token: write
|
|
15
|
+
steps:
|
|
16
|
+
- uses: dsaltares/fetch-gh-release-asset@aa2ab1243d6e0d5b405b973c89fa4d06a2d0fff7 # 1.1.2
|
|
17
|
+
with:
|
|
18
|
+
version: tags/${{ github.event.release.tag_name }}
|
|
19
|
+
# This next line is *not* a bash filename expansion - it's a regex. It
|
|
20
|
+
# matches the sdist and wheel, but not the "Source code" zip and tarball.
|
|
21
|
+
file: caerulea.*
|
|
22
|
+
regex: true
|
|
23
|
+
target: dist/
|
|
24
|
+
|
|
25
|
+
- name: Publish release to production PyPI
|
|
26
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
name: Create Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
ci:
|
|
13
|
+
name: CI
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
id-token: write
|
|
17
|
+
attestations: write
|
|
18
|
+
pull-requests: write
|
|
19
|
+
uses: $/.github/workflows/ci.yml
|
|
20
|
+
with:
|
|
21
|
+
attest-package: "true"
|
|
22
|
+
|
|
23
|
+
release:
|
|
24
|
+
name: Create Release
|
|
25
|
+
needs: [ ci ]
|
|
26
|
+
runs-on: ubuntu-latest
|
|
27
|
+
permissions:
|
|
28
|
+
contents: write
|
|
29
|
+
steps:
|
|
30
|
+
- name: Set up Python
|
|
31
|
+
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
32
|
+
with:
|
|
33
|
+
python-version: "3.x"
|
|
34
|
+
|
|
35
|
+
- name: Get packages
|
|
36
|
+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
37
|
+
with:
|
|
38
|
+
name: ${{ needs.ci.outputs.artifact-name }}
|
|
39
|
+
path: dist
|
|
40
|
+
|
|
41
|
+
- name: Install packages
|
|
42
|
+
run: python -m pip install dist/caerulea-*.whl
|
|
43
|
+
|
|
44
|
+
- name: Check version number
|
|
45
|
+
# Check that the setuptools_scm-generated version number is still the same when
|
|
46
|
+
# installed from a wheel with setuptools_scm not present.
|
|
47
|
+
run: |
|
|
48
|
+
set -x
|
|
49
|
+
test "$(python -c "import caerulea; print(caerulea.__version__)")" = "${GITHUB_REF_NAME#v}"
|
|
50
|
+
|
|
51
|
+
- name: Create release
|
|
52
|
+
env:
|
|
53
|
+
GH_TOKEN: ${{ github.token }}
|
|
54
|
+
GH_REPO: ${{ github.repository }}
|
|
55
|
+
run: |
|
|
56
|
+
gh release create "${GITHUB_REF_NAME}" \
|
|
57
|
+
--title "${GITHUB_REF_NAME#v}" \
|
|
58
|
+
--draft \
|
|
59
|
+
--verify-tag \
|
|
60
|
+
dist/*
|
|
61
|
+
|
|
62
|
+
test-publish:
|
|
63
|
+
name: Publish test package
|
|
64
|
+
needs: [ ci, release ]
|
|
65
|
+
runs-on: ubuntu-latest
|
|
66
|
+
permissions:
|
|
67
|
+
# This permission is required for trusted publishing.
|
|
68
|
+
id-token: write
|
|
69
|
+
steps:
|
|
70
|
+
- name: Get packages
|
|
71
|
+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
72
|
+
with:
|
|
73
|
+
name: ${{ needs.ci.outputs.artifact-name }}
|
|
74
|
+
path: dist
|
|
75
|
+
|
|
76
|
+
- name: Publish release to Test PyPI
|
|
77
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
78
|
+
with:
|
|
79
|
+
repository-url: https://test.pypi.org/legacy/
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v6.0.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: check-toml
|
|
6
|
+
- id: check-yaml
|
|
7
|
+
- id: check-case-conflict
|
|
8
|
+
- id: check-docstring-first
|
|
9
|
+
- id: end-of-file-fixer
|
|
10
|
+
- id: trailing-whitespace
|
|
11
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
12
|
+
rev: v0.17.5
|
|
13
|
+
hooks:
|
|
14
|
+
- id: ruff-format
|
|
15
|
+
- id: ruff-check
|
|
16
|
+
args: [ --fix ]
|
|
17
|
+
- repo: https://github.com/codespell-project/codespell
|
|
18
|
+
rev: v2.4.3
|
|
19
|
+
hooks:
|
|
20
|
+
- id: codespell
|
|
21
|
+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
|
|
22
|
+
rev: v1.32.0
|
|
23
|
+
hooks:
|
|
24
|
+
- id: zizmor
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Release history
|
|
2
|
+
|
|
3
|
+
<!-- towncrier release notes start -->
|
|
4
|
+
|
|
5
|
+
## 0.1.0 (2026-11-28)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* Initial release on PyPI, with backends for Android, iOS and macOS (CoreBluetooth), Linux (BlueZ), and Windows (WinRT). ([#1](https://github.com/kattni/caerulea/issues/1))
|
caerulea-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Copyright (c) 2026 Kattni.
|
|
2
|
+
All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
5
|
+
are permitted provided that the following conditions are met:
|
|
6
|
+
|
|
7
|
+
1. Redistributions of source code must retain the above copyright notice,
|
|
8
|
+
this list of conditions and the following disclaimer.
|
|
9
|
+
|
|
10
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
11
|
+
notice, this list of conditions and the following disclaimer in the
|
|
12
|
+
documentation and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
3. Neither the name of caerulea nor the names of its contributors may
|
|
15
|
+
be used to endorse or promote products derived from this software without
|
|
16
|
+
specific prior written permission.
|
|
17
|
+
|
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
19
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
20
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
21
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
22
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
23
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
24
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
25
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
26
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
27
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
caerulea-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: caerulea
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: An asyncio Bluetooth Low Energy central library with backends for every platform, Android included.
|
|
5
|
+
Author: Kattni
|
|
6
|
+
License-Expression: BSD-3-Clause
|
|
7
|
+
Project-URL: Homepage, https://github.com/kattni/caerulea
|
|
8
|
+
Project-URL: Tracker, https://github.com/kattni/caerulea/issues
|
|
9
|
+
Project-URL: Source, https://github.com/kattni/caerulea
|
|
10
|
+
Project-URL: Changelog, https://github.com/kattni/caerulea/blob/main/CHANGELOG.md
|
|
11
|
+
Keywords: bluetooth,ble,bluetooth low energy,asyncio,gatt,android,ios,macos,linux,windows
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Framework :: AsyncIO
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Operating System :: Android
|
|
16
|
+
Classifier: Operating System :: iOS
|
|
17
|
+
Classifier: Operating System :: MacOS
|
|
18
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
19
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
26
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
27
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
28
|
+
Classifier: Topic :: System :: Hardware
|
|
29
|
+
Requires-Python: >=3.11
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
License-File: LICENSE
|
|
32
|
+
Requires-Dist: winrt-runtime>=4.1; sys_platform == "win32"
|
|
33
|
+
Requires-Dist: winrt-Windows.Devices.Bluetooth>=4!10.0.28000.2957; sys_platform == "win32"
|
|
34
|
+
Requires-Dist: winrt-Windows.Devices.Bluetooth.Advertisement>=4!10.0.28000.2957; sys_platform == "win32"
|
|
35
|
+
Requires-Dist: winrt-Windows.Devices.Bluetooth.GenericAttributeProfile>=4!10.0.28000.2957; sys_platform == "win32"
|
|
36
|
+
Requires-Dist: winrt-Windows.Devices.Radios>=4!10.0.28000.2957; sys_platform == "win32"
|
|
37
|
+
Requires-Dist: winrt-Windows.Foundation>=4!10.0.28000.2957; sys_platform == "win32"
|
|
38
|
+
Requires-Dist: winrt-Windows.Foundation.Collections>=4!10.0.28000.2957; sys_platform == "win32"
|
|
39
|
+
Requires-Dist: winrt-Windows.Storage.Streams>=4!10.0.28000.2957; sys_platform == "win32"
|
|
40
|
+
Requires-Dist: rubicon-objc>=0.5; sys_platform == "darwin" or sys_platform == "ios"
|
|
41
|
+
Requires-Dist: dbus-fast>=5; sys_platform == "linux"
|
|
42
|
+
Dynamic: license-file
|
|
43
|
+
|
|
44
|
+
# caerulea
|
|
45
|
+
|
|
46
|
+
An asyncio Bluetooth Low Energy central library. Work in progress.
|
|
47
|
+
|
|
48
|
+
caerulea has backends for:
|
|
49
|
+
|
|
50
|
+
- Android
|
|
51
|
+
- iOS and macOS (CoreBluetooth)
|
|
52
|
+
- Linux (BlueZ)
|
|
53
|
+
- Windows (WinRT)
|
|
54
|
+
|
|
55
|
+
## Installation
|
|
56
|
+
|
|
57
|
+
```console
|
|
58
|
+
$ python -m pip install caerulea
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
caerulea requires Python 3.11 or newer.
|
|
62
|
+
|
|
63
|
+
## Development
|
|
64
|
+
|
|
65
|
+
Create a virtual environment, then install caerulea in editable mode with its
|
|
66
|
+
development tools:
|
|
67
|
+
|
|
68
|
+
```console
|
|
69
|
+
$ python -m pip install -U pip
|
|
70
|
+
$ python -m pip install --group dev -e .
|
|
71
|
+
$ pre-commit install
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Run the test suite with tox:
|
|
75
|
+
|
|
76
|
+
```console
|
|
77
|
+
$ tox -m test
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Every pull request needs a change note in the `changes` directory, named
|
|
81
|
+
`<PR number>.<type>.md`, where `<type>` is one of `feature`, `bugfix`,
|
|
82
|
+
`removal`, `doc` or `misc`.
|
|
83
|
+
|
|
84
|
+
### Releasing
|
|
85
|
+
|
|
86
|
+
1. Compile the change notes into `CHANGELOG.md`, and commit the result:
|
|
87
|
+
|
|
88
|
+
```console
|
|
89
|
+
$ tox -e towncrier -- build --version <version>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
2. Tag the release, and push the tag:
|
|
93
|
+
|
|
94
|
+
```console
|
|
95
|
+
$ git tag v<version>
|
|
96
|
+
$ git push origin v<version>
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
CI builds and tests the package, uploads it to Test PyPI, and creates a draft
|
|
100
|
+
GitHub release.
|
|
101
|
+
|
|
102
|
+
3. Publish the draft release on GitHub. This uploads the package to PyPI.
|
caerulea-0.1.0/README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# caerulea
|
|
2
|
+
|
|
3
|
+
An asyncio Bluetooth Low Energy central library. Work in progress.
|
|
4
|
+
|
|
5
|
+
caerulea has backends for:
|
|
6
|
+
|
|
7
|
+
- Android
|
|
8
|
+
- iOS and macOS (CoreBluetooth)
|
|
9
|
+
- Linux (BlueZ)
|
|
10
|
+
- Windows (WinRT)
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
```console
|
|
15
|
+
$ python -m pip install caerulea
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
caerulea requires Python 3.11 or newer.
|
|
19
|
+
|
|
20
|
+
## Development
|
|
21
|
+
|
|
22
|
+
Create a virtual environment, then install caerulea in editable mode with its
|
|
23
|
+
development tools:
|
|
24
|
+
|
|
25
|
+
```console
|
|
26
|
+
$ python -m pip install -U pip
|
|
27
|
+
$ python -m pip install --group dev -e .
|
|
28
|
+
$ pre-commit install
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Run the test suite with tox:
|
|
32
|
+
|
|
33
|
+
```console
|
|
34
|
+
$ tox -m test
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Every pull request needs a change note in the `changes` directory, named
|
|
38
|
+
`<PR number>.<type>.md`, where `<type>` is one of `feature`, `bugfix`,
|
|
39
|
+
`removal`, `doc` or `misc`.
|
|
40
|
+
|
|
41
|
+
### Releasing
|
|
42
|
+
|
|
43
|
+
1. Compile the change notes into `CHANGELOG.md`, and commit the result:
|
|
44
|
+
|
|
45
|
+
```console
|
|
46
|
+
$ tox -e towncrier -- build --version <version>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
2. Tag the release, and push the tag:
|
|
50
|
+
|
|
51
|
+
```console
|
|
52
|
+
$ git tag v<version>
|
|
53
|
+
$ git push origin v<version>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
CI builds and tests the package, uploads it to Test PyPI, and creates a draft
|
|
57
|
+
GitHub release.
|
|
58
|
+
|
|
59
|
+
3. Publish the draft release on GitHub. This uploads the package to PyPI.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!.gitignore
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{% for section, _ in sections.items() %}
|
|
2
|
+
{% if section %}
|
|
3
|
+
{{section}}
|
|
4
|
+
|
|
5
|
+
{% endif %}
|
|
6
|
+
|
|
7
|
+
{% if sections[section] %}
|
|
8
|
+
{% for category, val in definitions.items() if category in sections[section] %}
|
|
9
|
+
### {{ definitions[category]['name'] }}
|
|
10
|
+
|
|
11
|
+
{% if definitions[category]['showcontent'] %}
|
|
12
|
+
{% for text, values in sections[section][category].items() %}
|
|
13
|
+
* {{ text }} ({{values|join(', ') }})
|
|
14
|
+
{% endfor %}
|
|
15
|
+
|
|
16
|
+
{% else %}
|
|
17
|
+
* {{ sections[section][category]['']|join(', ') }}
|
|
18
|
+
|
|
19
|
+
{% endif %}
|
|
20
|
+
{% if sections[section][category]|length == 0 %}
|
|
21
|
+
No significant changes.
|
|
22
|
+
|
|
23
|
+
{% else %}
|
|
24
|
+
{% endif %}
|
|
25
|
+
|
|
26
|
+
{% endfor %}
|
|
27
|
+
{% else %}
|
|
28
|
+
No significant changes.
|
|
29
|
+
|
|
30
|
+
{% endif %}
|
|
31
|
+
{% endfor %}
|