Skip to content

Commit

Permalink
Refactor as poetry-managed and src layout
Browse files Browse the repository at this point in the history
  • Loading branch information
cboulay committed Mar 12, 2024
1 parent 7a8a95f commit 0f57fbe
Show file tree
Hide file tree
Showing 35 changed files with 30 additions and 44 deletions.
1 change: 0 additions & 1 deletion pycbsdk/__init__.py

This file was deleted.

28 changes: 26 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
[tool.poetry]
name = "pycbsdk"
version = "0.1.4"
description = "Pure Python interface to Blackrock Neurotech Cerebus devices"
authors = ["Chadwick Boulay <[email protected]>"]
license = "MIT"
readme = "README.md"
packages = [
{ include = "pycbsdk", from = "src" }
]

[tool.poetry.dependencies]
python = ">=3.9,<3.13"
numpy = "^1.26.4"
aenum = "^3.1.15"
ifaddr = "^0.2.0"

[tool.poetry.group.dev.dependencies]
typer = "^0.9.0"
pytest = "^8.1.1"

[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
ezmsg-monitor = "pycbsdk.examples.print_rates:main"
35 changes: 0 additions & 35 deletions setup.cfg

This file was deleted.

6 changes: 0 additions & 6 deletions setup.py

This file was deleted.

4 changes: 4 additions & 0 deletions src/pycbsdk/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import importlib.metadata


__version__ = importlib.metadata.version("pycbsdk")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0f57fbe

Please sign in to comment.