-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python 3.11, Pydantic 2.0, switch away from poetry
- Loading branch information
Showing
16 changed files
with
128 additions
and
1,610 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,17 +12,17 @@ pip install tyro | |
## Development | ||
|
||
If you're interested in development, the recommended way to install `tyro` is | ||
via [poetry](https://github.com/python-poetry/poetry). | ||
via `pip`. | ||
|
||
```bash | ||
# Clone repository and install. | ||
git clone [email protected]:brentyi/tyro.git | ||
cd tyro | ||
poetry install | ||
python -m pip install -e ".[dev]" | ||
|
||
# Run tests. | ||
poetry run pytest | ||
pytest | ||
|
||
# Check types. | ||
poetry run mypy --install-types . | ||
mypy --install-types . | ||
``` |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,63 @@ | ||
[tool.poetry] | ||
[build-system] | ||
requires = ["setuptools>=61.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "tyro" | ||
authors = [ | ||
{name = "brentyi", email = "[email protected]"}, | ||
] | ||
version = "0.5.3" | ||
description = "Strongly typed, zero-effort CLI interfaces" | ||
authors = ["brentyi <[email protected]>"] | ||
include = ["./tyro/**/*"] | ||
readme = "README.md" | ||
repository = "https://github.com/brentyi/tyro" | ||
homepage = "https://github.com/brentyi/tyro" | ||
documentation = "https://brentyi.github.io/tyro/" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.7" | ||
docstring-parser = "^0.14.1" | ||
typing-extensions = "^4.3.0" | ||
PyYAML = "^6.0" | ||
"backports.cached-property" = { version = "^1.0.2", python = "~3.7" } | ||
colorama = {version = "^0.4.0", platform = "win32"} | ||
frozendict = "^2.3.4" | ||
rich = ">=11.1.0" | ||
shtab = "^1.5.6" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pytest = "^7.1.2" | ||
pytest-cov = "^3.0.0" | ||
omegaconf = "^2.2.2" | ||
attrs = "^21.4.0" | ||
torch = "^1.10.0" | ||
pyright = "^1.1.264" | ||
mypy = "^0.991" | ||
numpy = ">=1.20.0" | ||
flax = "^0.6.0" | ||
pydantic = "^1.10.2" | ||
coverage = {extras = ["toml"], version = "^6.5.0"} | ||
license = { text="MIT" } | ||
requires-python = ">=3.7" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent" | ||
] | ||
dependencies = [ | ||
"docstring-parser>=0.14.1", | ||
"typing-extensions>=4.3.0", | ||
"PyYAML>=6.0", | ||
"backports.cached-property>=1.0.2; python_version<'3.8'", | ||
"colorama>=0.4.0; platform_system=='Windows'", | ||
"frozendict>=2.3.4", | ||
"rich>=11.1.0", | ||
"shtab>=1.5.6" | ||
] | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
[project.optional-dependencies] | ||
dev = [ | ||
"pytest>=7.1.2", | ||
"pytest-cov>=3.0.0", | ||
"omegaconf>=2.2.2", | ||
"attrs>=21.4.0", | ||
"torch>=1.10.0", | ||
"pyright>=1.1.264", | ||
"mypy>=0.991", | ||
"numpy>=1.20.0", | ||
"flax>=0.6.0", | ||
"pydantic>=1.10.2", | ||
"coverage[toml]>=6.5.0" | ||
] | ||
|
||
[project.urls] | ||
"GitHub" = "https://github.com/brentyi/tyro" | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = [ | ||
"tests*" | ||
] | ||
|
||
[tool.setuptools.package-data] | ||
tyro = ["py.typed"] | ||
|
||
[tool.isort] | ||
profile = "black" | ||
|
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