Skip to content

Commit 6aef818

Browse files
committed
Prepare release 0.6.2
1 parent 4fefd46 commit 6aef818

File tree

5 files changed

+32
-7
lines changed

5 files changed

+32
-7
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
39+
python-version: [3.9, "3.10", "3.11", "3.12", "3.13", "3.14"]
4040

4141
steps:
4242
- uses: actions/checkout@v4

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
CHANGELOG
22
=========
33

4+
0.6.2
5+
-----
6+
- Support negative numbers (both integers and floats)
7+
48
0.6.1
59
-----
610
- Fix project build

py_partiql_parser/_internal/json_parser.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class JsonParser:
1515
"""
1616

1717
@staticmethod
18-
def parse(original: str) -> Iterator[Any]: # type: ignore[misc]
18+
def parse(original: str) -> Iterator[Any]:
1919
if not (original.startswith("{") or original.startswith("[")):
2020
# Doesn't look like JSON - let's return as a variable
2121
yield original if original.isnumeric() else Variable(original)
@@ -26,7 +26,7 @@ def parse(original: str) -> Iterator[Any]: # type: ignore[misc]
2626
yield result
2727

2828
@staticmethod
29-
def parse_with_tokens(original: str) -> Iterator[Tuple[Any, int]]: # type: ignore[misc]
29+
def parse_with_tokens(original: str) -> Iterator[Tuple[Any, int]]:
3030
"""
3131
Parse JSON string. Returns a tuple of (json_doc, nr_of_bytes_processed)
3232
"""
@@ -37,7 +37,7 @@ def parse_with_tokens(original: str) -> Iterator[Tuple[Any, int]]: # type: igno
3737
yield result, tokenizer.get_tokens_parsed()
3838

3939
@staticmethod
40-
def _get_next_document( # type: ignore[misc]
40+
def _get_next_document(
4141
original: str,
4242
tokenizer: ClauseTokenizer,
4343
only_parse_initial: bool = False,
@@ -135,7 +135,7 @@ def _get_next_document( # type: ignore[misc]
135135
return result
136136

137137
@staticmethod
138-
def _parse_list(original: str, tokenizer: ClauseTokenizer) -> List[Any]: # type: ignore
138+
def _parse_list(original: str, tokenizer: ClauseTokenizer) -> List[Any]:
139139
result: List[Any] = list()
140140
section = None
141141
current_phrase = ""

py_partiql_parser/_internal/where_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def prep_value(val: str) -> Dict[str, Any]:
322322

323323
class S3WhereParser(WhereParser):
324324
@classmethod
325-
def applies(cls, doc: Any, table_prefix: str, _where_clause: str) -> bool: # type: ignore[misc]
325+
def applies(cls, doc: Any, table_prefix: str, _where_clause: str) -> bool:
326326
where_clause = WhereParser.parse_where_clause(_where_clause)
327327

328328
if isinstance(where_clause, WhereClause):

pyproject.toml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "py-partiql-parser"
3-
version = "0.6.1"
3+
version = "0.6.2"
44
description = "Pure Python PartiQL Parser"
55
readme = "README.md"
66
keywords = ["pypartiql", "parser"]
@@ -9,6 +9,27 @@ authors = [{name="Bert Blommers", email="info@bertblommers.nl"}]
99

1010
dependencies = []
1111

12+
classifiers = [
13+
# How mature is this project? Common values are
14+
# 3 - Alpha
15+
# 4 - Beta
16+
# 5 - Production/Stable
17+
"Development Status :: 4 - Beta",
18+
19+
# Indicate who your project is intended for
20+
"Intended Audience :: Developers",
21+
"Topic :: Software Development :: Libraries",
22+
23+
# Specify the Python versions you support here.
24+
"Programming Language :: Python :: 3",
25+
"Programming Language :: Python :: 3.9",
26+
"Programming Language :: Python :: 3.10",
27+
"Programming Language :: Python :: 3.11",
28+
"Programming Language :: Python :: 3.12",
29+
"Programming Language :: Python :: 3.13",
30+
"Programming Language :: Python :: 3.14",
31+
]
32+
1233
[tool.hatch.build]
1334
include = ["py_partiql_parser/*"]
1435

0 commit comments

Comments
 (0)