Skip to content

Commit

Permalink
ReproStim library empty project with hatch, #116.
Browse files Browse the repository at this point in the history
  • Loading branch information
vmdocua authored and yarikoptic committed Dec 18, 2024
1 parent e4433a8 commit baf9691
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/design/rf-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,11 @@ Refactor stuff here into cleanly separated and documented libraries etc.
- `reprostim-capture/` - C++ code(s) relating to capturing
- `lib/` - Magewell SDK
- `reproevents/` - move MicroPython ReproEvents here (do not strive to make it work)
- `test/` - some global tests possibly for integration testing etc
- `test/` - some global tests possibly for integration testing etc

## Refactor log

| Old | New |
|-----------|-------------------------|
| `Capture` | `src/reprostim-capture` |
| `Events` | `src/reproevents` |
61 changes: 61 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "reprostim"
dynamic = ["version"]
description = 'ReproStim is a video capture and recording suite for neuroimaging and psychology experiments.'
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
keywords = []
authors = [
{ name = "Vadim Melnik", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"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 :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = []

[project.urls]
Documentation = "https://github.com/ReproNim/reprostim"
Issues = "https://github.com/ReproNim/reprostim/issues"
Source = "https://github.com/ReproNim/reprostim"

[tool.hatch.version]
path = "src/reprostim/__about__.py"

[tool.hatch.envs.types]
extra-dependencies = [
"mypy>=1.0.0",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/reprostim tests}"

[tool.coverage.run]
source_pkgs = ["reprostim", "tests"]
branch = true
parallel = true
omit = [
"src/reprostim/__about__.py",
]

[tool.coverage.paths]
reprostim = ["src/reprostim", "*/reprostim/src/reprostim"]
tests = ["tests", "*/reprostim/tests"]

[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
3 changes: 3 additions & 0 deletions src/reprostim/__about__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#
# SPDX-License-Identifier: MIT
__version__ = "0.0.1"
2 changes: 2 additions & 0 deletions src/reprostim/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#
# SPDX-License-Identifier: MIT
2 changes: 2 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#
# SPDX-License-Identifier: MIT

0 comments on commit baf9691

Please sign in to comment.