Skip to content

Commit 1b96693

Browse files
authored
Restructure project to use maturin to build pyo3 bindings (#88)
1 parent 7de2c20 commit 1b96693

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+4335
-4194
lines changed

.github/actions/action.yml

-46
This file was deleted.

.github/workflows/ci.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- '**'
9+
pull_request: {}
10+
11+
jobs:
12+
test-python:
13+
name: test ${{ matrix.python-version }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
python-version:
18+
- '3.8'
19+
- '3.9'
20+
- '3.10'
21+
- '3.11'
22+
- '3.12'
23+
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: install rust stable
30+
uses: dtolnay/rust-toolchain@stable
31+
32+
- name: cache rust
33+
uses: Swatinem/rust-cache@v2
34+
with:
35+
key: test-v3
36+
37+
- name: set up python
38+
uses: actions/setup-python@v5
39+
with:
40+
python-version: ${{ matrix.python-version }}
41+
42+
# Issue with requests < 2.29.0 and docker. See: https://github.com/docker/docker-py/issues/3113
43+
- run: pip install docker requests==2.28.2
44+
45+
- run: pip install -e .
46+
env:
47+
RUST_BACKTRACE: 1
48+
49+
- run: pip freeze
50+
51+
- run: sh scripts/run_tests.sh
52+
53+
- run: cargo test
54+

.github/workflows/stability.yml

-50
This file was deleted.

.github/workflows/unit_tests.yml

-47
This file was deleted.

.gitignore

+57-64
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,77 @@
1-
# -----------------------------------
2-
# OS X
3-
# -----------------------------------
1+
/target
42

5-
# Directory files
6-
.DS_Store
7-
.AppleDouble
8-
.LSOverride
9-
10-
# Thumbnail files
11-
._*
12-
13-
# Files that might appear on external disk
14-
.Spotlight-V100
15-
.Trashes
3+
# Byte-compiled / optimized / DLL files
4+
__pycache__/
5+
.pytest_cache/
6+
*.py[cod]
167

17-
# Directories potentially created on remote AFP share
18-
.AppleDB
19-
.AppleDesktop
20-
Network Trash Folder
21-
Temporary Items
22-
.apdisk
8+
# C extensions
9+
*.so
2310

24-
# Environments
25-
.env
26-
.venv
11+
# Distribution / packaging
12+
.Python
13+
.venv/
2714
env/
28-
venv/
29-
ENV/
30-
env.bak/
31-
venv.bak/
3215
bin/
33-
lib64
34-
pyvenv.cfg
16+
build/
17+
develop-eggs/
18+
dist/
19+
eggs/
20+
lib/
21+
lib64/
22+
parts/
23+
sdist/
24+
var/
25+
include/
26+
man/
27+
venv/
28+
*.egg-info/
29+
.installed.cfg
30+
*.egg
31+
32+
# Installer logs
33+
pip-log.txt
34+
pip-delete-this-directory.txt
35+
pip-selfcheck.json
3536

3637
# Unit test / coverage reports
3738
htmlcov/
3839
.tox/
39-
.nox/
4040
.coverage
41-
.coverage.*
4241
.cache
4342
nosetests.xml
4443
coverage.xml
45-
*.cover
46-
*.py,cover
47-
.hypothesis/
48-
.pytest_cache/
49-
cover/
5044

51-
# -----------------------------------
52-
# Files
53-
# -----------------------------------
45+
# Translations
46+
*.mo
5447

55-
*.db
56-
*.pyc
57-
.vscode/
58-
__pycache__/
59-
dist/
60-
build/
48+
# Mr Developer
49+
.mr.developer.cfg
50+
.project
51+
.pydevproject
52+
53+
# Rope
54+
.ropeproject
55+
56+
# Django stuff:
57+
*.log
58+
*.pot
59+
60+
.DS_Store
61+
62+
# Sphinx documentation
63+
docs/_build/
6164

62-
# -----------------------------------
63-
# IDE
64-
# -----------------------------------
65+
# PyCharm
6566
.idea/
66-
# -----------------------------------
67-
# Rust
68-
# -----------------------------------
69-
/target/
70-
Cargo.lock
71-
# -----------------------------------
72-
# Packaging
73-
# -----------------------------------
74-
*.egg-info/
75-
*.egg
76-
.eggs/
77-
*.so
78-
/build/
79-
# -----------------------------------
80-
# server tests
81-
# -----------------------------------
67+
68+
# VSCode
69+
.vscode/
70+
71+
# Pyenv
72+
.build/
73+
74+
# Server tests
8275
integration_tests/flask/app/surreal.py/
8376
integration_tests/package-lock.json
8477
integration_tests/node_modules/

0 commit comments

Comments
 (0)