From b83096245115a13ac845cd93e15f618ca523dc45 Mon Sep 17 00:00:00 2001 From: El Kaplan Date: Wed, 29 Nov 2023 19:35:18 -0500 Subject: [PATCH] Allow python312 (#6) * allow python 3.12 * fix oob warning --- elkplot/util.py | 2 +- poetry.lock | 23 +++++++++++++++++++++-- pyproject.toml | 2 +- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/elkplot/util.py b/elkplot/util.py index 7ea2acd..fc9fe92 100644 --- a/elkplot/util.py +++ b/elkplot/util.py @@ -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: diff --git a/poetry.lock b/poetry.lock index dc4c727..3daa254 100644 --- a/poetry.lock +++ b/poetry.lock @@ -29,6 +29,9 @@ files = [ {file = "Babel-2.13.1.tar.gz", hash = "sha256:33e0952d7dd6374af8dbf6768cc4ddf3ccfefc244f9986d4074704f2fbd18900"}, ] +[package.dependencies] +setuptools = {version = "*", markers = "python_version >= \"3.12\""} + [package.extras] dev = ["freezegun (>=1.0,<2.0)", "pytest (>=6.0)", "pytest-cov"] @@ -978,6 +981,22 @@ dev = ["click", "cython-lint (>=0.12.2)", "doit (>=0.36.0)", "mypy", "pycodestyl doc = ["jupytext", "matplotlib (>2)", "myst-nb", "numpydoc", "pooch", "pydata-sphinx-theme (==0.9.0)", "sphinx (!=4.1.0)", "sphinx-design (>=0.2.0)"] test = ["asv", "gmpy2", "mpmath", "pooch", "pytest", "pytest-cov", "pytest-timeout", "pytest-xdist", "scikit-umfpack", "threadpoolctl"] +[[package]] +name = "setuptools" +version = "69.0.2" +description = "Easily download, build, install, upgrade, and uninstall Python packages" +optional = false +python-versions = ">=3.8" +files = [ + {file = "setuptools-69.0.2-py3-none-any.whl", hash = "sha256:1e8fdff6797d3865f37397be788a4e3cba233608e9b509382a2777d25ebde7f2"}, + {file = "setuptools-69.0.2.tar.gz", hash = "sha256:735896e78a4742605974de002ac60562d286fa8051a7e2299445e8e8fbb01aa6"}, +] + +[package.extras] +docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "rst.linker (>=1.9)", "sphinx (<7.2.5)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (>=1,<2)", "sphinx-reredirects", "sphinxcontrib-towncrier"] +testing = ["build[virtualenv]", "filelock (>=3.4.0)", "flake8-2020", "ini2toml[lite] (>=0.9)", "jaraco.develop (>=7.21)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "pip (>=19.1)", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy (>=0.9.1)", "pytest-perf", "pytest-ruff", "pytest-timeout", "pytest-xdist", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"] +testing-integration = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "packaging (>=23.1)", "pytest", "pytest-enabler", "pytest-xdist", "tomli", "virtualenv (>=13.0.0)", "wheel"] + [[package]] name = "shapely" version = "2.0.2" @@ -1173,5 +1192,5 @@ watchmedo = ["PyYAML (>=3.10)"] [metadata] lock-version = "2.0" -python-versions = ">=3.11,<3.12" -content-hash = "03a6dc009905a5321b74f315bc279ab29d6654d726d1ad4c29c401626634c5cb" +python-versions = ">=3.11" +content-hash = "4050f785c81c7f12b41f2d58947ef8c2e7d970a1b499369478240047e7026307" diff --git a/pyproject.toml b/pyproject.toml index 419de0b..61e323f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = ["El Kaplan "] 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"