Skip to content

Commit

Permalink
Allow python312 (#6)
Browse files Browse the repository at this point in the history
* allow python 3.12

* fix oob warning
  • Loading branch information
ejkaplan authored Nov 30, 2023
1 parent d4ae502 commit b830962
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
2 changes: 1 addition & 1 deletion elkplot/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def draw(
max_x = max([layer.bounds[2] for layer in layers])
max_y = max([layer.bounds[3] for layer in layers])
out_of_bounds = min_x < 0 or min_y < 0 or max_x > width or max_y > height
if preview and not plot:
if out_of_bounds:
warnings.warn("THIS DRAWING GOES OUT OF BOUNDS!")

if preview:
Expand Down
23 changes: 21 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["El Kaplan <kaplan.el.j@gmail.com>"]
readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.11,<3.12"
python = ">=3.11"
pyserial = "^3.5"
tqdm = "^4.64.1"
shapely = "^2.0.1"
Expand Down

0 comments on commit b830962

Please sign in to comment.