-
Notifications
You must be signed in to change notification settings - Fork 5
feat: move to uv from pip #275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 16 commits
9f7e2f3
f56415b
078c696
5b18118
18972c6
0225a55
a82e3e2
4b2ec82
8508e66
8bec0ab
ec81e2e
cee3efb
33a8242
e2feed4
a8c8f81
9d913f9
4bed238
2761e23
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -62,3 +62,10 @@ repos: | |||||
| types: [python] | ||||||
| pass_filenames: true | ||||||
| exclude: ^(src/inference_endpoint/openai/openai_types_gen.py)$ | ||||||
|
|
||||||
| - id: uv-lock-check | ||||||
| name: Check uv.lock is up-to-date | ||||||
| entry: uv lock --check | ||||||
| language: system | ||||||
viraatc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| pass_filenames: false | ||||||
| files: ^pyproject\.toml$ | ||||||
|
||||||
| files: ^pyproject\.toml$ | |
| files: ^(pyproject\.toml|uv\.lock)$ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 3.12 | ||
viraatc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,20 @@ | ||
| [build-system] | ||
| requires = ["setuptools==78.1.1", "wheel==0.46.3"] | ||
| build-backend = "setuptools.build_meta" | ||
| requires = ["uv_build>=0.7.6,<0.8"] | ||
viraatc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| build-backend = "uv_build" | ||
|
Comment on lines
1
to
+3
|
||
|
|
||
| [tool.uv] | ||
| index-url = "https://pypi.org/simple" | ||
| environments = [ | ||
| "sys_platform == 'linux' and platform_machine == 'x86_64'", | ||
| "sys_platform == 'linux' and platform_machine == 'aarch64'", | ||
| "sys_platform == 'darwin' and platform_machine == 'x86_64'", | ||
| "sys_platform == 'darwin' and platform_machine == 'arm64'", | ||
viraatc marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ] | ||
|
|
||
| [tool.uv-build] | ||
| module-root = "src" | ||
| data = {"inference_endpoint" = ["config/templates/*.yaml"]} | ||
viraatc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| exclude = ["evaluation/livecodebench/_server.py"] | ||
viraatc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
viraatc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| [project] | ||
| name = "inference-endpoint" | ||
|
|
@@ -112,21 +126,6 @@ Documentation = "https://github.com/mlperf/inference-endpoint#readme" | |
| Repository = "https://github.com/mlperf/inference-endpoint.git" | ||
| Issues = "https://github.com/mlperf/inference-endpoint/issues" | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| where = ["src"] | ||
|
|
||
| [tool.setuptools.package-dir] | ||
| "" = "src" | ||
|
|
||
| [tool.setuptools.package-data] | ||
| inference_endpoint = ["config/templates/*.yaml"] | ||
|
|
||
| [tool.setuptools.exclude-package-data] | ||
| "inference_endpoint.evaluation.livecodebench" = ["_server.py"] | ||
|
|
||
| [tool.autopep8] | ||
| max_line_length = 88 | ||
|
|
||
| [tool.ruff] | ||
| target-version = "py312" | ||
| line-length = 88 | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.