Skip to content

Commit 4b89b4a

Browse files
committed
Fix: Add flax to dependencies and set static version
1 parent d663af8 commit 4b89b4a

File tree

1 file changed

+47
-8
lines changed

1 file changed

+47
-8
lines changed

pyproject.toml

Lines changed: 47 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ dependencies = [
2727
"numpyro>=0.11.0",
2828
"dm-haiku>=0.0.5",
2929
"dunamai==1.19.2",
30-
"jaxopt", # TODO: do we want to require this?
30+
"jaxopt",
31+
"flax"
3132
]
3233

33-
dynamic = ["version"]
34+
version = "0.1.9"
3435

3536
[project.optional-dependencies]
3637
test = [
@@ -42,18 +43,56 @@ test = [
4243

4344
[tool.black]
4445
line-length = 127
45-
include = '\.pyi?$'
46+
include = '.pyi?
47+
4648
exclude = '''
4749
/(
48-
| \.git
49-
| \.hg
50-
| \.mypy_cache
51-
| \.tox
52-
| \.venv
50+
| .git
51+
| .hg
52+
| .mypy_cache
53+
| .tox
54+
| .venv
5355
| _build
5456
| buck-out
5557
| build
5658
| dist
5759
| docs/source/conf.py
5860
)/
5961
'''
62+
63+
[tool.flit.module]
64+
name = "gpax"
65+
66+
[tool.flit.sdist]
67+
exclude = [
68+
"docs/",
69+
"examples/",
70+
"tests/",
71+
"images/",
72+
"*.ipynb",
73+
"*.png",
74+
"*.gif",
75+
"*.jpg",
76+
"*.sh",
77+
"*.yml",
78+
"*.toml",
79+
"*.md",
80+
"*.txt",
81+
"*.rst",
82+
"*.bat",
83+
"Makefile",
84+
"LICENSE",
85+
".flake8",
86+
".DS_Store",
87+
".pytest_cache/",
88+
".vscode/",
89+
"__pycache__/",
90+
"*.pyc",
91+
"*.code-workspace"
92+
]
93+
include = [
94+
"gpax/",
95+
"LICENSE",
96+
"pyproject.toml",
97+
"README.md"
98+
]

0 commit comments

Comments
 (0)