Skip to content

Commit 2895506

Browse files
QwlouseHackable Diffusion Authors
authored andcommitted
Kauldron 1.4.1 Release preparation
Bumped version to 1.4.1 and updated CHANGELOG.md. PiperOrigin-RevId: 890162966
1 parent 533e92c commit 2895506

File tree

3 files changed

+132
-38
lines changed

3 files changed

+132
-38
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Unittests & Auto-publish
2+
3+
# Allow to trigger the workflow manually (e.g. when deps changes)
4+
on: [push, workflow_dispatch]
5+
6+
jobs:
7+
pytest-job:
8+
runs-on: ubuntu-latest
9+
timeout-minutes: 30
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
# Install deps
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.10"
22+
# Uncomment to cache of pip dependencies (if tests too slow)
23+
# cache: pip
24+
# cache-dependency-path: '**/pyproject.toml'
25+
26+
- run: pip --version
27+
- run: pip install -e .[dev]
28+
- run: pip freeze
29+
30+
# Run tests (in parallel)
31+
- name: Run core tests
32+
run: pytest -vv -n auto
33+
34+
# Auto-publish when version is increased
35+
publish-job:
36+
# Only try to publish if:
37+
# * Repo is self (prevents running from forks)
38+
# * Branch is `main`
39+
if: |
40+
github.repository == 'google/hackable_diffusion'
41+
&& github.ref == 'refs/heads/main'
42+
needs: pytest-job # Only publish after tests are successful
43+
runs-on: ubuntu-latest
44+
permissions:
45+
contents: write
46+
timeout-minutes: 30
47+
48+
steps:
49+
# Publish the package (if local `__version__` > pip version)
50+
- uses: etils-actions/pypi-auto-publish@v1
51+
with:
52+
pypi-token: ${{ secrets.PYPI_API_TOKEN }}
53+
gh-token: ${{ secrets.GITHUB_TOKEN }}
54+
parse-changelog: true

pyproject.toml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
[project]
2+
name = "hackable_diffusion"
3+
description = "A modular toolbox to facilitate diffusion modeling."
4+
readme = "README.md"
5+
requires-python = ">=3.10"
6+
license = {file = "LICENSE"}
7+
authors = [{name = "hackable_diffusion authors", email="gdm-flows@google.com"}]
8+
classifiers = [
9+
"License :: OSI Approved :: Apache Software License",
10+
"Intended Audience :: Science/Research",
11+
]
12+
keywords = ["diffusion", "jax", "flax", "kauldron"]
13+
14+
dynamic = ["version"]
15+
16+
dependencies = [
17+
"absl-py>=2.3.1",
18+
"aiofiles>=25.1.0",
19+
"chex>=0.1.91",
20+
"einops>=0.8.1",
21+
"etils>=1.13.0",
22+
"flax>=0.12.0",
23+
"fsspec>=2025.9.0",
24+
"humanize>=4.14.0",
25+
"immutabledict>=4.2.2",
26+
"importlib_resources>=6.5.2",
27+
"jax>=0.8.0",
28+
"jaxlib>=0.8.0",
29+
"jaxtyping>=0.3.3",
30+
"markdown-it-py>=4.0.0",
31+
"mdurl>=0.1.2",
32+
"ml_dtypes>=0.5.3",
33+
"mock>=5.2.0",
34+
"msgpack>=1.1.2",
35+
"nest-asyncio>=1.6.0",
36+
"numpy>=2.3.4",
37+
"opt_einsum>=3.4.0",
38+
"optax>=0.2.6",
39+
"orbax-checkpoint>=0.11.26",
40+
"protobuf>=6.33.0",
41+
"psutil>=7.1.2",
42+
"Pygments>=2.19.2",
43+
"PyYAML>=6.0.3",
44+
"rich>=14.2.0",
45+
"scipy>=1.16.2",
46+
"simplejson>=3.20.2",
47+
"tensorstore>=0.1.78",
48+
"toolz>=1.1.0",
49+
"treescope>=0.1.10",
50+
"typeguard>=4.4.4",
51+
"typing_extensions>=4.15.0",
52+
"wadler_lindig>=0.1.7",
53+
"zipp>=3.23.0",
54+
"kauldron>=1.4.0",
55+
]
56+
57+
[project.optional-dependencies]
58+
dev = [
59+
"pytest",
60+
"pytest-xdist",
61+
"pylint>=2.6.0",
62+
"pyink",
63+
]
64+
65+
[tool.pyink]
66+
line-length = 80
67+
unstable = true
68+
pyink-indentation = 2
69+
pyink-use-majority-quotes = true
70+
71+
[build-system]
72+
requires = ["flit_core >=3.8,<4"]
73+
build-backend = "flit_core.buildapi"
74+
75+
[tool.flit.sdist]
76+
exclude = [
77+
"**/*_test.py",
78+
]

requirements.txt

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)