Skip to content

Commit

Permalink
chore: use uv
Browse files Browse the repository at this point in the history
  • Loading branch information
Mah Neh committed Sep 21, 2024
1 parent f66ef70 commit 7811c29
Show file tree
Hide file tree
Showing 3 changed files with 1,533 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.10
3.12
62 changes: 37 additions & 25 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#================={PROJECT CONFIGURATION===================
#================={ PROJECT CONFIGURATION }===================
[project]
name = "keras-tuner"
description = "A Hyperparameter Tuning Library for Keras"
Expand All @@ -12,41 +12,46 @@ authors = [
]
keywords = ["Hyperparameters", "Tuning", "Machine Learning"]

#================={ DEPENDENCIES }===================
dependencies = [
"requests=^2.32.3",
"requests>=2.32.3",
"protobuf>=4.25,<5.0",
"keras >=3.0",
"keras>=3.0",
"numpy<2",
"grpcio-tools>1.5,<1.66",

]

[tool.hatch.version]
path = "keras_tuner/__version__.py"

classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache 2.0 License",
"License :: OSI Approved :: Apache Software License",
# tested versions
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]


[project.optional-dependencies]

dev = ["pyright=^1.1.381", "ruff=^0.6.6", "pre-commit=^3.8.0"]
backends = ["tensorflow=^2.0", "torch=^2.4.1", "jax=^0.4.33"]
bayesian = ["scikit-learn=^1.5.2", "scipy=^1.14.1"]
test = [
"ipython=^8.27.0",
"pandas=^2.2.2",
"portpicker=^1.6.0",
"pytest=^8.3.3",
"pytest-cov=^5.0.0",
"pytest-xdist=^3.6.1",
"scikit-learn=^1.5.2",
"scipy=^1.14.1",
bayesian = ["scikit-learn>=1.5.2", "scipy>=1.14.1"]
backends = ["jax[cpu]>=0.4.33", "tensorflow>=2.17"]
tests = [
"ipython>=8.27.0",
"pandas>=2.2.3",
"portpicker>=1.6.0",
"pytest>=8.3.3",
"pytest-cov>=5.0.0",
"pytest-xdist>=3.6.1",
"scikit-learn>=1.5.2",
"scipy>=1.14.1",
]
dev = [
"pre-commit>=3.8.0",
"pyright>=1.1.381",
"ruff>=0.6.6",
]

[project.urls]
"Issue tracker" = "https://github.com/ghsanti/keras-tuner/issues"
github = "https://github.com/ghsanti/keras-tuner"
changelog = "https://github.com/ghsanti/keras-tuner/blob/master/CHANGELOG.md"
Expand All @@ -57,9 +62,13 @@ changelog = "https://github.com/ghsanti/keras-tuner/blob/master/CHANGELOG.md"
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.version]
path = "keras_tuner/__init__.py"

#================={TOOLS CONFIGURATION}===================
# ruff, pyright, ruff.lint, ruff.format, pytest, codecov.
#================={TOOLS}===================
[tool.ruff]
include = ["./src"]
exclude = [
Expand Down Expand Up @@ -98,7 +107,7 @@ stubPath = "src/stubs"
reportMissingImports = "error"
reportMissingTypeStubs = false

pythonVersion = "3.11"
pythonVersion = "3.12"

[tool.ruff.lint] # for code best practices.

Expand Down Expand Up @@ -159,3 +168,6 @@ addopts = "-vv -p no:warnings --log-cli-level=CRITICAL --durations=10"
[tool.coverage.report]
exclude_lines = ["pragma: no cover", "@abstract", "raise NotImplementedError"]
omit = ["*test*", "src/**/protos/*", "src/**/distribute/file_utils.py"]

[tool.uv.sources]
torch = { url = "https://files.pythonhosted.org/packages/ea/ea/4ab009e953bca6ff35ad75b8ab58c0923308636c182c145dc63084f7d136/torch-2.4.1-cp311-cp311-manylinux1_x86_64.whl" }
Loading

0 comments on commit 7811c29

Please sign in to comment.