This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Build: Switch to hatchling #100
Merged
Merged
Changes from 2 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
b1bf2a0
migrate pyproject.toml
iopapamanoglou cfb69cb
fix typer
iopapamanoglou 4f5c01b
Add C++ support
iopapamanoglou 1f9bbdf
Use hatch in gh test workflow
iopapamanoglou abee18c
test env
iopapamanoglou e89c4d8
actually run in test
iopapamanoglou 2735d53
try with manual cmake & pybind
iopapamanoglou 3fd04d4
change order lol
iopapamanoglou 845f45a
use python pybind
iopapamanoglou c61f888
cleanup
iopapamanoglou 5119a98
automatic pybind dir
iopapamanoglou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
authors = [{ name = "ioannis_iteng", email = "[email protected]" }] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit; |
||
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"] | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switch to
hatch-vcs