-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #663 from google/uv-port
python: poetry => uv port
- Loading branch information
Showing
28 changed files
with
941 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,40 @@ | ||
[tool.poetry] | ||
[project] | ||
name = "magika" | ||
version = "0.6.0-dev" | ||
description = "A tool to determine the content type of a file with deep learning" | ||
authors = ["Magika Developers <[email protected]>"] | ||
authors = [ | ||
{author = "Magika Developers", email = "[email protected]"}, | ||
] | ||
readme = "README.md" | ||
license = "Apache License 2.0" | ||
packages = [{include = "magika"}] | ||
license = "Apache-2.0" | ||
requires-python = ">=3.8" | ||
dynamic = ["version"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8,<3.13" | ||
click = "^8.1.3" | ||
onnxruntime = "^1.19.0" | ||
numpy = [ | ||
{version = "^1.24", python = ">=3.8,<3.9"}, | ||
{version = "^1.26", python = ">=3.9,<3.10"}, | ||
{version = "^2.1.0", python = ">=3.10,<3.13"}, | ||
dependencies = [ | ||
"click>=8.1.7", | ||
"onnxruntime>=1.19.0", | ||
"numpy>=1.24; python_version >= '3.8' and python_version < '3.9'", | ||
"numpy>=1.26; python_version >= '3.9' and python_version < '3.10'", | ||
"numpy>=2.1.0; python_version >= '3.10'", | ||
"python-dotenv>=1.0.1", | ||
"requests>=2.32.3", | ||
] | ||
python-dotenv = "^1.0.1" | ||
mypy = "1.11.2" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pytest = "^8.3.2" | ||
ipython = [ | ||
{version = "^8.12.3", python = ">=3.8,<3.9"}, | ||
{version = "^8.18.1", python = ">=3.9,<3.10"}, | ||
{version = "^8.21.0", python = ">=3.10,<3.13"} | ||
[tool.uv] | ||
dev-dependencies = [ | ||
"mypy>=1.11.2", | ||
"ipython>=8.12.3; python_version >= '3.8' and python_version < '3.9'", | ||
"ipython>=8.18.1; python_version >= '3.9' and python_version < '3.10'", | ||
"ipython>=8.21.0; python_version >= '3.10'", | ||
"pytest>=8.3.2", | ||
"ruff>=0.6.3", | ||
] | ||
ruff = ">=0.2.2,<0.7.0" | ||
mypy = "^1.11.2" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch.version] | ||
path = "src/magika/__init__.py" | ||
|
||
[tool.ruff.lint] | ||
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. | ||
|
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 |
---|---|---|
|
@@ -13,6 +13,9 @@ | |
# limitations under the License. | ||
|
||
|
||
__version__ = "0.6.0-dev0" | ||
|
||
|
||
import dotenv | ||
|
||
from magika import magika | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Large diffs are not rendered by default.
Oops, something went wrong.