Skip to content

Commit 06440cb

Browse files
committed
upgrade python; keep old variant
1 parent 9b603b1 commit 06440cb

File tree

2 files changed

+91
-2
lines changed

2 files changed

+91
-2
lines changed

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ readme = "README.md"
1010
authors = [
1111
{name = "Jim Bohnslav", email = "[email protected]"},
1212
]
13-
requires-python = ">=3.7,<3.8"
13+
requires-python = ">=3.8,<3.9"
1414
classifiers = [
1515
"Programming Language :: Python :: 3",
1616
"Operating System :: OS Independent",
@@ -33,13 +33,14 @@ dependencies = [
3333
"pytorch_lightning==1.6.5",
3434
]
3535

36-
[project.optional-dependencies]
36+
[dependency-groups]
3737
dev = [
3838
"ruff>=0.1.0",
3939
"pre-commit>=2.20.0,<3.0.0",
4040
"pytest",
4141
"pytest-cov",
4242
"gdown",
43+
"ty>=0.0.1a17",
4344
]
4445

4546
[project.scripts]

pyproject_py37.toml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "deepethogram"
7+
version = "0.2.0"
8+
description = "Temporal action detection for biology"
9+
readme = "README.md"
10+
authors = [
11+
{name = "Jim Bohnslav", email = "[email protected]"},
12+
]
13+
requires-python = ">=3.7,<3.8"
14+
classifiers = [
15+
"Programming Language :: Python :: 3",
16+
"Operating System :: OS Independent",
17+
]
18+
dependencies = [
19+
"chardet<4.0",
20+
"h5py",
21+
"kornia>=0.5",
22+
"matplotlib",
23+
"numpy",
24+
"omegaconf>=2",
25+
"opencv-python-headless",
26+
"opencv-transforms",
27+
"pandas<1.4",
28+
"PySide2==5.13.2",
29+
"scikit-learn<1.1",
30+
"scipy<1.8",
31+
"tqdm",
32+
"vidio",
33+
"pytorch_lightning==1.6.5",
34+
]
35+
36+
[project.optional-dependencies]
37+
dev = [
38+
"ruff>=0.1.0",
39+
"pre-commit>=2.20.0,<3.0.0",
40+
"pytest",
41+
"pytest-cov",
42+
"gdown",
43+
]
44+
45+
[project.scripts]
46+
deepethogram = "deepethogram.gui.main:entry"
47+
48+
[tool.setuptools]
49+
packages = ["deepethogram"]
50+
51+
[tool.ruff]
52+
# Python version compatibility
53+
target-version = "py37"
54+
55+
# Same as Black.
56+
line-length = 120
57+
58+
# Exclude a variety of commonly ignored directories.
59+
exclude = [
60+
".bzr",
61+
".direnv",
62+
".eggs",
63+
".git",
64+
".git-rewrite",
65+
".hg",
66+
".mypy_cache",
67+
".nox",
68+
".pants.d",
69+
".pytype",
70+
".ruff_cache",
71+
".svn",
72+
".tox",
73+
".venv",
74+
"__pypackages__",
75+
"_build",
76+
"buck-out",
77+
"build",
78+
"dist",
79+
"node_modules",
80+
"venv",
81+
"tests/",
82+
"docs/"
83+
]
84+
85+
[tool.ruff.lint]
86+
# Allow autofix for all enabled rules (when `--fix`) is provided.
87+
fixable = ["ALL"]
88+
unfixable = []

0 commit comments

Comments
 (0)