Skip to content

Commit ce3a500

Browse files
authored
Merge pull request #16 from MilagrosMarin/dev-milagros
feat: update installation to pyproject.toml & env.yml & update pre-commit
2 parents 2780037 + 3a642a3 commit ce3a500

File tree

6 files changed

+75
-46
lines changed

6 files changed

+75
-46
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ repos:
1010
- id: end-of-file-fixer
1111
- id: check-yaml
1212
- id: check-added-large-files # prevent giant files from being committed
13+
args: ['--maxkb=1000']
1314
- id: requirements-txt-fixer
1415
- id: mixed-line-ending
1516
args: ["--fix=lf"]

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
44
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.
55

6+
## [0.3.2] - 2025-08-25
7+
+ Feat - modernize packaging and environment management migrating from `setup.py` to `pyproject.toml`and `env.yml`
8+
+ Fix - JAX compatibility issues
9+
+ Add - update pre-commit hooks
10+
611
## [0.3.1] - 2025-06-27
712

813
+ Fix - `setup.py` to install `keypoint-moseq` as a required dependency

element_moseq/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Package metadata
33
"""
44

5-
__version__ = "0.3.1"
5+
__version__ = "0.3.2"

env.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
channels:
2+
- conda-forge
3+
- defaults
4+
dependencies:
5+
- pip
6+
- python<3.11
7+
8+
name: element_moseq

pyproject.toml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
[build-system]
2+
requires = ["setuptools>=62.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "element-moseq"
7+
version = "0.3.1"
8+
description = "Keypoint-MoSeq DataJoint Element"
9+
readme = "README.md"
10+
license = {text = "MIT"}
11+
authors = [
12+
{name = "DataJoint", email = "[email protected]"}
13+
]
14+
keywords = ["neuroscience", "keypoint-moseq", "science", "datajoint","workflow"]
15+
classifiers = [
16+
"Operating System :: OS Independent",
17+
"Topic :: Software Development :: Libraries :: Python Modules",
18+
"License :: OSI Approved :: MIT License",
19+
"Programming Language :: Python :: 3",
20+
]
21+
requires-python = ">=3.10,<3.12"
22+
dependencies = [
23+
"datajoint>=0.14.0",
24+
"ipykernel>=6.0.1",
25+
"ipywidgets",
26+
"opencv-python",
27+
"keypoint-moseq==0.4.8",
28+
"dynamax==0.1.4",
29+
"jax==0.4.13",
30+
"jaxlib==0.4.13",
31+
"jaxtyping==0.2.14",
32+
"jupyter_bokeh",
33+
]
34+
35+
[project.optional-dependencies]
36+
elements = [
37+
"element-lab @ git+https://github.com/datajoint/element-lab.git",
38+
"element-session @ git+https://github.com/datajoint/element-session.git",
39+
"element-interface @ git+https://github.com/datajoint/element-interface.git",
40+
"element-animal @ git+https://github.com/datajoint/element-animal.git",
41+
]
42+
tests = [
43+
"pytest",
44+
"pytest-cov",
45+
"shutils",
46+
]
47+
48+
[project.urls]
49+
Homepage = "https://github.com/datajoint/element-moseq"
50+
Repository = "https://github.com/datajoint/element-moseq"
51+
Documentation = "https://github.com/datajoint/element-moseq"
52+
53+
[tool.setuptools.packages.find]
54+
exclude = ["contrib", "docs", "tests*"]
55+
56+
[tool.setuptools.package-data]
57+
"*" = ["*.md", "*.txt", "*.yml", "*.yaml"]
58+
59+
[tool.setuptools.exclude-package-data]
60+
"*" = ["*.pyc", "*.pyo", "*.pyd", "__pycache__", "*.so"]

setup.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)