Skip to content

Commit

Permalink
Merge pull request #70 from 0x26res/add-python-3-13
Browse files Browse the repository at this point in the history
Add python 3 13
  • Loading branch information
0x26res authored Dec 9, 2024
2 parents c2f566b + e8a1c1d commit 90d82ae
Show file tree
Hide file tree
Showing 5 changed files with 210 additions and 555 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
16 changes: 12 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ repos:
- id: end-of-file-fixer
- id: mixed-line-ending
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.6.9
rev: v0.8.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/PyCQA/bandit
rev: 1.7.10
rev: 1.8.0
hooks:
- id: bandit
files: "^python/ptars/.*.py$"
Expand All @@ -28,7 +28,7 @@ repos:
- id: pretty-format-rust
args: [--autofix]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.42.0
rev: v0.43.0
hooks:
- id: markdownlint
args:
Expand All @@ -38,8 +38,16 @@ repos:
hooks:
- id: poetry-check
- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
rev: 0.8.1
hooks:
- id: nbstripout
args:
- "--drop-empty-cells"
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.14.0
hooks:
- id: pretty-format-toml
files: "^.*.toml"
exclude: "^gradle/libs.versions.toml$"
args:
- "--autofix"
49 changes: 24 additions & 25 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,34 +1,33 @@
[dependencies]
arrow = {version = "53.3.0", features = ["pyarrow"]}
arrow-array = {version = "53.3.0"}
arrow-schema = {version = "53.3.0"}
chrono = {version = "0.4.39"}
protobuf = {version = "3.7.1"}
pyo3 = {version = "0.22.4", features = ["abi3-py310"]}

[features]
default = ["extension-module"]
extension-module = ["pyo3/extension-module"]

[lib]
crate-type = ["cdylib"]
name = "ptars"

[package]
name = "ptarslib"
version = "0.0.3"
authors = ["0x26res <0x26res@gmail.net>"]
edition = "2021"
description = "Fast python conversion from protobuf to arrow using rust"
edition = "2021"
homepage = "https://github.com/0x26res/ptars"
repository = "https://github.com/0x26res/ptars"
readme = "README.md"
license = "Apache-2.0"

[package.metadata.release]
publish = false # handled by GitHub Actions
push = true

name = "ptarslib"
readme = "README.md"
repository = "https://github.com/0x26res/ptars"
version = "0.0.3"

[package.metadata.maturin]
name = "ptars._lib"

[lib]
crate-type = ["cdylib"]
name = "ptars"

[dependencies]
pyo3 = { version = "0.22.4", features = ["abi3-py310"] }
arrow = { version = "53.3.0", features = ["pyarrow"] }
arrow-array = { version = "53.3.0" }
arrow-schema = { version = "53.3.0" }
protobuf = { version = "3.7.1" }
chrono = { version = "0.4.39" }

[features]
extension-module = ["pyo3/extension-module"]
default = ["extension-module"]
[package.metadata.release]
publish = false # handled by GitHub Actions
push = true
Loading

0 comments on commit 90d82ae

Please sign in to comment.