diff --git a/docs/design/rf-library.md b/docs/design/rf-library.md index dd5657d..ddb5cbe 100644 --- a/docs/design/rf-library.md +++ b/docs/design/rf-library.md @@ -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 \ No newline at end of file +- `test/` - some global tests possibly for integration testing etc + +## Refactor log + +| Old | New | +|-----------|-------------------------| +| `Capture` | `src/reprostim-capture` | +| `Events` | `src/reproevents` | \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..7ad60b0 --- /dev/null +++ b/pyproject.toml @@ -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 = "vmelnik@docsultant.com" }, +] +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:", +] diff --git a/src/reprostim/__about__.py b/src/reprostim/__about__.py new file mode 100644 index 0000000..475f365 --- /dev/null +++ b/src/reprostim/__about__.py @@ -0,0 +1,3 @@ +# +# SPDX-License-Identifier: MIT +__version__ = "0.0.1" diff --git a/src/reprostim/__init__.py b/src/reprostim/__init__.py new file mode 100644 index 0000000..88b46b8 --- /dev/null +++ b/src/reprostim/__init__.py @@ -0,0 +1,2 @@ +# +# SPDX-License-Identifier: MIT diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..88b46b8 --- /dev/null +++ b/tests/__init__.py @@ -0,0 +1,2 @@ +# +# SPDX-License-Identifier: MIT