Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Build: Switch to hatchling #100

Merged
merged 11 commits into from
Oct 24, 2024
106 changes: 59 additions & 47 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,63 +1,75 @@
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.poetry.urls]
"Bug Tracker" = "https://github.com/atopile/faebryk/issues "


[tool.poetry]
[project]
name = "faebryk"
version = "4.1.1"
authors = ["ioannis_iteng <[email protected]>"]
readme = ["README.md", "LICENSE"]
license = "MIT"
version = "4.1.2"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switch to hatch-vcs

authors = [{ name = "ioannis_iteng", email = "[email protected]" }]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update your name and email

description = "Open-source software-defined EDA"
readme = "README.md"
license = { file = "LICENSE" }
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
repository = "https://github.com/atopile/faebryk"
homepage = "https://github.com/atopile/faebryk"
requires-python = ">=3.12,<3.13"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit; ==3.12

dependencies = [
"networkx==3.3",
"numpy>=1.24.3,<3.0.0",
"scipy>=1.11.1,<=1.14.0",
"matplotlib~=3.7.1",
"sexpdata==1.0.2",
"black~=24.4.2",
"typing-extensions~=4.6.3",
"easyeda2kicad~=0.8.0",
"shapely~=2.0.1",
"freetype-py~=2.4.0",
"kicadcliwrapper~=1.0.0",
"dataclasses-json~=0.6.7",
"patool~=2.3.0",
"requests~=2.32.3",
"tortoise-orm~=0.21.3",
"rich~=13.7.1",
"typer>=0.12,<0.13",
"isort~=5.6.4",
"ruff>=0.6.4,<0.7.0",
"pint~=0.24.3",
"deprecated~=1.2.14",
"more-itertools~=10.4.0",
"psutil~=6.0.0",
]

[project.optional-dependencies]
dev = [
"pre-commit>=2.20,<4.0",
"pytest>=7.1.3,<9.0.0",
"viztracer~=0.16.3",
"pyinstrument~=4.7.1",
"gprof2dot~=2024.6.6",
"pytest-xdist~=3.6.1",
"dash~=2.18.1",
"dash_cytoscape~=1.0.2",
]

[tool.poetry.scripts]
[project.scripts]
faebryk = "faebryk.tools.main:__main__"

[tool.poetry.dependencies]
python = "^3.12,<3.13" # max allowed version by scipy
networkx = "3.3"
numpy = ">=1.24.3,<3.0.0"
scipy = "^1.11.1,<=1.14.0"
matplotlib = "^3.7.1"
sexpdata = "1.0.2"
black = "^24.4.2"
typing-extensions = "^4.6.3"
easyeda2kicad = "^0.8.0"
shapely = "^2.0.1"
freetype-py = "^2.4.0"
kicadcliwrapper = "^1.0.0"
dataclasses-json = "^0.6.7"
patool = "^2.3.0"
requests = "^2.32.3"
tortoise-orm = "^0.21.3"
rich = "^13.7.1"
typer = { version = ">=0.9,<0.13", extras = ["all"] }
isort = "^5.6.4"
ruff = ">=0.6.4,<0.7.0"
pint = "^0.24.3"
deprecated = "^1.2.14"
more-itertools = "^10.4.0"
psutil = "^6.0.0"

[tool.poetry.group.dev.dependencies]
pre-commit = ">=2.20,<4.0"
pytest = ">=7.1.3,<9.0.0"
viztracer = "^0.16.3"
pyinstrument = "^4.7.1"
gprof2dot = "^2024.6.6"
pytest-xdist = "^3.6.1"
[project.urls]
"Homepage" = "https://github.com/atopile/faebryk"
"Bug Tracker" = "https://github.com/atopile/faebryk/issues"

[tool.hatch]

[tool.hatch.build.targets.wheel]
packages = ["src/faebryk"]

[tool.hatch.envs.default]
dependencies = ["faebryk[dev]"]


[tool.pytest]
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib", "--numprocesses=auto"]

Expand Down
Loading