Skip to content

Commit

Permalink
Bump Sqlparser to 0.47 (#261)
Browse files Browse the repository at this point in the history
* bump version to v0.1.47; upgrade sqlparser-rs
* bump versions to 0.1.47
* stop supporting python 3.7

---------

Co-authored-by: Will Eaton <me@wseaton.com>
  • Loading branch information
yuval-illumex and wseaton authored Jun 27, 2024
1 parent e4b1404 commit 6b0c253
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.1.43
current_version = 0.1.47
commit = True
tag = True

Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run image
Expand All @@ -70,14 +70,19 @@ jobs:
if: matrix.os == 'macos-latest'
run: rustup target add aarch64-apple-darwin

- name: Install Rust x86_64-apple-darwin
if: matrix.os == 'macos-latest'
run: rustup target add x86_64-apple-darwin

- name: Build on macOS universal2
if: matrix.os == 'macos-latest'
shell: bash
env:
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
MACOSX_DEPLOYMENT_TARGET: "10.9"
MACOSX_DEPLOYMENT_TARGET: "10.15"
ARCHFLAGS: -arch x86_64 -arch arm64
PYO3_CROSS_LIB_DIR: /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib
# PYO3_CROSS_LIB_DIR: /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/${{ matrix.python-version }}/lib
PYO3_CROSS_PYTHON_VERSION: ${{ matrix.python-version }}
run: poetry run python setup.py bdist_wheel && poetry install

- name: Build Python package
Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sqloxide"
version = "0.1.43"
version = "0.1.47"
authors = ["Will Eaton <me@wseaton.com>"]
edition = "2018"

Expand All @@ -9,13 +9,13 @@ name = "sqloxide"
crate-type = ["cdylib"]

[dependencies]
pythonize = "0.20"
pythonize = "0.21.1"
serde = "1.0.171"

[dependencies.pyo3]
version = "0.20.0"
version = "0.21.2"
features = ["extension-module"]

[dependencies.sqlparser]
version = "0.43.1"
version = "0.47.0"
features = ["serde", "visitor"]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sqloxide"
version = "0.1.43"
version = "0.1.47"
repository = "https://github.com/wseaton/sqloxide"
license = "MIT"
description = "Python bindings for sqlparser-rs"
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup_kwargs = {
"name": "sqloxide",
"version": "0.1.43",
"version": "0.1.47",
"description": "Python bindings for sqlparser-rs",
"long_description": open("readme.md").read(),
"long_description_content_type": "text/markdown",
Expand All @@ -18,7 +18,7 @@
"url": "https://github.com/wseaton/sqloxide",
"packages": packages,
"package_data": package_data,
"python_requires": ">=3.7,<4.0",
"python_requires": ">=3.8,<4.0",
}
from build import *

Expand Down

0 comments on commit 6b0c253

Please sign in to comment.