From c406dd4719b18f137f6e292c544a056052fcb2c9 Mon Sep 17 00:00:00 2001 From: Kenneth Yang <82800265+kjy5@users.noreply.github.com> Date: Wed, 11 Dec 2024 16:44:54 -0800 Subject: [PATCH] 396 update to python 313 (#405) * Bump version, enabled 3.13 * Update to 3.13.1, removed pythonnet, added packaging --- pyproject.toml | 78 ++++++++++++++++++------------------- src/ephys_link/__about__.py | 2 +- 2 files changed, 39 insertions(+), 41 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c63fa32..7d73fef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,18 +7,17 @@ name = "ephys-link" dynamic = ["version"] description = "A Python Socket.IO server that allows any Socket.IO-compliant application to communicate with manipulators used in electrophysiology experiments." readme = "README.md" -requires-python = ">=3.10, <3.13" +requires-python = ">=3.10, <3.14" license = "GPL-3.0-only" keywords = ["socket-io", "manipulator", "electrophysiology", "ephys", "sensapex", "neuroscience", "neurotech", "virtualbrainlab", "new-scale"] authors = [{ name = "Kenneth Yang", email = "kjy5@uw.edu" }] maintainers = [{ name = "Kenneth Yang", email = "kjy5@uw.edu" }] classifiers = [ "Programming Language :: Python", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: Python :: 3", @@ -32,14 +31,14 @@ classifiers = [ dependencies = [ "aiohttp==3.11.10", "colorama==0.4.6", + "packaging==24.2", "platformdirs==4.3.6", "pyserial==3.5", "python-socketio[asyncio_client]==5.11.4", - "pythonnet==3.0.4", "requests==2.32.3", "sensapex==1.400.3", "rich==13.9.4", - "vbl-aquarium==0.0.22" + "vbl-aquarium==0.0.23" ] [project.urls] @@ -59,29 +58,28 @@ path = "src/ephys_link/__about__.py" exclude = ["/.github", "/.idea"] [tool.hatch.envs.default] -python = "3.12" +python = "3.13.1" dependencies = [ - "mypy", - "coverage[toml]>=6.5", - "pytest", -] -[tool.hatch.envs.default.scripts] -test = "pytest {args:tests}" -test-cov = "coverage run -m pytest {args:tests}" -cov-report = [ - "- coverage combine", - "coverage report", -] -cov = [ - "test-cov", - "cov-report", +# "coverage[toml]>=6.5", +# "pytest", ] +#[tool.hatch.envs.default.scripts] +#test = "pytest {args:tests}" +#test-cov = "coverage run -m pytest {args:tests}" +#cov-report = [ +# "- coverage combine", +# "coverage report", +#] +#cov = [ +# "test-cov", +# "cov-report", +#] #[[tool.hatch.envs.all.matrix]] #python = ["3.8", "3.9", "3.10", "3.11", "3.12"] [tool.hatch.envs.exe] -python = "3.12" +python = "3.13" dependencies = [ "pyinstaller", ] @@ -91,7 +89,7 @@ build_onefile = "pyinstaller.exe ephys_link.spec -y" build_clean = "pyinstaller.exe ephys_link.spec -y --clean" [tool.hatch.envs.types] -python = "3.12" +python = "3.13" skip-install = true dependencies = [ "mypy", @@ -99,24 +97,24 @@ dependencies = [ [tool.hatch.envs.types.scripts] check = "mypy --strict --install-types --non-interactive --ignore-missing-imports {args:src/ephys_link tests}" -[tool.coverage.run] -source_pkgs = ["ephys_link", "tests"] -branch = true -parallel = true -omit = [ - "src/ephys_link/__about__.py", -] - -[tool.coverage.paths] -ephys_link = ["src/ephys_link", "*/ephys-link/src/ephys_link"] -tests = ["tests", "*/ephys-link/tests"] - -[tool.coverage.report] -exclude_lines = [ - "no cov", - "if __name__ == .__main__.:", - "if TYPE_CHECKING:", -] +#[tool.coverage.run] +#source_pkgs = ["ephys_link", "tests"] +#branch = true +#parallel = true +#omit = [ +# "src/ephys_link/__about__.py", +#] +# +#[tool.coverage.paths] +#ephys_link = ["src/ephys_link", "*/ephys-link/src/ephys_link"] +#tests = ["tests", "*/ephys-link/tests"] +# +#[tool.coverage.report] +#exclude_lines = [ +# "no cov", +# "if __name__ == .__main__.:", +# "if TYPE_CHECKING:", +#] [tool.ruff.lint] extend-ignore = ["DTZ005"] \ No newline at end of file diff --git a/src/ephys_link/__about__.py b/src/ephys_link/__about__.py index 24781e7..dc1c035 100644 --- a/src/ephys_link/__about__.py +++ b/src/ephys_link/__about__.py @@ -1 +1 @@ -__version__ = "2.0.0b6" +__version__ = "2.0.0b7"