-
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.
Support 3.13 and migrate uv from PDM
- Loading branch information
Showing
16 changed files
with
630 additions
and
553 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,3 +168,6 @@ cython_debug/ | |
|
||
# macOS | ||
.DS_Store | ||
|
||
# Development | ||
.python-version |
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,6 +1,6 @@ | ||
{ | ||
"recommendations": [ | ||
"ms-python.black-formatter", | ||
"ms-python.vscode-pylanc" | ||
"charliermarsh.ruff", | ||
"ms-python.python" | ||
] | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -2,52 +2,53 @@ | |
name = "i21y" | ||
description = "The simple library for i18n support." | ||
authors = [ | ||
{name = "Takagi Tasuku", email = "[email protected]"}, | ||
{ name = "Takagi Tasuku", email = "[email protected]" }, | ||
] | ||
dependencies = [] | ||
requires-python = ">=3.11" | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
license = { file = "LICENSE" } | ||
keywords = ["i18n"] | ||
classifiers = [ | ||
"Programming Language :: Python :: 3.13", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: Software Development :: Internationalization", | ||
"Typing :: Typed" | ||
] | ||
include = ["i21y/py.typed"] | ||
requires-python = ">=3.11" | ||
dependencies = [] | ||
dynamic = ["version"] | ||
|
||
[tool.pdm] | ||
version = {source = "file", path = "src/i21y/__init__.py"} | ||
[project.optional-dependencies] | ||
yaml = ["pyyaml~=6.0"] | ||
fast_json = ["orjson~=3.10"] | ||
|
||
[tool.uv] | ||
dev-dependencies = [ | ||
"myst-parser>=4.0.0", | ||
"pytest>=8.3.3", | ||
"sphinx>=8.1.2", | ||
"sphinx-intl>=2.2.0", | ||
"ruff>=0.6.9", | ||
] | ||
|
||
[project.urls] | ||
Source = "https://github.com/tasuren/i21y" | ||
Documentation = "https://i21y.readthedocs.io/" | ||
Donate = "https://www.buymeacoffee.com/tasuren" | ||
Chat = "https://discord.gg/kfMwZUyGFG" | ||
|
||
[optional-dependencies] | ||
yaml = ["pyyaml~=6.0"] | ||
fast_json = ["orjson~=3.8.6"] | ||
|
||
[tool.pdm.dev-dependencies] | ||
test = [ | ||
"pytest~=7.1.2", | ||
"pyyaml~=6.0", | ||
"orjson~=3.8.6" | ||
] | ||
doc = [ | ||
"sphinx", | ||
"sphinx-intl", | ||
"myst-parser" | ||
] | ||
[tool.pytest.ini_options] | ||
addopts = ["--import-mode=importlib"] | ||
testpaths = ["tests"] | ||
|
||
[build-system] | ||
requires = ["pdm-backend"] | ||
build-backend = "pdm.backend" | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch.version] | ||
path = "src/i21y/__init__.py" | ||
|
||
[tool.pyright] | ||
typingCheckMode = "basic" | ||
[tool.hatch.metadata] | ||
allow-direct-references = true | ||
|
||
[tool.black] | ||
target-version = ['py311'] | ||
[tool.hatch.build.targets.wheel] | ||
packages = ["src/i21y"] |
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,7 +1,7 @@ | ||
__author__ = "Takagi Tasuku" | ||
__version__ = "0.2.0" | ||
__version__ = "0.3.0" | ||
__all__ = ("Translator", "I21YError", "TranslationNotFound", "locale_str") | ||
|
||
from .translator import Translator | ||
from .error import I21YError, TranslationNotFound | ||
from .translator import Translator | ||
from .utils import locale_str |
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
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
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
Oops, something went wrong.