Initial buildout

This commit is contained in:
Jan Petykiewicz 2026-03-07 08:26:29 -08:00
commit 84b76d0f6a

View file

@ -1,30 +1,12 @@
[project]
name = "inire"
description = "Wave-router"
description = "Wave-router: Auto-routing for photonic and RF integrated circuits"
readme = "README.md"
requires-python = ">=3.11"
license = { file = "LICENSE.md" }
authors = [
{ name="Jan Petykiewicz", email="jan@mpxd.net" },
]
homepage = "https://mpxd.net/code/jan/inire"
repository = "https://mpxd.net/code/jan/inire"
keywords = [
"layout",
"CAD",
"EDA",
"mask",
"pattern",
"lithography",
"oas",
"gds",
"dxf",
"svg",
"OASIS",
"gdsii",
"gds2",
"stream",
]
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
@ -36,10 +18,22 @@ classifiers = [
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
]
dynamic = ["version"]
dependencies = []
dependencies = [
"numpy>=1.26,<3",
"scipy",
"shapely>=2.1,<3",
"rtree",
"matplotlib",
]
[project.urls]
Homepage = "https://mpxd.net/code/jan/inire"
Repository = "https://mpxd.net/code/jan/inire"
Documentation = "https://mpxd.net/code/jan/inire/src/branch/topo/DOCS.md"
[dependency-groups]
dev = [
"hypothesis>=6.151.9",
"matplotlib>=3.10.8",
"pytest>=9.0.2",
"ruff>=0.15.5",
@ -52,6 +46,14 @@ build-backend = "hatchling.build"
[tool.hatch.version]
path = "inire/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["inire"]
exclude = ["/inire/tests"]
[tool.hatch.build.targets.sdist]
exclude = ["/.agents", "/.aws", "/.codex"]
[tool.ruff]
exclude = [
".git",
@ -83,7 +85,23 @@ lint.ignore = [
"TRY003", # Long exception message
]
[tool.ruff.lint.per-file-ignores]
"inire/tests/*.py" = ["ANN", "ARG005", "PT009"]
[tool.mypy]
python_version = "3.11"
warn_unused_configs = true
exclude = ["^examples/", "^inire/tests/"]
[[tool.mypy.overrides]]
module = ["scipy.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "-rsXx"
testpaths = ["inire"]
markers = [
"performance: opt-in runtime regression checks against example-like routing scenarios",
"routing_corpus: routing coverage checks on the regression corpus and retry holdouts",
"retry_holdout: routing coverage checks on the retry holdouts",
]