-
Notifications
You must be signed in to change notification settings - Fork 52
/
pyproject.toml
98 lines (91 loc) · 2.5 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[project]
# Project metadata. Available keys are documented at:
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata
name = "penzai"
description = "Penzai: A JAX research toolkit for building, editing, and visualizing neural networks."
readme = "README.md"
requires-python = ">=3.10"
license = {file = "LICENSE"}
authors = [{name = "The Penzai Authors", email="[email protected]"}]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Science/Research",
]
keywords = []
# Pip dependencies of the project.
# Note: Penzai depends on JAX, which depends on `jaxlib`, but the version of
# `jaxlib` needed depends on the user's hardware, so we cannot install it here.
dependencies = [
"absl-py>=1.4.0",
"jax>=0.4.23",
"numpy>=1.25.2",
"ordered_set>=4.1.0",
"treescope>=0.1.3",
"typing_extensions>=4.2",
]
# This is set automatically by flit using `penzai.__version__`
dynamic = ["version"]
[project.urls]
homepage = "https://github.com/google-deepmind/penzai"
repository = "https://github.com/google-deepmind/penzai"
[project.optional-dependencies]
# Extra dependencies for some toolshed modules and tests, but not
# required to use the core functionality.
# Installed through `pip install .[extras]`
extras = [
"ipython",
"flax>=0.8.2",
"optax",
"torch",
"transformers>=4.41.2",
]
# Extra dependencies for some notebook demos.
notebook = [
"ipython",
"flax>=0.8.2",
"optax",
"orbax-checkpoint",
"palettable",
]
# Development deps (unittest, linting, formating,...)
# Installed through `pip install .[dev]`
dev = [
"pylint>=2.6.0",
"pyink>=24.3.0",
"ipython",
"jupyter",
"pytest>=8.2.2",
"pytype",
]
# Requirements for building documentation.
docs = [
"ipython",
"flax>=0.8.2",
"optax",
"sphinx>=6.0.0,<7.3.0",
"sphinx-book-theme>=1.0.1",
"sphinxcontrib-katex",
"ipython>=8.8.0",
"myst-nb>=1.0.0",
"myst-parser>=3.0.1",
"matplotlib>=3.5.0",
"sphinx-collections>=0.0.1",
"sphinx_contributors",
"sphinx-hoverxref",
"jax[cpu]>=0.4.23",
]
[tool.pyink]
# Formatting configuration to follow Google style-guide
line-length = 80
unstable = true
pyink-indentation = 2
pyink-use-majority-quotes = true
[tool.pyright]
include = [ "penzai" ]
venvPath = ""
venv = ".venv"
[build-system]
requires = ["flit_core >=3.8,<4"]
build-backend = "flit_core.buildapi"