cap-server-api 1.0.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.
- cap_server_api-1.0.0/.github/workflows/build.yml +37 -0
- cap_server_api-1.0.0/.github/workflows/release_gh.yml +38 -0
- cap_server_api-1.0.0/.github/workflows/release_pypi.yml +34 -0
- cap_server_api-1.0.0/.gitignore +11 -0
- cap_server_api-1.0.0/.pre-commit-config.yaml +21 -0
- cap_server_api-1.0.0/.readthedocs.yaml +22 -0
- cap_server_api-1.0.0/LICENSE +674 -0
- cap_server_api-1.0.0/LICENSES/GPL-3.0-or-later.txt +674 -0
- cap_server_api-1.0.0/PKG-INFO +88 -0
- cap_server_api-1.0.0/README.rst +55 -0
- cap_server_api-1.0.0/README.rst.license +3 -0
- cap_server_api-1.0.0/cap_server_api/__init__.py +142 -0
- cap_server_api-1.0.0/cap_server_api/__version__.py +10 -0
- cap_server_api-1.0.0/cap_server_api.egg-info/PKG-INFO +88 -0
- cap_server_api-1.0.0/cap_server_api.egg-info/SOURCES.txt +31 -0
- cap_server_api-1.0.0/cap_server_api.egg-info/dependency_links.txt +1 -0
- cap_server_api-1.0.0/cap_server_api.egg-info/requires.txt +2 -0
- cap_server_api-1.0.0/cap_server_api.egg-info/top_level.txt +1 -0
- cap_server_api-1.0.0/docs/api.rst +5 -0
- cap_server_api-1.0.0/docs/api.rst.license +3 -0
- cap_server_api-1.0.0/docs/conf.py +161 -0
- cap_server_api-1.0.0/docs/examples.rst +8 -0
- cap_server_api-1.0.0/docs/examples.rst.license +3 -0
- cap_server_api-1.0.0/docs/index.rst +34 -0
- cap_server_api-1.0.0/docs/index.rst.license +3 -0
- cap_server_api-1.0.0/docs/requirements.txt +7 -0
- cap_server_api-1.0.0/examples/cap_server_api_simpletest.py +26 -0
- cap_server_api-1.0.0/optional_requirements.txt +3 -0
- cap_server_api-1.0.0/pyproject.toml +55 -0
- cap_server_api-1.0.0/requirements.txt +3 -0
- cap_server_api-1.0.0/ruff.toml +106 -0
- cap_server_api-1.0.0/setup.cfg +4 -0
- cap_server_api-1.0.0/setup.py +48 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Cooper Dalrymple (@relic-se)
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
4
|
+
|
|
5
|
+
name: Build CI
|
|
6
|
+
|
|
7
|
+
on: [pull_request, push]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- name: Checkout Current Repo
|
|
14
|
+
uses: actions/checkout@v6
|
|
15
|
+
- name: Set up Python
|
|
16
|
+
uses: actions/setup-python@v6
|
|
17
|
+
with:
|
|
18
|
+
python-version: 3.12
|
|
19
|
+
- name: Pip install Sphinx, pre-commit
|
|
20
|
+
shell: bash
|
|
21
|
+
run: |
|
|
22
|
+
pip install --force-reinstall Sphinx sphinx-rtd-theme pre-commit
|
|
23
|
+
- name: Pre-commit hooks
|
|
24
|
+
shell: bash
|
|
25
|
+
run: |
|
|
26
|
+
pre-commit run --all-files --show-diff-on-failur
|
|
27
|
+
- name: Build docs
|
|
28
|
+
working-directory: docs
|
|
29
|
+
shell: bash
|
|
30
|
+
run: sphinx-build -E -W -b html . _build/html
|
|
31
|
+
- name: Build Python package
|
|
32
|
+
shell: bash
|
|
33
|
+
run: |
|
|
34
|
+
pip install --upgrade build twine
|
|
35
|
+
find -type f -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) -exec sed -i -e "s/0.0.0+auto.0/1.2.3/" {} +
|
|
36
|
+
python -m build
|
|
37
|
+
twine check dist/*
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Cooper Dalrymple (@relic-se)
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
4
|
+
|
|
5
|
+
name: GitHub Release Actions
|
|
6
|
+
|
|
7
|
+
on:
|
|
8
|
+
release:
|
|
9
|
+
types: [published]
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
upload-release-assets:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- name: Checkout Current Repo
|
|
16
|
+
uses: actions/checkout@v6
|
|
17
|
+
- name: Set up Python
|
|
18
|
+
uses: actions/setup-python@v6
|
|
19
|
+
with:
|
|
20
|
+
python-version: 3.12
|
|
21
|
+
- name: Install dependencies
|
|
22
|
+
shell: bash
|
|
23
|
+
run: |
|
|
24
|
+
python -m pip install --upgrade pip
|
|
25
|
+
pip install --upgrade build twine
|
|
26
|
+
- name: Build Python package
|
|
27
|
+
shell: bash
|
|
28
|
+
run: |
|
|
29
|
+
pip install --upgrade build twine
|
|
30
|
+
find -type f -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) -exec sed -i -e "s/0.0.0+auto.0/1.2.3/" {} +
|
|
31
|
+
python -m build
|
|
32
|
+
twine check dist/*
|
|
33
|
+
- name: Upload Release Assets
|
|
34
|
+
uses: shogo82148/actions-upload-release-asset@v1
|
|
35
|
+
with:
|
|
36
|
+
asset_path: "dist/*.tar.gz"
|
|
37
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
38
|
+
upload_url: ${{ github.event.release.upload_url }}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Cooper Dalrymple (@relic-se)
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
4
|
+
|
|
5
|
+
name: PyPI Release Actions
|
|
6
|
+
|
|
7
|
+
on:
|
|
8
|
+
release:
|
|
9
|
+
types: [published]
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
upload-release-assets:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- name: Checkout Current Repo
|
|
16
|
+
uses: actions/checkout@v6
|
|
17
|
+
- name: Set up Python
|
|
18
|
+
uses: actions/setup-python@v6
|
|
19
|
+
with:
|
|
20
|
+
python-version: 3.12
|
|
21
|
+
- name: Install dependencies
|
|
22
|
+
shell: bash
|
|
23
|
+
run: |
|
|
24
|
+
python -m pip install --upgrade pip
|
|
25
|
+
pip install --upgrade build twine
|
|
26
|
+
- name: Build and publish
|
|
27
|
+
env:
|
|
28
|
+
TWINE_USERNAME: ${{ secrets.pypi_username }}
|
|
29
|
+
TWINE_PASSWORD: ${{ secrets.pypi_password }}
|
|
30
|
+
shell: bash
|
|
31
|
+
run: |
|
|
32
|
+
find -type f -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) -exec sed -i -e "s/0.0.0+auto.0/${{github.event.release.tag_name}}/" {} +
|
|
33
|
+
python -m build
|
|
34
|
+
twine upload dist/*
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Cooper Dalrymple (@relic-se)
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
4
|
+
|
|
5
|
+
repos:
|
|
6
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
7
|
+
rev: v4.5.0
|
|
8
|
+
hooks:
|
|
9
|
+
- id: check-yaml
|
|
10
|
+
- id: end-of-file-fixer
|
|
11
|
+
- id: trailing-whitespace
|
|
12
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
13
|
+
rev: v0.3.4
|
|
14
|
+
hooks:
|
|
15
|
+
- id: ruff-format
|
|
16
|
+
- id: ruff
|
|
17
|
+
args: ["--fix"]
|
|
18
|
+
- repo: https://github.com/fsfe/reuse-tool
|
|
19
|
+
rev: v3.0.1
|
|
20
|
+
hooks:
|
|
21
|
+
- id: reuse
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: Copyright (c) 2026 Cooper Dalrymple (@relic-se)
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
4
|
+
|
|
5
|
+
# Read the Docs configuration file
|
|
6
|
+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
7
|
+
|
|
8
|
+
# Required
|
|
9
|
+
version: 2
|
|
10
|
+
|
|
11
|
+
sphinx:
|
|
12
|
+
configuration: docs/conf.py
|
|
13
|
+
|
|
14
|
+
build:
|
|
15
|
+
os: ubuntu-lts-latest
|
|
16
|
+
tools:
|
|
17
|
+
python: "3"
|
|
18
|
+
|
|
19
|
+
python:
|
|
20
|
+
install:
|
|
21
|
+
- requirements: docs/requirements.txt
|
|
22
|
+
- requirements: requirements.txt
|