ryx 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.
- ryx-0.1.0/.github/workflows/ci.yml +132 -0
- ryx-0.1.0/.github/workflows/docs.yml +68 -0
- ryx-0.1.0/.github/workflows/release.yml +170 -0
- ryx-0.1.0/.gitignore +233 -0
- ryx-0.1.0/.python-version +1 -0
- ryx-0.1.0/CONTRIBUTING.md +463 -0
- ryx-0.1.0/Cargo.lock +2373 -0
- ryx-0.1.0/Cargo.toml +89 -0
- ryx-0.1.0/LICENSE +201 -0
- ryx-0.1.0/MANIFEST.in +2 -0
- ryx-0.1.0/Makefile +34 -0
- ryx-0.1.0/PKG-INFO +163 -0
- ryx-0.1.0/README.md +130 -0
- ryx-0.1.0/docs/.gitignore +4 -0
- ryx-0.1.0/docs/Dockerfile +36 -0
- ryx-0.1.0/docs/doc/advanced/_category_.json +8 -0
- ryx-0.1.0/docs/doc/advanced/caching.mdx +88 -0
- ryx-0.1.0/docs/doc/advanced/cli.mdx +125 -0
- ryx-0.1.0/docs/doc/advanced/custom-lookups.mdx +76 -0
- ryx-0.1.0/docs/doc/advanced/hooks.mdx +83 -0
- ryx-0.1.0/docs/doc/advanced/index.mdx +19 -0
- ryx-0.1.0/docs/doc/advanced/raw-sql.mdx +64 -0
- ryx-0.1.0/docs/doc/advanced/signals.mdx +81 -0
- ryx-0.1.0/docs/doc/advanced/sync-async.mdx +70 -0
- ryx-0.1.0/docs/doc/advanced/transactions.mdx +65 -0
- ryx-0.1.0/docs/doc/advanced/validation.mdx +108 -0
- ryx-0.1.0/docs/doc/cookbook/_category_.json +8 -0
- ryx-0.1.0/docs/doc/cookbook/blog-tutorial.mdx +196 -0
- ryx-0.1.0/docs/doc/cookbook/deployment.mdx +132 -0
- ryx-0.1.0/docs/doc/cookbook/index.mdx +13 -0
- ryx-0.1.0/docs/doc/cookbook/testing.mdx +162 -0
- ryx-0.1.0/docs/doc/core-concepts/_category_.json +8 -0
- ryx-0.1.0/docs/doc/core-concepts/fields.mdx +176 -0
- ryx-0.1.0/docs/doc/core-concepts/index.mdx +32 -0
- ryx-0.1.0/docs/doc/core-concepts/managers-and-querysets.mdx +165 -0
- ryx-0.1.0/docs/doc/core-concepts/migrations.mdx +110 -0
- ryx-0.1.0/docs/doc/core-concepts/models.mdx +178 -0
- ryx-0.1.0/docs/doc/crud/_category_.json +8 -0
- ryx-0.1.0/docs/doc/crud/bulk-operations.mdx +95 -0
- ryx-0.1.0/docs/doc/crud/creating.mdx +74 -0
- ryx-0.1.0/docs/doc/crud/deleting.mdx +42 -0
- ryx-0.1.0/docs/doc/crud/index.mdx +15 -0
- ryx-0.1.0/docs/doc/crud/reading.mdx +88 -0
- ryx-0.1.0/docs/doc/crud/updating.mdx +55 -0
- ryx-0.1.0/docs/doc/getting-started/_category_.json +8 -0
- ryx-0.1.0/docs/doc/getting-started/index.mdx +20 -0
- ryx-0.1.0/docs/doc/getting-started/installation.mdx +116 -0
- ryx-0.1.0/docs/doc/getting-started/project-structure.mdx +106 -0
- ryx-0.1.0/docs/doc/getting-started/quick-start.mdx +170 -0
- ryx-0.1.0/docs/doc/internals/_category_.json +8 -0
- ryx-0.1.0/docs/doc/internals/architecture.mdx +104 -0
- ryx-0.1.0/docs/doc/internals/connection-pool.mdx +91 -0
- ryx-0.1.0/docs/doc/internals/index.mdx +15 -0
- ryx-0.1.0/docs/doc/internals/query-compiler.mdx +163 -0
- ryx-0.1.0/docs/doc/internals/rust-core.mdx +121 -0
- ryx-0.1.0/docs/doc/internals/type-conversion.mdx +92 -0
- ryx-0.1.0/docs/doc/intro.mdx +141 -0
- ryx-0.1.0/docs/doc/querying/_category_.json +8 -0
- ryx-0.1.0/docs/doc/querying/aggregations.mdx +106 -0
- ryx-0.1.0/docs/doc/querying/filtering.mdx +125 -0
- ryx-0.1.0/docs/doc/querying/index.mdx +34 -0
- ryx-0.1.0/docs/doc/querying/ordering-and-pagination.mdx +83 -0
- ryx-0.1.0/docs/doc/querying/q-objects.mdx +104 -0
- ryx-0.1.0/docs/doc/querying/values-and-annotate.mdx +103 -0
- ryx-0.1.0/docs/doc/reference/_category_.json +8 -0
- ryx-0.1.0/docs/doc/reference/api-reference.mdx +238 -0
- ryx-0.1.0/docs/doc/reference/exceptions.mdx +65 -0
- ryx-0.1.0/docs/doc/reference/field-reference.mdx +81 -0
- ryx-0.1.0/docs/doc/reference/index.mdx +15 -0
- ryx-0.1.0/docs/doc/reference/lookup-reference.mdx +45 -0
- ryx-0.1.0/docs/doc/reference/signals-reference.mdx +50 -0
- ryx-0.1.0/docs/doc/relationships/_category_.json +8 -0
- ryx-0.1.0/docs/doc/relationships/foreign-key.mdx +99 -0
- ryx-0.1.0/docs/doc/relationships/index.mdx +33 -0
- ryx-0.1.0/docs/doc/relationships/many-to-many.mdx +87 -0
- ryx-0.1.0/docs/doc/relationships/one-to-one.mdx +58 -0
- ryx-0.1.0/docs/doc/relationships/prefetch-related.mdx +63 -0
- ryx-0.1.0/docs/doc/relationships/select-related.mdx +69 -0
- ryx-0.1.0/docs/docker-compose.yml +12 -0
- ryx-0.1.0/docs/docusaurus.config.js +111 -0
- ryx-0.1.0/docs/docusaurus.config.ts +73 -0
- ryx-0.1.0/docs/package-lock.json +18181 -0
- ryx-0.1.0/docs/package.json +37 -0
- ryx-0.1.0/docs/server.js +70 -0
- ryx-0.1.0/docs/sidebars.js +114 -0
- ryx-0.1.0/docs/src/components/Badge.css +39 -0
- ryx-0.1.0/docs/src/components/Badge.js +10 -0
- ryx-0.1.0/docs/src/components/CodeBlock.css +22 -0
- ryx-0.1.0/docs/src/components/CodeBlock.js +11 -0
- ryx-0.1.0/docs/src/components/FeatureCard.css +64 -0
- ryx-0.1.0/docs/src/components/FeatureCard.js +16 -0
- ryx-0.1.0/docs/src/components/StepCard.css +57 -0
- ryx-0.1.0/docs/src/components/StepCard.js +14 -0
- ryx-0.1.0/docs/src/css/custom.css +578 -0
- ryx-0.1.0/docs/src/theme/Footer/index.js +105 -0
- ryx-0.1.0/docs/src/theme/Footer/styles.css +166 -0
- ryx-0.1.0/docs/src/theme/GitHubStats.css +54 -0
- ryx-0.1.0/docs/src/theme/GitHubStats.js +75 -0
- ryx-0.1.0/docs/src/theme/NavbarItem/ComponentTypes.js +10 -0
- ryx-0.1.0/docs/src/theme/SearchBar/index.js +145 -0
- ryx-0.1.0/docs/src/theme/SearchBar/styles.css +123 -0
- ryx-0.1.0/docs/static/img/logo.svg +4 -0
- ryx-0.1.0/docs/static/img/ryx_architecture.svg +127 -0
- ryx-0.1.0/logo.svg +4 -0
- ryx-0.1.0/py.typed +4 -0
- ryx-0.1.0/pyproject.toml +90 -0
- ryx-0.1.0/ryx/__init__.py +285 -0
- ryx-0.1.0/ryx/__main__.py +486 -0
- ryx-0.1.0/ryx/bulk.py +309 -0
- ryx-0.1.0/ryx/cache.py +296 -0
- ryx-0.1.0/ryx/descriptors.py +394 -0
- ryx-0.1.0/ryx/exceptions.py +129 -0
- ryx-0.1.0/ryx/executor_helpers.py +53 -0
- ryx-0.1.0/ryx/fields.py +946 -0
- ryx-0.1.0/ryx/migrations/__init__.py +21 -0
- ryx-0.1.0/ryx/migrations/autodetect.py +408 -0
- ryx-0.1.0/ryx/migrations/ddl.py +383 -0
- ryx-0.1.0/ryx/migrations/runner.py +352 -0
- ryx-0.1.0/ryx/migrations/state.py +289 -0
- ryx-0.1.0/ryx/models.py +646 -0
- ryx-0.1.0/ryx/pool_ext.py +41 -0
- ryx-0.1.0/ryx/queryset.py +856 -0
- ryx-0.1.0/ryx/relations.py +253 -0
- ryx-0.1.0/ryx/ryx_core.pyi +903 -0
- ryx-0.1.0/ryx/signals.py +226 -0
- ryx-0.1.0/ryx/transaction.py +186 -0
- ryx-0.1.0/ryx/validators.py +321 -0
- ryx-0.1.0/ryx_architecture.svg +127 -0
- ryx-0.1.0/src/errors.rs +124 -0
- ryx-0.1.0/src/executor.rs +349 -0
- ryx-0.1.0/src/lib.rs +700 -0
- ryx-0.1.0/src/pool.rs +182 -0
- ryx-0.1.0/src/query/ast.rs +370 -0
- ryx-0.1.0/src/query/compiler.rs +688 -0
- ryx-0.1.0/src/query/lookup.rs +343 -0
- ryx-0.1.0/src/query/mod.rs +13 -0
- ryx-0.1.0/src/transaction.rs +235 -0
- ryx-0.1.0/test.py +98 -0
- ryx-0.1.0/tests/README.md +145 -0
- ryx-0.1.0/tests/conftest.py +539 -0
- ryx-0.1.0/tests/integration/test_bulk_operations.py +213 -0
- ryx-0.1.0/tests/integration/test_crud.py +251 -0
- ryx-0.1.0/tests/integration/test_queries.py +296 -0
- ryx-0.1.0/tests/integration/test_queryset_operations.py +181 -0
- ryx-0.1.0/tests/integration/test_transactions.py +236 -0
- ryx-0.1.0/tests/unit/test_exceptions.py +132 -0
- ryx-0.1.0/tests/unit/test_fields.py +305 -0
- ryx-0.1.0/tests/unit/test_models.py +224 -0
- ryx-0.1.0/tests/unit/test_queryset.py +88 -0
- ryx-0.1.0/tests/unit/test_validators.py +289 -0
- ryx-0.1.0/uv.lock +184 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
#
|
|
2
|
+
# CI — Tests & Checks
|
|
3
|
+
#
|
|
4
|
+
# Runs on every push and every PR.
|
|
5
|
+
# - Lint (cargo clippy + rustfmt)
|
|
6
|
+
# - Rust unit tests (cargo test)
|
|
7
|
+
# - Python integration tests (pytest)
|
|
8
|
+
# - Build check (maturin build)
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
name: CI
|
|
12
|
+
|
|
13
|
+
on:
|
|
14
|
+
push:
|
|
15
|
+
branches: ["master", "main"]
|
|
16
|
+
pull_request:
|
|
17
|
+
branches: ["master", "main"]
|
|
18
|
+
|
|
19
|
+
env:
|
|
20
|
+
CARGO_TERM_COLOR: always
|
|
21
|
+
RUST_BACKTRACE: 1
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
# Rust lint + fmt
|
|
25
|
+
rust-lint:
|
|
26
|
+
name: Rust Lint & Fmt
|
|
27
|
+
runs-on: ubuntu-latest
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v4
|
|
30
|
+
|
|
31
|
+
- name: Install Rust
|
|
32
|
+
uses: dtolnay/rust-toolchain@stable
|
|
33
|
+
with:
|
|
34
|
+
components: clippy, rustfmt
|
|
35
|
+
|
|
36
|
+
- name: Cache Rust dependencies
|
|
37
|
+
uses: Swatinem/rust-cache@v2
|
|
38
|
+
|
|
39
|
+
- name: Check formatting
|
|
40
|
+
run: cargo fmt --all -- --check
|
|
41
|
+
|
|
42
|
+
- name: Clippy (warnings as errors)
|
|
43
|
+
run: cargo clippy --all-targets --all-features -- -D warnings
|
|
44
|
+
|
|
45
|
+
# Rust unit tests
|
|
46
|
+
rust-tests:
|
|
47
|
+
name: Rust Tests
|
|
48
|
+
runs-on: ubuntu-latest
|
|
49
|
+
needs: rust-lint
|
|
50
|
+
steps:
|
|
51
|
+
- uses: actions/checkout@v4
|
|
52
|
+
|
|
53
|
+
- name: Install Rust
|
|
54
|
+
uses: dtolnay/rust-toolchain@stable
|
|
55
|
+
|
|
56
|
+
- name: Cache Rust dependencies
|
|
57
|
+
uses: Swatinem/rust-cache@v2
|
|
58
|
+
|
|
59
|
+
- name: Run Rust tests
|
|
60
|
+
run: cargo test --all-features
|
|
61
|
+
|
|
62
|
+
# Python integration tests
|
|
63
|
+
python-tests:
|
|
64
|
+
name: Python Tests (Python ${{ matrix.python }})
|
|
65
|
+
runs-on: ubuntu-latest
|
|
66
|
+
needs: rust-lint
|
|
67
|
+
strategy:
|
|
68
|
+
fail-fast: false
|
|
69
|
+
matrix:
|
|
70
|
+
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
71
|
+
steps:
|
|
72
|
+
- uses: actions/checkout@v4
|
|
73
|
+
|
|
74
|
+
- name: Install Rust
|
|
75
|
+
uses: dtolnay/rust-toolchain@stable
|
|
76
|
+
|
|
77
|
+
- name: Cache Rust dependencies
|
|
78
|
+
uses: Swatinem/rust-cache@v2
|
|
79
|
+
|
|
80
|
+
- name: Install uv
|
|
81
|
+
uses: astral-sh/setup-uv@v5
|
|
82
|
+
with:
|
|
83
|
+
enable-cache: true
|
|
84
|
+
|
|
85
|
+
- name: Set up Python ${{ matrix.python }}
|
|
86
|
+
run: uv python install ${{ matrix.python }}
|
|
87
|
+
|
|
88
|
+
- name: Install dependencies
|
|
89
|
+
run: uv sync --all-extras --dev
|
|
90
|
+
|
|
91
|
+
- name: Build and install Ryx
|
|
92
|
+
run: uv run maturin develop --release
|
|
93
|
+
|
|
94
|
+
- name: Run pytest
|
|
95
|
+
run: uv run pytest tests/ -v --tb=short
|
|
96
|
+
|
|
97
|
+
- name: Run examples smoke test
|
|
98
|
+
run: |
|
|
99
|
+
for f in examples/*.py; do
|
|
100
|
+
echo "Running $f ..."
|
|
101
|
+
uv run python "$f"
|
|
102
|
+
done
|
|
103
|
+
|
|
104
|
+
# Maturin build check
|
|
105
|
+
build-check:
|
|
106
|
+
name: Build Check (wheel)
|
|
107
|
+
runs-on: ubuntu-latest
|
|
108
|
+
needs: [rust-tests, python-tests]
|
|
109
|
+
steps:
|
|
110
|
+
- uses: actions/checkout@v4
|
|
111
|
+
|
|
112
|
+
- name: Install Rust
|
|
113
|
+
uses: dtolnay/rust-toolchain@stable
|
|
114
|
+
|
|
115
|
+
- name: Cache Rust dependencies
|
|
116
|
+
uses: Swatinem/rust-cache@v2
|
|
117
|
+
|
|
118
|
+
- name: Install uv
|
|
119
|
+
uses: astral-sh/setup-uv@v5
|
|
120
|
+
|
|
121
|
+
- name: Build wheel
|
|
122
|
+
uses: PyO3/maturin-action@v1
|
|
123
|
+
with:
|
|
124
|
+
command: build
|
|
125
|
+
args: --release --out dist
|
|
126
|
+
manylinux: auto
|
|
127
|
+
|
|
128
|
+
- name: Upload wheel artifact
|
|
129
|
+
uses: actions/upload-artifact@v4
|
|
130
|
+
with:
|
|
131
|
+
name: wheels-linux
|
|
132
|
+
path: dist/
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Docs — Build & Deploy Docusaurus
|
|
3
|
+
#
|
|
4
|
+
# Builds the Docusaurus documentation and deploys to GitHub Pages.
|
|
5
|
+
# Triggers on pushes to the docs/ directory or the master branch.
|
|
6
|
+
# Also available as a manual dispatch.
|
|
7
|
+
#
|
|
8
|
+
|
|
9
|
+
name: Docs
|
|
10
|
+
|
|
11
|
+
on:
|
|
12
|
+
push:
|
|
13
|
+
branches: ["master", "docs"]
|
|
14
|
+
paths:
|
|
15
|
+
- "docs/**"
|
|
16
|
+
- ".github/workflows/docs.yml"
|
|
17
|
+
workflow_dispatch:
|
|
18
|
+
|
|
19
|
+
# Grant GITHUB_TOKEN permission to deploy to GitHub Pages
|
|
20
|
+
permissions:
|
|
21
|
+
contents: read
|
|
22
|
+
pages: write
|
|
23
|
+
id-token: write
|
|
24
|
+
|
|
25
|
+
# Only one deployment at a time; auto-cancel in-progress runs
|
|
26
|
+
concurrency:
|
|
27
|
+
group: pages
|
|
28
|
+
cancel-in-progress: true
|
|
29
|
+
|
|
30
|
+
jobs:
|
|
31
|
+
build:
|
|
32
|
+
name: Build Docusaurus Docs
|
|
33
|
+
runs-on: ubuntu-latest
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/checkout@v4
|
|
36
|
+
|
|
37
|
+
- name: Setup Node.js
|
|
38
|
+
uses: actions/setup-node@v4
|
|
39
|
+
with:
|
|
40
|
+
node-version: "20"
|
|
41
|
+
cache: npm
|
|
42
|
+
cache-dependency-path: docs/package-lock.json
|
|
43
|
+
|
|
44
|
+
- name: Install dependencies
|
|
45
|
+
working-directory: docs
|
|
46
|
+
run: npm ci
|
|
47
|
+
|
|
48
|
+
- name: Build docs
|
|
49
|
+
working-directory: docs
|
|
50
|
+
run: npm run build
|
|
51
|
+
|
|
52
|
+
- name: Upload build artifact
|
|
53
|
+
uses: actions/upload-pages-artifact@v3
|
|
54
|
+
with:
|
|
55
|
+
path: docs/build
|
|
56
|
+
|
|
57
|
+
deploy:
|
|
58
|
+
name: Deploy to GitHub Pages
|
|
59
|
+
runs-on: ubuntu-latest
|
|
60
|
+
needs: build
|
|
61
|
+
if: github.event_name != 'pull_request'
|
|
62
|
+
environment:
|
|
63
|
+
name: github-pages
|
|
64
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
65
|
+
steps:
|
|
66
|
+
- name: Deploy to GitHub Pages
|
|
67
|
+
id: deployment
|
|
68
|
+
uses: actions/deploy-pages@v4
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Release — Build Wheels & Publish to PyPI
|
|
3
|
+
#
|
|
4
|
+
# Triggered automatically when a Git tag is pushed (e.g. v0.1.0).
|
|
5
|
+
# Builds wheels for all major platforms via Maturin's manylinux Docker images
|
|
6
|
+
# and native macOS/Windows runners, then publishes to PyPI.
|
|
7
|
+
#
|
|
8
|
+
# Tag format: v* (e.g. v0.1.0, v1.0.0, v0.2.0-beta.1)
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
name: Release
|
|
12
|
+
|
|
13
|
+
on:
|
|
14
|
+
push:
|
|
15
|
+
tags:
|
|
16
|
+
- "v*"
|
|
17
|
+
workflow_dispatch:
|
|
18
|
+
inputs:
|
|
19
|
+
publish:
|
|
20
|
+
description: "Publish to PyPI"
|
|
21
|
+
required: false
|
|
22
|
+
default: "false"
|
|
23
|
+
|
|
24
|
+
env:
|
|
25
|
+
CARGO_TERM_COLOR: always
|
|
26
|
+
|
|
27
|
+
jobs:
|
|
28
|
+
# Build wheels for all platforms
|
|
29
|
+
build-wheels:
|
|
30
|
+
name: Build Wheels — ${{ matrix.os }} (${{ matrix.target }})
|
|
31
|
+
runs-on: ${{ matrix.os }}
|
|
32
|
+
strategy:
|
|
33
|
+
fail-fast: false
|
|
34
|
+
matrix:
|
|
35
|
+
include:
|
|
36
|
+
# Linux (manylinux) — x86_64
|
|
37
|
+
- os: ubuntu-latest
|
|
38
|
+
target: x86_64-unknown-linux-gnu
|
|
39
|
+
manylinux: auto
|
|
40
|
+
# Linux (manylinux) — aarch64
|
|
41
|
+
- os: ubuntu-latest
|
|
42
|
+
target: aarch64-unknown-linux-gnu
|
|
43
|
+
manylinux: auto
|
|
44
|
+
# macOS — x86_64 (Intel)
|
|
45
|
+
- os: macos-latest
|
|
46
|
+
target: x86_64-apple-darwin
|
|
47
|
+
manylinux: auto
|
|
48
|
+
# macOS — aarch64 (Apple Silicon)
|
|
49
|
+
- os: macos-latest
|
|
50
|
+
target: aarch64-apple-darwin
|
|
51
|
+
manylinux: auto
|
|
52
|
+
# Windows — x86_64
|
|
53
|
+
- os: windows-latest
|
|
54
|
+
target: x86_64-pc-windows-msvc
|
|
55
|
+
manylinux: auto
|
|
56
|
+
|
|
57
|
+
steps:
|
|
58
|
+
- uses: actions/checkout@v4
|
|
59
|
+
|
|
60
|
+
- name: Install Rust
|
|
61
|
+
uses: dtolnay/rust-toolchain@stable
|
|
62
|
+
with:
|
|
63
|
+
targets: ${{ matrix.target }}
|
|
64
|
+
|
|
65
|
+
- name: Cache Rust dependencies
|
|
66
|
+
uses: Swatinem/rust-cache@v2
|
|
67
|
+
|
|
68
|
+
- name: Build wheels
|
|
69
|
+
uses: PyO3/maturin-action@v1
|
|
70
|
+
with:
|
|
71
|
+
target: ${{ matrix.target }}
|
|
72
|
+
args: --release --out dist --interpreter 3.10 3.11 3.12 3.13 3.14
|
|
73
|
+
manylinux: ${{ matrix.manylinux }}
|
|
74
|
+
rust-toolchain: stable
|
|
75
|
+
|
|
76
|
+
- name: Upload wheel artifact
|
|
77
|
+
uses: actions/upload-artifact@v4
|
|
78
|
+
with:
|
|
79
|
+
name: wheels-${{ matrix.os }}-${{ matrix.target }}
|
|
80
|
+
path: dist/
|
|
81
|
+
|
|
82
|
+
# Build source distribution
|
|
83
|
+
build-sdist:
|
|
84
|
+
name: Build Source Distribution
|
|
85
|
+
runs-on: ubuntu-latest
|
|
86
|
+
steps:
|
|
87
|
+
- uses: actions/checkout@v4
|
|
88
|
+
|
|
89
|
+
- name: Install Rust
|
|
90
|
+
uses: dtolnay/rust-toolchain@stable
|
|
91
|
+
|
|
92
|
+
- name: Cache Rust dependencies
|
|
93
|
+
uses: Swatinem/rust-cache@v2
|
|
94
|
+
|
|
95
|
+
- name: Build sdist
|
|
96
|
+
uses: PyO3/maturin-action@v1
|
|
97
|
+
with:
|
|
98
|
+
command: sdist
|
|
99
|
+
args: --out dist
|
|
100
|
+
|
|
101
|
+
- name: Upload sdist artifact
|
|
102
|
+
uses: actions/upload-artifact@v4
|
|
103
|
+
with:
|
|
104
|
+
name: sdist
|
|
105
|
+
path: dist/
|
|
106
|
+
|
|
107
|
+
# Create GitHub Release
|
|
108
|
+
github-release:
|
|
109
|
+
name: Create GitHub Release
|
|
110
|
+
runs-on: ubuntu-latest
|
|
111
|
+
needs: [build-wheels, build-sdist]
|
|
112
|
+
if: startsWith(github.ref, 'refs/tags/')
|
|
113
|
+
permissions:
|
|
114
|
+
contents: write
|
|
115
|
+
steps:
|
|
116
|
+
- uses: actions/checkout@v4
|
|
117
|
+
|
|
118
|
+
- name: Download all artifacts
|
|
119
|
+
uses: actions/download-artifact@v4
|
|
120
|
+
with:
|
|
121
|
+
path: dist/
|
|
122
|
+
pattern: wheels-*
|
|
123
|
+
merge-multiple: true
|
|
124
|
+
|
|
125
|
+
- name: Download sdist
|
|
126
|
+
uses: actions/download-artifact@v4
|
|
127
|
+
with:
|
|
128
|
+
name: sdist
|
|
129
|
+
path: dist/
|
|
130
|
+
|
|
131
|
+
- name: Create GitHub Release
|
|
132
|
+
env:
|
|
133
|
+
GH_TOKEN: ${{ github.token }}
|
|
134
|
+
run: |
|
|
135
|
+
TAG_NAME="${GITHUB_REF#refs/tags/}"
|
|
136
|
+
gh release create "$TAG_NAME" dist/* \
|
|
137
|
+
--title "Ryx $TAG_NAME" \
|
|
138
|
+
--generate-notes \
|
|
139
|
+
--draft
|
|
140
|
+
|
|
141
|
+
# Publish to PyPI
|
|
142
|
+
publish-pypi:
|
|
143
|
+
name: Publish to PyPI
|
|
144
|
+
runs-on: ubuntu-latest
|
|
145
|
+
needs: [build-wheels, build-sdist]
|
|
146
|
+
if: startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'workflow_dispatch' && inputs.publish == 'true')
|
|
147
|
+
environment:
|
|
148
|
+
name: pypi
|
|
149
|
+
url: https://pypi.org/p/ryx
|
|
150
|
+
permissions:
|
|
151
|
+
id-token: write # OIDC token for trusted publishing
|
|
152
|
+
steps:
|
|
153
|
+
- name: Download all artifacts
|
|
154
|
+
uses: actions/download-artifact@v4
|
|
155
|
+
with:
|
|
156
|
+
path: dist/
|
|
157
|
+
pattern: wheels-*
|
|
158
|
+
merge-multiple: true
|
|
159
|
+
|
|
160
|
+
- name: Download sdist
|
|
161
|
+
uses: actions/download-artifact@v4
|
|
162
|
+
with:
|
|
163
|
+
name: sdist
|
|
164
|
+
path: dist/
|
|
165
|
+
|
|
166
|
+
- name: Publish to PyPI
|
|
167
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
168
|
+
with:
|
|
169
|
+
packages-dir: dist/
|
|
170
|
+
skip-existing: true
|
ryx-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
#uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
#poetry.lock
|
|
109
|
+
#poetry.toml
|
|
110
|
+
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
114
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
115
|
+
#pdm.lock
|
|
116
|
+
#pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# pixi
|
|
121
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
122
|
+
#pixi.lock
|
|
123
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
124
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
125
|
+
.pixi
|
|
126
|
+
|
|
127
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
128
|
+
__pypackages__/
|
|
129
|
+
|
|
130
|
+
# Celery stuff
|
|
131
|
+
celerybeat-schedule
|
|
132
|
+
celerybeat.pid
|
|
133
|
+
|
|
134
|
+
# SageMath parsed files
|
|
135
|
+
*.sage.py
|
|
136
|
+
|
|
137
|
+
# Environments
|
|
138
|
+
.env
|
|
139
|
+
.envrc
|
|
140
|
+
.venv
|
|
141
|
+
env/
|
|
142
|
+
venv/
|
|
143
|
+
ENV/
|
|
144
|
+
env.bak/
|
|
145
|
+
venv.bak/
|
|
146
|
+
|
|
147
|
+
# Spyder project settings
|
|
148
|
+
.spyderproject
|
|
149
|
+
.spyproject
|
|
150
|
+
|
|
151
|
+
# Rope project settings
|
|
152
|
+
.ropeproject
|
|
153
|
+
|
|
154
|
+
# mkdocs documentation
|
|
155
|
+
/site
|
|
156
|
+
|
|
157
|
+
# mypy
|
|
158
|
+
.mypy_cache/
|
|
159
|
+
.dmypy.json
|
|
160
|
+
dmypy.json
|
|
161
|
+
|
|
162
|
+
# Pyre type checker
|
|
163
|
+
.pyre/
|
|
164
|
+
|
|
165
|
+
# pytype static type analyzer
|
|
166
|
+
.pytype/
|
|
167
|
+
|
|
168
|
+
# Cython debug symbols
|
|
169
|
+
cython_debug/
|
|
170
|
+
|
|
171
|
+
# PyCharm
|
|
172
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
173
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
174
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
175
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
176
|
+
#.idea/
|
|
177
|
+
|
|
178
|
+
# Abstra
|
|
179
|
+
# Abstra is an AI-powered process automation framework.
|
|
180
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
181
|
+
# Learn more at https://abstra.io/docs
|
|
182
|
+
.abstra/
|
|
183
|
+
|
|
184
|
+
# Visual Studio Code
|
|
185
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
186
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
187
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
188
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
189
|
+
# .vscode/
|
|
190
|
+
|
|
191
|
+
# Ruff stuff:
|
|
192
|
+
.ruff_cache/
|
|
193
|
+
|
|
194
|
+
# PyPI configuration file
|
|
195
|
+
.pypirc
|
|
196
|
+
|
|
197
|
+
# Cursor
|
|
198
|
+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
|
|
199
|
+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
|
|
200
|
+
# refer to https://docs.cursor.com/context/ignore-files
|
|
201
|
+
.cursorignore
|
|
202
|
+
.cursorindexingignore
|
|
203
|
+
|
|
204
|
+
# Marimo
|
|
205
|
+
marimo/_static/
|
|
206
|
+
marimo/_lsp/
|
|
207
|
+
__marimo__/
|
|
208
|
+
|
|
209
|
+
# Generated by Cargo
|
|
210
|
+
# will have compiled files and executables
|
|
211
|
+
debug
|
|
212
|
+
target
|
|
213
|
+
|
|
214
|
+
# These are backup files generated by rustfmt
|
|
215
|
+
**/*.rs.bk
|
|
216
|
+
|
|
217
|
+
# MSVC Windows builds of rustc generate these, which store debugging information
|
|
218
|
+
*.pdb
|
|
219
|
+
|
|
220
|
+
# Generated by cargo mutants
|
|
221
|
+
# Contains mutation testing data
|
|
222
|
+
**/mutants.out*/
|
|
223
|
+
|
|
224
|
+
# Readme (Not ready yet)
|
|
225
|
+
# README.md
|
|
226
|
+
|
|
227
|
+
# Local configuration file for tests
|
|
228
|
+
*.sqlite3
|
|
229
|
+
*.db
|
|
230
|
+
|
|
231
|
+
libryx_core*
|
|
232
|
+
*.lock
|
|
233
|
+
tests/test_compiler.rs
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13
|