Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.17 #137

Merged
merged 3 commits into from
May 16, 2022
Merged

0.17 #137

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.15
current_version = 0.1.17
commit = True
tag = True

Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ jobs:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
os: [macos-latest, windows-latest, ubuntu-latest]
exclude:
# cpython issue: https://github.com/cython/cython/issues/3572
- os: macos-latest
python-version: "3.6"

steps:
- name: Checkout
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sqloxide"
version = "0.1.15"
version = "0.1.17"
authors = ["Will Eaton <me@wseaton.com>"]
edition = "2018"

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

[dependencies]
pythonize = "0.15.0"
pythonize = "0.16"

[dependencies.pyo3]
version = "0.15.1"
version = "0.16"
features = ["extension-module"]

[dependencies.sqlparser]
Expand Down
2 changes: 1 addition & 1 deletion build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export PATH="$HOME/.cargo/bin:$PATH"

cd $GITHUB_WORKSPACE/io

for PYBIN in /opt/python/cp{36,37,38,39,310}*/bin; do
for PYBIN in /opt/python/cp{37,38,39,310}*/bin; do
"${PYBIN}/pip" install -U setuptools wheel setuptools-rust
"${PYBIN}/python" setup.py bdist_wheel
done
Expand Down
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.15"
version = "0.1.17"
repository = "https://github.com/wseaton/sqloxide"
license = "MIT"
description = "Python bindings for sqlparser-rs"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup_kwargs = {
'name': 'sqloxide',
'version': '0.1.15',
'version': '0.1.17',
'description': 'Python bindings for sqlparser-rs',
'long_description': open('readme.md').read(),
'long_description_content_type': 'text/markdown',
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ fn string_to_dialect(dialect: &str) -> Box<dyn Dialect> {
"snowflake" => Box::new(SnowflakeDialect {}),
"sqlite" => Box::new(SQLiteDialect {}),
"clickhouse" => Box::new(ClickHouseDialect {}),
"redshift" => Box::new(RedshiftSqlDialect {}),
_ => {
println!("The dialect you chose was not recognized, falling back to 'generic'");
Box::new(GenericDialect {})
Expand All @@ -38,6 +39,8 @@ fn string_to_dialect(dialect: &str) -> Box<dyn Dialect> {
/// - snowflake
/// - sqlite
/// - clickhouse
/// - redshift
///
#[pyfunction]
#[pyo3(text_signature = "(sql, dialect)")]
fn parse_sql(py: Python, sql: &str, dialect: &str) -> PyResult<PyObject> {
Expand Down