Skip to content

Commit

Permalink
Update for newer versions of hatchling
Browse files Browse the repository at this point in the history
  • Loading branch information
aneeshdurg committed Dec 22, 2023
1 parent 21a5ae3 commit 7bf2b18
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ classifiers = [
"Topic :: Database :: Database Engines/Servers",
]
dependencies = [
"antlr4-python3-runtime>=4.12.0",
"antlr4-python3-runtime==4.12.0",
"networkx>=2.8.8",
"pandas>=1.5.3",
"numpy>=1.24.2",
Expand All @@ -36,3 +36,6 @@ pythonPlatform = "Linux"

[tool.isort]
profile = "black"

[tool.hatch.build.targets.wheel]
packages = ["spycy/"]
17 changes: 10 additions & 7 deletions spycy/spycy.py
Original file line number Diff line number Diff line change
Expand Up @@ -992,13 +992,16 @@ def main():
if args.interactive:
import readline

while query := input("> "):
try:
table = exe.exec(query)
if len(table):
print(table)
except ExecutionError as e:
print(e, file=sys.stderr)
try:
while query := input("> "):
try:
table = exe.exec(query)
if len(table):
print(table)
except ExecutionError as e:
print(e, file=sys.stderr)
except EOFError:
exit()

assert args.query or args.file, "One of --query and --file is required!"

Expand Down

0 comments on commit 7bf2b18

Please sign in to comment.