rupy-api 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.
- rupy_api-0.1.0/.github/dependabot.yml +33 -0
- rupy_api-0.1.0/.github/workflows/build.yml +18 -0
- rupy_api-0.1.0/.github/workflows/ci.yml +154 -0
- rupy_api-0.1.0/.github/workflows/publish.yml +132 -0
- rupy_api-0.1.0/.gitignore +216 -0
- rupy_api-0.1.0/.mergify.yml +8 -0
- rupy_api-0.1.0/.whitesource +14 -0
- rupy_api-0.1.0/CODEOWNERS +1 -0
- rupy_api-0.1.0/Cargo.lock +2039 -0
- rupy_api-0.1.0/Cargo.toml +29 -0
- rupy_api-0.1.0/IMPLEMENTATION_SUMMARY.md +187 -0
- rupy_api-0.1.0/INSTRUCTIONS.md +85 -0
- rupy_api-0.1.0/LICENSE +21 -0
- rupy_api-0.1.0/PKG-INFO +101 -0
- rupy_api-0.1.0/QUICK_REFERENCE.md +251 -0
- rupy_api-0.1.0/README.md +708 -0
- rupy_api-0.1.0/RELEASE.md +147 -0
- rupy_api-0.1.0/TEMPLATE_DOCUMENTATION.md +330 -0
- rupy_api-0.1.0/TEMPLATE_FEATURES.md +223 -0
- rupy_api-0.1.0/benchmark/README.md +75 -0
- rupy_api-0.1.0/benchmark/ansible-deployment/.gitignore +17 -0
- rupy_api-0.1.0/benchmark/ansible-deployment/QUICKSTART.md +213 -0
- rupy_api-0.1.0/benchmark/ansible-deployment/README.md +223 -0
- rupy_api-0.1.0/benchmark/ansible-deployment/ansible.cfg +20 -0
- rupy_api-0.1.0/benchmark/ansible-deployment/deploy.sh +203 -0
- rupy_api-0.1.0/benchmark/ansible-deployment/group_vars/all.yml +51 -0
- rupy_api-0.1.0/benchmark/ansible-deployment/inventory.yml +27 -0
- rupy_api-0.1.0/benchmark/ansible-deployment/playbooks/apps.yml +280 -0
- rupy_api-0.1.0/benchmark/ansible-deployment/playbooks/common.yml +89 -0
- rupy_api-0.1.0/benchmark/ansible-deployment/playbooks/database.yml +103 -0
- rupy_api-0.1.0/benchmark/ansible-deployment/playbooks/locust.yml +190 -0
- rupy_api-0.1.0/benchmark/ansible-deployment/playbooks/manage.yml +76 -0
- rupy_api-0.1.0/benchmark/ansible-deployment/requirements.txt +2 -0
- rupy_api-0.1.0/benchmark/ansible-deployment/site.yml +39 -0
- rupy_api-0.1.0/benchmark/ansible-deployment/templates/app-service.j2 +25 -0
- rupy_api-0.1.0/benchmark/fastapi/Dockerfile +6 -0
- rupy_api-0.1.0/benchmark/fastapi/main.py +12 -0
- rupy_api-0.1.0/benchmark/flask/Dockerfile +6 -0
- rupy_api-0.1.0/benchmark/flask/main.py +24 -0
- rupy_api-0.1.0/benchmark/load-test/.gitignore +31 -0
- rupy_api-0.1.0/benchmark/load-test/README.md +366 -0
- rupy_api-0.1.0/benchmark/load-test/benchmark.sh +226 -0
- rupy_api-0.1.0/benchmark/load-test/django-pg-upsert-select/Dockerfile +22 -0
- rupy_api-0.1.0/benchmark/load-test/django-pg-upsert-select/app.py +252 -0
- rupy_api-0.1.0/benchmark/load-test/django-pg-upsert-select/requirements.txt +4 -0
- rupy_api-0.1.0/benchmark/load-test/docker-compose.yml +132 -0
- rupy_api-0.1.0/benchmark/load-test/fastapi-pg-upsert-select/Dockerfile +22 -0
- rupy_api-0.1.0/benchmark/load-test/fastapi-pg-upsert-select/app.py +217 -0
- rupy_api-0.1.0/benchmark/load-test/fastapi-pg-upsert-select/requirements.txt +3 -0
- rupy_api-0.1.0/benchmark/load-test/flask-pg-upsert-select/Dockerfile +22 -0
- rupy_api-0.1.0/benchmark/load-test/flask-pg-upsert-select/app.py +232 -0
- rupy_api-0.1.0/benchmark/load-test/flask-pg-upsert-select/requirements.txt +4 -0
- rupy_api-0.1.0/benchmark/load-test/locustfile.py +112 -0
- rupy_api-0.1.0/benchmark/load-test/mrhttp-pg-upsert-select/Dockerfile +30 -0
- rupy_api-0.1.0/benchmark/load-test/mrhttp-pg-upsert-select/app.py +245 -0
- rupy_api-0.1.0/benchmark/load-test/mrhttp-pg-upsert-select/requirements.txt +1 -0
- rupy_api-0.1.0/benchmark/load-test/robyn-pg-upsert-select/Dockerfile +27 -0
- rupy_api-0.1.0/benchmark/load-test/robyn-pg-upsert-select/app.py +286 -0
- rupy_api-0.1.0/benchmark/load-test/robyn-pg-upsert-select/requirements.txt +2 -0
- rupy_api-0.1.0/benchmark/load-test/rupy-pg-upsert-select/Dockerfile +37 -0
- rupy_api-0.1.0/benchmark/load-test/rupy-pg-upsert-select/app.py +281 -0
- rupy_api-0.1.0/benchmark/load-test/rupy-pg-upsert-select/requirements.txt +1 -0
- rupy_api-0.1.0/benchmark/load-test/test_apis.py +181 -0
- rupy_api-0.1.0/benchmark/robyn/Dockerfile +12 -0
- rupy_api-0.1.0/benchmark/robyn/main.py +9 -0
- rupy_api-0.1.0/benchmark/rupy/Dockerfile +14 -0
- rupy_api-0.1.0/benchmark/rupy/main.py +18 -0
- rupy_api-0.1.0/example.py +28 -0
- rupy_api-0.1.0/examples/MIDDLEWARE_README.md +303 -0
- rupy_api-0.1.0/examples/README.md +165 -0
- rupy_api-0.1.0/examples/all_methods.py +63 -0
- rupy_api-0.1.0/examples/basic_app.py +32 -0
- rupy_api-0.1.0/examples/combined_middlewares.py +123 -0
- rupy_api-0.1.0/examples/cookies_auth_example.py +154 -0
- rupy_api-0.1.0/examples/cors_middleware.py +369 -0
- rupy_api-0.1.0/examples/dynamic_routes.py +43 -0
- rupy_api-0.1.0/examples/geo_blocking_middleware.py +458 -0
- rupy_api-0.1.0/examples/headers_example.py +91 -0
- rupy_api-0.1.0/examples/jwt_middleware.py +415 -0
- rupy_api-0.1.0/examples/method_decorators.py +98 -0
- rupy_api-0.1.0/examples/openapi_example.py +176 -0
- rupy_api-0.1.0/examples/rate_limiting_middleware.py +575 -0
- rupy_api-0.1.0/examples/rest_api.py +91 -0
- rupy_api-0.1.0/examples/reverse_proxy_example.py +144 -0
- rupy_api-0.1.0/examples/static/css/styles.css +6 -0
- rupy_api-0.1.0/examples/static_files_example.py +138 -0
- rupy_api-0.1.0/examples/static_files_example_2.py +127 -0
- rupy_api-0.1.0/examples/telemetry_example.py +65 -0
- rupy_api-0.1.0/examples/template_class_example.py +194 -0
- rupy_api-0.1.0/examples/template_example.py +48 -0
- rupy_api-0.1.0/examples/upload_example.py +200 -0
- rupy_api-0.1.0/index.html +1168 -0
- rupy_api-0.1.0/pyproject.toml +29 -0
- rupy_api-0.1.0/python/rupy/__init__.py +678 -0
- rupy_api-0.1.0/sonar-project.properties +2 -0
- rupy_api-0.1.0/src/app.rs +266 -0
- rupy_api-0.1.0/src/lib.rs +25 -0
- rupy_api-0.1.0/src/request.rs +131 -0
- rupy_api-0.1.0/src/response.rs +142 -0
- rupy_api-0.1.0/src/routing.rs +116 -0
- rupy_api-0.1.0/src/server.rs +579 -0
- rupy_api-0.1.0/src/telemetry.rs +100 -0
- rupy_api-0.1.0/src/template.rs +132 -0
- rupy_api-0.1.0/src/upload.rs +154 -0
- rupy_api-0.1.0/template/hello.tpl +10 -0
- rupy_api-0.1.0/template/user.tpl +10 -0
- rupy_api-0.1.0/tests/__init__.py +3 -0
- rupy_api-0.1.0/tests/test_advanced_proxy_static.py +201 -0
- rupy_api-0.1.0/tests/test_cookies_auth.py +123 -0
- rupy_api-0.1.0/tests/test_headers.py +110 -0
- rupy_api-0.1.0/tests/test_http_methods.py +198 -0
- rupy_api-0.1.0/tests/test_method_decorators.py +232 -0
- rupy_api-0.1.0/tests/test_middleware_headers.py +138 -0
- rupy_api-0.1.0/tests/test_middlewares.py +201 -0
- rupy_api-0.1.0/tests/test_new_features.py +169 -0
- rupy_api-0.1.0/tests/test_proxy_static_response.py +132 -0
- rupy_api-0.1.0/tests/test_template.py +173 -0
- rupy_api-0.1.0/tests/test_template_class.py +200 -0
- rupy_api-0.1.0/tests/test_upload.py +276 -0
- rupy_api-0.1.0/uv.lock +220 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
# Configuration for Rust dependencies using Cargo
|
|
4
|
+
- package-ecosystem: "cargo"
|
|
5
|
+
directory: "/" # Location of your Cargo.toml file
|
|
6
|
+
schedule:
|
|
7
|
+
interval: "weekly" # Check for updates weekly
|
|
8
|
+
# Optional: Set a target branch if you want PRs to be opened against a non-default branch
|
|
9
|
+
# target-branch: "develop"
|
|
10
|
+
# Optional: Group updates for certain dependencies
|
|
11
|
+
# groups:
|
|
12
|
+
# tokio:
|
|
13
|
+
# patterns:
|
|
14
|
+
# - "tokio*"
|
|
15
|
+
|
|
16
|
+
# Configuration for Python dependencies using Pip
|
|
17
|
+
- package-ecosystem: "pip"
|
|
18
|
+
directory: "/" # Location of your requirements.txt or pyproject.toml
|
|
19
|
+
schedule:
|
|
20
|
+
interval: "weekly" # Check for updates daily
|
|
21
|
+
# Optional: Specify a file to monitor if not in the root directory
|
|
22
|
+
# open-pull-requests-limit: 10 # Limit the number of open pull requests
|
|
23
|
+
# assignees:
|
|
24
|
+
# - "your-github-username"
|
|
25
|
+
|
|
26
|
+
# Configuration for GitHub Actions
|
|
27
|
+
- package-ecosystem: "github-actions"
|
|
28
|
+
directory: ".github/workflows" # Location of your workflow files (e.g., .github/workflows)
|
|
29
|
+
schedule:
|
|
30
|
+
interval: "weekly" # Check for updates monthly
|
|
31
|
+
# Optional: Reviewers for GitHub Actions updates
|
|
32
|
+
# reviewers:
|
|
33
|
+
# - "your-team"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: Build
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- main
|
|
6
|
+
jobs:
|
|
7
|
+
sonarqube:
|
|
8
|
+
name: SonarQube
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
environment: actions
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v6
|
|
13
|
+
with:
|
|
14
|
+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
|
15
|
+
- name: SonarQube Scan
|
|
16
|
+
uses: SonarSource/sonarqube-scan-action@v6
|
|
17
|
+
env:
|
|
18
|
+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main, develop ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ main, develop ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
rust-build-and-test:
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
name: Rust Build and Test
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v6
|
|
18
|
+
|
|
19
|
+
- name: Install Rust toolchain
|
|
20
|
+
uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
21
|
+
with:
|
|
22
|
+
toolchain: stable
|
|
23
|
+
components: rustfmt, clippy
|
|
24
|
+
|
|
25
|
+
- name: Cache Cargo dependencies
|
|
26
|
+
uses: actions/cache@v4
|
|
27
|
+
with:
|
|
28
|
+
path: |
|
|
29
|
+
~/.cargo/bin/
|
|
30
|
+
~/.cargo/registry/index/
|
|
31
|
+
~/.cargo/registry/cache/
|
|
32
|
+
~/.cargo/git/db/
|
|
33
|
+
target/
|
|
34
|
+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
35
|
+
restore-keys: |
|
|
36
|
+
${{ runner.os }}-cargo-
|
|
37
|
+
|
|
38
|
+
- name: Check Rust formatting
|
|
39
|
+
run: cargo fmt -- --check
|
|
40
|
+
|
|
41
|
+
- name: Run Clippy
|
|
42
|
+
run: cargo clippy -- -D warnings -A clippy::useless-conversion
|
|
43
|
+
|
|
44
|
+
- name: Build Rust project
|
|
45
|
+
run: cargo build --release
|
|
46
|
+
|
|
47
|
+
- name: Run Rust tests
|
|
48
|
+
run: cargo test --release
|
|
49
|
+
|
|
50
|
+
python-build-and-test:
|
|
51
|
+
name: Python Build and Test
|
|
52
|
+
runs-on: ${{ matrix.os }}
|
|
53
|
+
strategy:
|
|
54
|
+
matrix:
|
|
55
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
56
|
+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
|
|
57
|
+
|
|
58
|
+
steps:
|
|
59
|
+
- uses: actions/checkout@v6
|
|
60
|
+
|
|
61
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
62
|
+
uses: actions/setup-python@v6
|
|
63
|
+
with:
|
|
64
|
+
python-version: ${{ matrix.python-version }}
|
|
65
|
+
|
|
66
|
+
- name: Install Rust toolchain
|
|
67
|
+
uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
68
|
+
with:
|
|
69
|
+
toolchain: stable
|
|
70
|
+
|
|
71
|
+
- name: Cache Cargo dependencies
|
|
72
|
+
uses: actions/cache@v4
|
|
73
|
+
with:
|
|
74
|
+
path: |
|
|
75
|
+
~/.cargo/bin/
|
|
76
|
+
~/.cargo/registry/index/
|
|
77
|
+
~/.cargo/registry/cache/
|
|
78
|
+
~/.cargo/git/db/
|
|
79
|
+
target/
|
|
80
|
+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
81
|
+
restore-keys: |
|
|
82
|
+
${{ runner.os }}-cargo-
|
|
83
|
+
|
|
84
|
+
- name: Install maturin
|
|
85
|
+
run: pip install maturin
|
|
86
|
+
|
|
87
|
+
- name: Build Python package
|
|
88
|
+
run: maturin build --release
|
|
89
|
+
|
|
90
|
+
- name: Install built wheel
|
|
91
|
+
env:
|
|
92
|
+
PYTHON_VERSION: "${{ matrix.python-version }}"
|
|
93
|
+
run: |
|
|
94
|
+
vpy="$(echo ${PYTHON_VERSION} | cut -d. -f1)$(echo ${PYTHON_VERSION} | cut -d. -f2)"
|
|
95
|
+
pip install target/wheels/rupy_api*cp${vpy}*.whl
|
|
96
|
+
shell: bash
|
|
97
|
+
|
|
98
|
+
- name: Test Python import
|
|
99
|
+
run: python -c "from rupy import Rupy; print('Successfully imported Rupy')"
|
|
100
|
+
|
|
101
|
+
- name: Run Python tests (if they exist)
|
|
102
|
+
run: |
|
|
103
|
+
if [ -d "tests" ]; then
|
|
104
|
+
pip install pytest requests
|
|
105
|
+
pytest tests/
|
|
106
|
+
else
|
|
107
|
+
echo "No Python tests found, skipping"
|
|
108
|
+
fi
|
|
109
|
+
shell: bash
|
|
110
|
+
continue-on-error: true
|
|
111
|
+
|
|
112
|
+
lint:
|
|
113
|
+
permissions:
|
|
114
|
+
contents: read
|
|
115
|
+
name: Lint and Format Check
|
|
116
|
+
runs-on: ubuntu-latest
|
|
117
|
+
|
|
118
|
+
steps:
|
|
119
|
+
- uses: actions/checkout@v6
|
|
120
|
+
|
|
121
|
+
- name: Install Rust toolchain
|
|
122
|
+
uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
123
|
+
with:
|
|
124
|
+
toolchain: stable
|
|
125
|
+
components: rustfmt, clippy
|
|
126
|
+
|
|
127
|
+
- name: Check Rust code formatting
|
|
128
|
+
run: cargo fmt -- --check
|
|
129
|
+
|
|
130
|
+
- name: Run Clippy linter
|
|
131
|
+
run: cargo clippy --all-targets --all-features -- -D warnings -A clippy::useless-conversion
|
|
132
|
+
|
|
133
|
+
- name: Set up Python
|
|
134
|
+
uses: actions/setup-python@v6
|
|
135
|
+
with:
|
|
136
|
+
python-version: '3.12'
|
|
137
|
+
|
|
138
|
+
- name: Install Python linting tools
|
|
139
|
+
run: |
|
|
140
|
+
pip install ruff black mypy
|
|
141
|
+
|
|
142
|
+
- name: Check Python code formatting with black
|
|
143
|
+
run: |
|
|
144
|
+
if [ -d "python" ]; then
|
|
145
|
+
black --check python/
|
|
146
|
+
fi
|
|
147
|
+
continue-on-error: true
|
|
148
|
+
|
|
149
|
+
- name: Lint Python code with ruff
|
|
150
|
+
run: |
|
|
151
|
+
if [ -d "python" ]; then
|
|
152
|
+
ruff check python/
|
|
153
|
+
fi
|
|
154
|
+
continue-on-error: true
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test:
|
|
9
|
+
name: Test Package
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v6
|
|
16
|
+
|
|
17
|
+
- name: Set up Python
|
|
18
|
+
uses: actions/setup-python@v6
|
|
19
|
+
with:
|
|
20
|
+
python-version: '3.12'
|
|
21
|
+
|
|
22
|
+
- name: Install Rust toolchain
|
|
23
|
+
uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
24
|
+
with:
|
|
25
|
+
toolchain: stable
|
|
26
|
+
|
|
27
|
+
- name: Run Rust tests
|
|
28
|
+
run: cargo test --release
|
|
29
|
+
|
|
30
|
+
- name: Install maturin
|
|
31
|
+
run: pip install maturin
|
|
32
|
+
|
|
33
|
+
- name: Build Python package
|
|
34
|
+
run: maturin build --release
|
|
35
|
+
|
|
36
|
+
- name: Install built wheel
|
|
37
|
+
env:
|
|
38
|
+
PYTHON_VERSION: ${{ matrix.python-version }}
|
|
39
|
+
run: |
|
|
40
|
+
vpy="$(echo ${PYTHON_VERSION} | cut -d. -f1)$(echo ${PYTHON_VERSION} | cut -d. -f2)"
|
|
41
|
+
pip install target/wheels/rupy_api*cp${vpy}*.whl
|
|
42
|
+
|
|
43
|
+
- name: Test Python import
|
|
44
|
+
run: python -c "from rupy import Rupy; print('Successfully imported Rupy')"
|
|
45
|
+
|
|
46
|
+
- name: Run Python tests
|
|
47
|
+
run: |
|
|
48
|
+
pip install pytest requests
|
|
49
|
+
pytest tests/
|
|
50
|
+
|
|
51
|
+
build-wheels:
|
|
52
|
+
name: Build wheels on ${{ matrix.os }}
|
|
53
|
+
needs: test
|
|
54
|
+
runs-on: ${{ matrix.os }}
|
|
55
|
+
strategy:
|
|
56
|
+
matrix:
|
|
57
|
+
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
58
|
+
|
|
59
|
+
permissions:
|
|
60
|
+
contents: read
|
|
61
|
+
|
|
62
|
+
steps:
|
|
63
|
+
- uses: actions/checkout@v6
|
|
64
|
+
|
|
65
|
+
- name: Set up Python
|
|
66
|
+
uses: actions/setup-python@v6
|
|
67
|
+
with:
|
|
68
|
+
python-version: '3.12'
|
|
69
|
+
|
|
70
|
+
- name: Install Rust toolchain
|
|
71
|
+
uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
72
|
+
with:
|
|
73
|
+
toolchain: stable
|
|
74
|
+
|
|
75
|
+
- name: Install maturin
|
|
76
|
+
run: pip install maturin
|
|
77
|
+
|
|
78
|
+
- name: Build wheels
|
|
79
|
+
run: maturin build --release
|
|
80
|
+
|
|
81
|
+
- name: Upload wheels
|
|
82
|
+
uses: actions/upload-artifact@v5
|
|
83
|
+
with:
|
|
84
|
+
name: wheels-${{ matrix.os }}
|
|
85
|
+
path: target/wheels/*.whl
|
|
86
|
+
|
|
87
|
+
publish:
|
|
88
|
+
name: Publish to PyPI
|
|
89
|
+
needs: build-wheels
|
|
90
|
+
runs-on: ubuntu-latest
|
|
91
|
+
environment:
|
|
92
|
+
name: pypi
|
|
93
|
+
url: https://pypi.org/p/rupy-api
|
|
94
|
+
permissions:
|
|
95
|
+
id-token: write
|
|
96
|
+
|
|
97
|
+
steps:
|
|
98
|
+
- uses: actions/checkout@v6
|
|
99
|
+
|
|
100
|
+
- name: Download all wheels
|
|
101
|
+
uses: actions/download-artifact@v6
|
|
102
|
+
with:
|
|
103
|
+
pattern: wheels-*
|
|
104
|
+
path: dist
|
|
105
|
+
merge-multiple: true
|
|
106
|
+
|
|
107
|
+
- name: Set up Python
|
|
108
|
+
uses: actions/setup-python@v6
|
|
109
|
+
with:
|
|
110
|
+
python-version: '3.12'
|
|
111
|
+
|
|
112
|
+
- name: Install Rust toolchain
|
|
113
|
+
uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
114
|
+
with:
|
|
115
|
+
toolchain: stable
|
|
116
|
+
|
|
117
|
+
- name: Install maturin
|
|
118
|
+
run: pip install maturin
|
|
119
|
+
|
|
120
|
+
- name: Build source distribution
|
|
121
|
+
run: maturin sdist
|
|
122
|
+
|
|
123
|
+
- name: Copy sdist to dist
|
|
124
|
+
run: cp target/wheels/*.tar.gz dist/
|
|
125
|
+
|
|
126
|
+
- name: List distribution files
|
|
127
|
+
run: ls -lh dist/
|
|
128
|
+
|
|
129
|
+
- name: Publish to PyPI
|
|
130
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
131
|
+
with:
|
|
132
|
+
packages-dir: dist/
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
.DS_Store
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Rust
|
|
10
|
+
target/
|
|
11
|
+
Cargo.lock
|
|
12
|
+
|
|
13
|
+
# Distribution / packaging
|
|
14
|
+
.Python
|
|
15
|
+
build/
|
|
16
|
+
develop-eggs/
|
|
17
|
+
dist/
|
|
18
|
+
downloads/
|
|
19
|
+
eggs/
|
|
20
|
+
.eggs/
|
|
21
|
+
lib/
|
|
22
|
+
lib64/
|
|
23
|
+
parts/
|
|
24
|
+
sdist/
|
|
25
|
+
var/
|
|
26
|
+
wheels/
|
|
27
|
+
share/python-wheels/
|
|
28
|
+
*.egg-info/
|
|
29
|
+
.installed.cfg
|
|
30
|
+
*.egg
|
|
31
|
+
MANIFEST
|
|
32
|
+
|
|
33
|
+
# PyInstaller
|
|
34
|
+
# Usually these files are written by a python script from a template
|
|
35
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
36
|
+
*.manifest
|
|
37
|
+
*.spec
|
|
38
|
+
|
|
39
|
+
# Installer logs
|
|
40
|
+
pip-log.txt
|
|
41
|
+
pip-delete-this-directory.txt
|
|
42
|
+
|
|
43
|
+
# Unit test / coverage reports
|
|
44
|
+
htmlcov/
|
|
45
|
+
.tox/
|
|
46
|
+
.nox/
|
|
47
|
+
.coverage
|
|
48
|
+
.coverage.*
|
|
49
|
+
.cache
|
|
50
|
+
nosetests.xml
|
|
51
|
+
coverage.xml
|
|
52
|
+
*.cover
|
|
53
|
+
*.py.cover
|
|
54
|
+
.hypothesis/
|
|
55
|
+
.pytest_cache/
|
|
56
|
+
cover/
|
|
57
|
+
|
|
58
|
+
# Translations
|
|
59
|
+
*.mo
|
|
60
|
+
*.pot
|
|
61
|
+
|
|
62
|
+
# Django stuff:
|
|
63
|
+
*.log
|
|
64
|
+
local_settings.py
|
|
65
|
+
db.sqlite3
|
|
66
|
+
db.sqlite3-journal
|
|
67
|
+
|
|
68
|
+
# Flask stuff:
|
|
69
|
+
instance/
|
|
70
|
+
.webassets-cache
|
|
71
|
+
|
|
72
|
+
# Scrapy stuff:
|
|
73
|
+
.scrapy
|
|
74
|
+
|
|
75
|
+
# Sphinx documentation
|
|
76
|
+
docs/_build/
|
|
77
|
+
|
|
78
|
+
# PyBuilder
|
|
79
|
+
.pybuilder/
|
|
80
|
+
target/
|
|
81
|
+
|
|
82
|
+
# Jupyter Notebook
|
|
83
|
+
.ipynb_checkpoints
|
|
84
|
+
|
|
85
|
+
# IPython
|
|
86
|
+
profile_default/
|
|
87
|
+
ipython_config.py
|
|
88
|
+
|
|
89
|
+
# pyenv
|
|
90
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
91
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
92
|
+
# .python-version
|
|
93
|
+
|
|
94
|
+
# pipenv
|
|
95
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
96
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
97
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
98
|
+
# install all needed dependencies.
|
|
99
|
+
#Pipfile.lock
|
|
100
|
+
|
|
101
|
+
# UV
|
|
102
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
103
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
104
|
+
# commonly ignored for libraries.
|
|
105
|
+
#uv.lock
|
|
106
|
+
|
|
107
|
+
# poetry
|
|
108
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
109
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
110
|
+
# commonly ignored for libraries.
|
|
111
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
112
|
+
#poetry.lock
|
|
113
|
+
#poetry.toml
|
|
114
|
+
|
|
115
|
+
# pdm
|
|
116
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
117
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
118
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
119
|
+
#pdm.lock
|
|
120
|
+
#pdm.toml
|
|
121
|
+
.pdm-python
|
|
122
|
+
.pdm-build/
|
|
123
|
+
|
|
124
|
+
# pixi
|
|
125
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
126
|
+
#pixi.lock
|
|
127
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
128
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
129
|
+
.pixi
|
|
130
|
+
|
|
131
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
132
|
+
__pypackages__/
|
|
133
|
+
|
|
134
|
+
# Celery stuff
|
|
135
|
+
celerybeat-schedule
|
|
136
|
+
celerybeat.pid
|
|
137
|
+
|
|
138
|
+
# SageMath parsed files
|
|
139
|
+
*.sage.py
|
|
140
|
+
|
|
141
|
+
# Environments
|
|
142
|
+
.env
|
|
143
|
+
.envrc
|
|
144
|
+
.venv
|
|
145
|
+
env/
|
|
146
|
+
venv/
|
|
147
|
+
ENV/
|
|
148
|
+
env.bak/
|
|
149
|
+
venv.bak/
|
|
150
|
+
|
|
151
|
+
# Spyder project settings
|
|
152
|
+
.spyderproject
|
|
153
|
+
.spyproject
|
|
154
|
+
|
|
155
|
+
# Rope project settings
|
|
156
|
+
.ropeproject
|
|
157
|
+
|
|
158
|
+
# mkdocs documentation
|
|
159
|
+
/site
|
|
160
|
+
|
|
161
|
+
# mypy
|
|
162
|
+
.mypy_cache/
|
|
163
|
+
.dmypy.json
|
|
164
|
+
dmypy.json
|
|
165
|
+
|
|
166
|
+
# Pyre type checker
|
|
167
|
+
.pyre/
|
|
168
|
+
|
|
169
|
+
# pytype static type analyzer
|
|
170
|
+
.pytype/
|
|
171
|
+
|
|
172
|
+
# Cython debug symbols
|
|
173
|
+
cython_debug/
|
|
174
|
+
|
|
175
|
+
# PyCharm
|
|
176
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
177
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
178
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
179
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
180
|
+
#.idea/
|
|
181
|
+
|
|
182
|
+
# Abstra
|
|
183
|
+
# Abstra is an AI-powered process automation framework.
|
|
184
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
185
|
+
# Learn more at https://abstra.io/docs
|
|
186
|
+
.abstra/
|
|
187
|
+
|
|
188
|
+
# Visual Studio Code
|
|
189
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
190
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
191
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
192
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
193
|
+
# .vscode/
|
|
194
|
+
|
|
195
|
+
# Ruff stuff:
|
|
196
|
+
.ruff_cache/
|
|
197
|
+
|
|
198
|
+
# PyPI configuration file
|
|
199
|
+
.pypirc
|
|
200
|
+
|
|
201
|
+
# Cursor
|
|
202
|
+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
|
|
203
|
+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
|
|
204
|
+
# refer to https://docs.cursor.com/context/ignore-files
|
|
205
|
+
.cursorignore
|
|
206
|
+
.cursorindexingignore
|
|
207
|
+
|
|
208
|
+
# Marimo
|
|
209
|
+
marimo/_static/
|
|
210
|
+
marimo/_lsp/
|
|
211
|
+
__marimo__/
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
# Added by cargo
|
|
215
|
+
|
|
216
|
+
/target
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"scanSettings": {
|
|
3
|
+
"baseBranches": []
|
|
4
|
+
},
|
|
5
|
+
"checkRunSettings": {
|
|
6
|
+
"vulnerableCheckRunConclusionLevel": "failure",
|
|
7
|
+
"displayMode": "diff",
|
|
8
|
+
"useMendCheckNames": true
|
|
9
|
+
},
|
|
10
|
+
"issueSettings": {
|
|
11
|
+
"minSeverityLevel": "LOW",
|
|
12
|
+
"issueType": "DEPENDENCY"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @manoelhc
|