Skip to content

Commit

Permalink
396 update to python 313 (#405)
Browse files Browse the repository at this point in the history
* Bump version, enabled 3.13

* Update to 3.13.1, removed pythonnet, added packaging
  • Loading branch information
kjy5 authored Dec 12, 2024
1 parent 8c367f5 commit c406dd4
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 41 deletions.
78 changes: 38 additions & 40 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]" }]
maintainers = [{ name = "Kenneth Yang", email = "[email protected]" }]
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",
Expand All @@ -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]
Expand All @@ -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",
]
Expand All @@ -91,32 +89,32 @@ 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",
]
[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"]
2 changes: 1 addition & 1 deletion src/ephys_link/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.0.0b6"
__version__ = "2.0.0b7"

0 comments on commit c406dd4

Please sign in to comment.