-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: migrate to uv * build: remove unneeded deps
- Loading branch information
Showing
8 changed files
with
865 additions
and
74 deletions.
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
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
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,26 +1,26 @@ | ||
.PHONY: install dev tests lint docs clean build updateschema | ||
|
||
install: | ||
pip install . | ||
uv pip install . | ||
|
||
dev: | ||
pip install -e . | ||
uv pip install -e . | ||
|
||
tests: | ||
pytest . | ||
uv run pytest . | ||
|
||
lint: | ||
pre-commit run --all-files | ||
uv run pre-commit run --all-files | ||
|
||
docs: | ||
sphinx-apidoc -f -o docs/source/ phir | ||
sphinx-build -M html docs/source/ docs/build/ | ||
uv run sphinx-apidoc -f -o docs/source/ phir | ||
uv run sphinx-build -M html docs/source/ docs/build/ | ||
|
||
clean: | ||
rm -rf *.egg-info dist build docs/build | ||
|
||
build: clean | ||
python -m build --sdist --wheel -n | ||
uv build | ||
|
||
updateschema: install | ||
phir-cli -s > schema.json | ||
uv run phir-cli -s > schema.json |
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
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,20 +1,16 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=64", | ||
"setuptools_scm>=8", | ||
"wheel", | ||
] | ||
requires = ["setuptools>=64", "setuptools_scm>=8", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "phir" | ||
description = "A data model and validation tool for PHIR (PECOS High-level Intermediate Representation)." | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
license = {file = "LICENSE"} | ||
license = { file = "LICENSE" } | ||
authors = [ | ||
{name = "Kartik Singhal", email = "[email protected]" }, | ||
{name = "Ciarán Ryan-Anderson", email = "[email protected]" }, | ||
{ name = "Kartik Singhal", email = "[email protected]" }, | ||
{ name = "Ciarán Ryan-Anderson", email = "[email protected]" }, | ||
] | ||
classifiers = [ | ||
"Environment :: Console", | ||
|
@@ -28,15 +24,19 @@ classifiers = [ | |
"Typing :: Typed", | ||
] | ||
dynamic = ["version"] | ||
dependencies = ["pydantic", "rich"] | ||
dependencies = [ | ||
"pydantic==2.10.6", | ||
"rich==13.9.4" | ||
] | ||
|
||
[project.optional-dependencies] | ||
docs = [ | ||
"autodoc-pydantic", | ||
"pydata_sphinx_theme", | ||
"sphinx", | ||
[dependency-groups] | ||
dev = [ | ||
"autodoc-pydantic==2.2.0", | ||
"pre-commit==4.1.0", | ||
"pydata_sphinx_theme==0.16.1", | ||
"pytest==8.3.4", | ||
"sphinx==8.1.3", | ||
] | ||
tests = ["pytest"] | ||
|
||
[project.scripts] | ||
phir-cli = "phir.cli:main" | ||
|
@@ -53,9 +53,7 @@ where = ["."] | |
"phir" = ["py.typed"] | ||
|
||
[tool.pytest.ini_options] | ||
pythonpath = [ | ||
"." | ||
] | ||
pythonpath = ["."] | ||
|
||
[tool.setuptools_scm] | ||
version_scheme = "python-simplified-semver" |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.