crafvy 0.3.1__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.
- crafvy-0.3.1/.github/workflows/release.yml +26 -0
- crafvy-0.3.1/.github/workflows/test.yml +14 -0
- crafvy-0.3.1/CHANGELOG.md +1595 -0
- crafvy-0.3.1/PKG-INFO +94 -0
- crafvy-0.3.1/README.md +79 -0
- crafvy-0.3.1/conformance.json +92275 -0
- crafvy-0.3.1/pyproject.toml +26 -0
- crafvy-0.3.1/src/crafvy/__init__.py +42 -0
- crafvy-0.3.1/src/crafvy/_client.py +199 -0
- crafvy-0.3.1/src/crafvy/_errors.py +79 -0
- crafvy-0.3.1/src/crafvy/_generated/__init__.py +1 -0
- crafvy-0.3.1/src/crafvy/_generated/_calls.py +1587 -0
- crafvy-0.3.1/src/crafvy/_generated/operations.py +1589 -0
- crafvy-0.3.1/src/crafvy/_generated/resources.py +14285 -0
- crafvy-0.3.1/src/crafvy/_generated/types.py +40550 -0
- crafvy-0.3.1/src/crafvy/_runtime.py +44 -0
- crafvy-0.3.1/src/crafvy/py.typed +0 -0
- crafvy-0.3.1/tests/test_conformance.py +132 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Publishes `crafvy` to PyPI when a version tag (v1.2.3) is pushed — the tag
|
|
2
|
+
# pnpm sdk:sync-public sets. Uses PyPI's trusted publishing: on pypi.org,
|
|
3
|
+
# add this repository and the workflow `release.yml` as a trusted publisher
|
|
4
|
+
# of the project (no token to store).
|
|
5
|
+
name: Release
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
tags: ["v*"]
|
|
9
|
+
jobs:
|
|
10
|
+
publish:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
environment: pypi
|
|
13
|
+
permissions:
|
|
14
|
+
id-token: write
|
|
15
|
+
contents: read
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
- uses: actions/setup-python@v5
|
|
19
|
+
with:
|
|
20
|
+
python-version: "3.12"
|
|
21
|
+
- name: Tests (the shared conformance suite)
|
|
22
|
+
run: PYTHONPATH=src python -m unittest discover -s tests -v
|
|
23
|
+
- name: The tag is the package's version
|
|
24
|
+
run: test "v$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml)" = "$GITHUB_REF_NAME"
|
|
25
|
+
- run: python -m pip install build && python -m build
|
|
26
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
on: [push, pull_request]
|
|
3
|
+
jobs:
|
|
4
|
+
test:
|
|
5
|
+
runs-on: ubuntu-latest
|
|
6
|
+
strategy:
|
|
7
|
+
matrix:
|
|
8
|
+
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
|
9
|
+
steps:
|
|
10
|
+
- uses: actions/checkout@v4
|
|
11
|
+
- uses: actions/setup-python@v5
|
|
12
|
+
with:
|
|
13
|
+
python-version: ${{ matrix.python }}
|
|
14
|
+
- run: PYTHONPATH=src python -m unittest discover -s tests -v
|