lookbook 0.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ *.ipynb linguist-documentation
@@ -0,0 +1,209 @@
1
+ name: Continuous Integration (uv)
2
+ on: [push, pull_request]
3
+
4
+ # Note: Environment variables (PROJECT_NAME and vars from [tool.wads.ci.env])
5
+ # are set by the read-ci-config action in the setup job and made available
6
+ # to all subsequent jobs via GITHUB_ENV
7
+
8
+ jobs:
9
+ # First job: Read configuration from pyproject.toml
10
+ setup:
11
+ name: Read Configuration
12
+ runs-on: ubuntu-latest
13
+ outputs:
14
+ project-name: ${{ steps.config.outputs.project-name }}
15
+ python-versions: ${{ steps.config.outputs.python-versions }}
16
+ pytest-args: ${{ steps.config.outputs.pytest-args }}
17
+ coverage-enabled: ${{ steps.config.outputs.coverage-enabled }}
18
+ exclude-paths: ${{ steps.config.outputs.exclude-paths }}
19
+ test-on-windows: ${{ steps.config.outputs.test-on-windows }}
20
+ build-sdist: ${{ steps.config.outputs.build-sdist }}
21
+ build-wheel: ${{ steps.config.outputs.build-wheel }}
22
+ metrics-enabled: ${{ steps.config.outputs.metrics-enabled }}
23
+ metrics-config-path: ${{ steps.config.outputs.metrics-config-path }}
24
+ metrics-storage-branch: ${{ steps.config.outputs.metrics-storage-branch }}
25
+ metrics-python-version: ${{ steps.config.outputs.metrics-python-version }}
26
+ metrics-force-run: ${{ steps.config.outputs.metrics-force-run }}
27
+
28
+ steps:
29
+ - uses: actions/checkout@v4
30
+
31
+ - name: Set up uv
32
+ uses: astral-sh/setup-uv@v5
33
+
34
+ - name: Set up Python
35
+ run: uv python install 3.11
36
+
37
+ - name: Read CI Config
38
+ id: config
39
+ uses: i2mint/wads/actions/read-ci-config@master
40
+ with:
41
+ pyproject-path: .
42
+
43
+ # Second job: Validation using the config
44
+ validation:
45
+ name: Validation
46
+ if: "!contains(github.event.head_commit.message, '[skip ci]')"
47
+ needs: setup
48
+ runs-on: ubuntu-latest
49
+ strategy:
50
+ matrix:
51
+ python-version: ${{ fromJson(needs.setup.outputs.python-versions) }}
52
+
53
+ steps:
54
+ - uses: actions/checkout@v4
55
+
56
+ - name: Set up uv
57
+ uses: astral-sh/setup-uv@v5
58
+ with:
59
+ enable-cache: true
60
+
61
+ - name: Set up Python ${{ matrix.python-version }}
62
+ uses: i2mint/wads/actions/setup-python-uv@master
63
+ with:
64
+ python-version: ${{ matrix.python-version }}
65
+
66
+ - name: Install System Dependencies
67
+ uses: i2mint/wads/actions/install-system-deps@master
68
+ with:
69
+ pyproject-path: .
70
+
71
+ - name: Install Dependencies
72
+ uses: i2mint/wads/actions/install-deps-uv@master
73
+
74
+ - name: Format Source Code
75
+ run: uvx ruff format .
76
+
77
+ - name: Lint Validation
78
+ run: uvx ruff check --output-format=github ${{ needs.setup.outputs.project-name }}
79
+
80
+ - name: Run Tests
81
+ uses: i2mint/wads/actions/run-tests-uv@master
82
+ with:
83
+ root-dir: ${{ needs.setup.outputs.project-name }}
84
+ pytest-args: ${{ needs.setup.outputs.pytest-args }}
85
+ exclude-paths: ${{ needs.setup.outputs.exclude-paths }}
86
+ coverage: ${{ needs.setup.outputs.coverage-enabled }}
87
+
88
+ - name: Track Code Metrics
89
+ if: needs.setup.outputs.metrics-enabled == 'true'
90
+ uses: i2mint/umpyre/actions/track-metrics@master
91
+ continue-on-error: true
92
+ with:
93
+ github-token: ${{ secrets.GITHUB_TOKEN }}
94
+ config-path: ${{ needs.setup.outputs.metrics-config-path }}
95
+ storage-branch: ${{ needs.setup.outputs.metrics-storage-branch }}
96
+ python-version: ${{ needs.setup.outputs.metrics-python-version }}
97
+ force-run: ${{ needs.setup.outputs.metrics-force-run }}
98
+
99
+ # Optional Windows testing (if enabled in config)
100
+ windows-validation:
101
+ name: Windows Tests
102
+ if: "!contains(github.event.head_commit.message, '[skip ci]') && needs.setup.outputs.test-on-windows == 'true'"
103
+ needs: setup
104
+ runs-on: windows-latest
105
+ continue-on-error: true
106
+
107
+ steps:
108
+ - uses: actions/checkout@v4
109
+
110
+ - name: Set up uv
111
+ uses: astral-sh/setup-uv@v5
112
+ with:
113
+ enable-cache: true
114
+
115
+ - name: Set up Python
116
+ uses: i2mint/wads/actions/setup-python-uv@master
117
+ with:
118
+ python-version: ${{ fromJson(needs.setup.outputs.python-versions)[0] }}
119
+
120
+ - name: Install System Dependencies
121
+ uses: i2mint/wads/actions/install-system-deps@master
122
+ with:
123
+ pyproject-path: .
124
+
125
+ - name: Install Dependencies
126
+ uses: i2mint/wads/actions/install-deps-uv@master
127
+
128
+ - name: Run Tests
129
+ uses: i2mint/wads/actions/run-tests-uv@master
130
+ with:
131
+ root-dir: ${{ needs.setup.outputs.project-name }}
132
+ pytest-args: ${{ needs.setup.outputs.pytest-args }}
133
+ exclude-paths: ${{ needs.setup.outputs.exclude-paths }}
134
+
135
+ # Publishing job
136
+ publish:
137
+ name: Publish
138
+ permissions:
139
+ contents: write
140
+ if: "!contains(github.event.head_commit.message, '[skip ci]') && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')"
141
+ needs: [setup, validation]
142
+ runs-on: ubuntu-latest
143
+
144
+ steps:
145
+ - uses: actions/checkout@v4
146
+ with:
147
+ fetch-depth: 0
148
+ token: ${{ secrets.GITHUB_TOKEN }}
149
+
150
+ - name: Set up uv
151
+ uses: astral-sh/setup-uv@v5
152
+
153
+ - name: Set up Python
154
+ uses: i2mint/wads/actions/setup-python-uv@master
155
+ with:
156
+ python-version: ${{ fromJson(needs.setup.outputs.python-versions)[0] }}
157
+ create-venv: "false"
158
+
159
+ - name: Format Source Code
160
+ run: uvx ruff format .
161
+
162
+ - name: Update Version Number
163
+ id: version
164
+ uses: i2mint/isee/actions/bump-version-number@master
165
+
166
+ - name: Build Distribution
167
+ uses: i2mint/wads/actions/build-dist-uv@master
168
+ with:
169
+ sdist: ${{ needs.setup.outputs.build-sdist }}
170
+ wheel: ${{ needs.setup.outputs.build-wheel }}
171
+
172
+ - name: Publish to PyPI
173
+ uses: i2mint/wads/actions/pypi-publish-uv@master
174
+ with:
175
+ pypi-token: ${{ secrets.PYPI_PASSWORD }}
176
+
177
+ - name: Force SSH for git remote
178
+ run: git remote set-url origin git@github.com:${{ github.repository }}.git
179
+
180
+ - name: Commit Changes
181
+ uses: i2mint/wads/actions/git-commit@master
182
+ with:
183
+ commit-message: "**CI** Formatted code + Updated version to ${{ env.VERSION }} [skip ci]"
184
+ ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
185
+ push: true
186
+
187
+ - name: Tag Repository
188
+ uses: i2mint/wads/actions/git-tag@master
189
+ with:
190
+ tag: ${{ env.VERSION }}
191
+ message: "Release version ${{ env.VERSION }}"
192
+ push: true
193
+
194
+ # Optional GitHub Pages
195
+ github-pages:
196
+ name: Publish GitHub Pages
197
+ permissions:
198
+ contents: write
199
+ pages: write
200
+ id-token: write
201
+ if: "!contains(github.event.head_commit.message, '[skip ci]') && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)"
202
+ needs: publish
203
+ runs-on: ubuntu-latest
204
+
205
+ steps:
206
+ - uses: i2mint/epythet/actions/publish-github-pages@master
207
+ with:
208
+ github-token: ${{ secrets.GITHUB_TOKEN }}
209
+ ignore: "tests/,scrap/,examples/"
@@ -0,0 +1,117 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+
7
+ .DS_Store
8
+ # C extensions
9
+ *.so
10
+
11
+ # TLS certificates
12
+ ## Ignore all PEM files anywhere
13
+ *.pem
14
+ ## Also ignore any certs directory
15
+ certs/
16
+
17
+ # Distribution / packaging
18
+ .Python
19
+ build/
20
+ develop-eggs/
21
+ dist/
22
+ downloads/
23
+ eggs/
24
+ .eggs/
25
+ lib/
26
+ lib64/
27
+ parts/
28
+ sdist/
29
+ var/
30
+ wheels/
31
+ *.egg-info/
32
+ .installed.cfg
33
+ *.egg
34
+ MANIFEST
35
+ _build
36
+
37
+ # PyInstaller
38
+ # Usually these files are written by a python script from a template
39
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
40
+ *.manifest
41
+ *.spec
42
+
43
+ # Installer logs
44
+ pip-log.txt
45
+ pip-delete-this-directory.txt
46
+
47
+ # Unit test / coverage reports
48
+ htmlcov/
49
+ .tox/
50
+ .coverage
51
+ .coverage.*
52
+ .cache
53
+ nosetests.xml
54
+ coverage.xml
55
+ *.cover
56
+ .hypothesis/
57
+ .pytest_cache/
58
+
59
+ # Translations
60
+ *.mo
61
+ *.pot
62
+
63
+ # Django stuff:
64
+ *.log
65
+ local_settings.py
66
+ db.sqlite3
67
+
68
+ # Flask stuff:
69
+ instance/
70
+ .webassets-cache
71
+
72
+ # Scrapy stuff:
73
+ .scrapy
74
+
75
+ # Sphinx documentation
76
+ docs/_build/
77
+ docs/*
78
+
79
+ # PyBuilder
80
+ target/
81
+
82
+ # Jupyter Notebook
83
+ .ipynb_checkpoints
84
+
85
+ # pyenv
86
+ .python-version
87
+
88
+ # celery beat schedule file
89
+ celerybeat-schedule
90
+
91
+ # SageMath parsed files
92
+ *.sage.py
93
+
94
+ # Environments
95
+ .env
96
+ .venv
97
+ env/
98
+ venv/
99
+ ENV/
100
+ env.bak/
101
+ venv.bak/
102
+
103
+ # Spyder project settings
104
+ .spyderproject
105
+ .spyproject
106
+
107
+ # Rope project settings
108
+ .ropeproject
109
+
110
+ # mkdocs documentation
111
+ /site
112
+
113
+ # mypy
114
+ .mypy_cache/
115
+
116
+ # PyCharm
117
+ .idea
lookbook-0.0.2/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Thor Whalen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.4
2
+ Name: lookbook
3
+ Version: 0.0.2
4
+ Summary: Distill raw image pools into optimized, high-diversity reference sets for character model training.
5
+ Project-URL: Homepage, https://github.com/thorwhalen/lookbook
6
+ Project-URL: Repository, https://github.com/thorwhalen/lookbook
7
+ Project-URL: Documentation, https://thorwhalen.github.io/lookbook
8
+ Author: Thor Whalen
9
+ License: mit
10
+ License-File: LICENSE
11
+ Requires-Python: >=3.10
12
+ Provides-Extra: dev
13
+ Requires-Dist: pytest-cov>=4.0; extra == 'dev'
14
+ Requires-Dist: pytest>=7.0; extra == 'dev'
15
+ Requires-Dist: ruff>=0.1.0; extra == 'dev'
16
+ Provides-Extra: docs
17
+ Requires-Dist: sphinx-rtd-theme>=1.0; extra == 'docs'
18
+ Requires-Dist: sphinx>=6.0; extra == 'docs'
19
+ Description-Content-Type: text/markdown
20
+
21
+ # lookbook
22
+ Distill raw image pools into optimized, high-diversity reference sets for character model training.
@@ -0,0 +1,2 @@
1
+ # lookbook
2
+ Distill raw image pools into optimized, high-diversity reference sets for character model training.
File without changes
@@ -0,0 +1,154 @@
1
+ [build-system]
2
+ requires = [
3
+ "hatchling",
4
+ ]
5
+ build-backend = "hatchling.build"
6
+
7
+ [project]
8
+ name = "lookbook"
9
+ version = "0.0.2"
10
+ description = "Distill raw image pools into optimized, high-diversity reference sets for character model training."
11
+ readme = "README.md"
12
+ requires-python = ">=3.10"
13
+ keywords = []
14
+ authors = [
15
+ { name = "Thor Whalen" },
16
+ ]
17
+ dependencies = []
18
+
19
+ [project.license]
20
+ text = "mit"
21
+
22
+ [project.urls]
23
+ Homepage = "https://github.com/thorwhalen/lookbook"
24
+ Repository = "https://github.com/thorwhalen/lookbook"
25
+ Documentation = "https://thorwhalen.github.io/lookbook"
26
+
27
+ [project.optional-dependencies]
28
+ dev = [
29
+ "pytest>=7.0",
30
+ "pytest-cov>=4.0",
31
+ "ruff>=0.1.0",
32
+ ]
33
+ docs = [
34
+ "sphinx>=6.0",
35
+ "sphinx-rtd-theme>=1.0",
36
+ ]
37
+
38
+ [tool.ruff]
39
+ line-length = 88
40
+ target-version = "py310"
41
+ exclude = [
42
+ "**/*.ipynb",
43
+ ".git",
44
+ ".venv",
45
+ "build",
46
+ "dist",
47
+ "tests",
48
+ "examples",
49
+ "scrap",
50
+ ]
51
+
52
+ [tool.ruff.lint]
53
+ select = [
54
+ "D100",
55
+ ]
56
+ ignore = [
57
+ "D203",
58
+ "E501",
59
+ "B905",
60
+ ]
61
+
62
+ [tool.ruff.lint.pydocstyle]
63
+ convention = "google"
64
+
65
+ [tool.ruff.lint.per-file-ignores]
66
+ "**/tests/*" = [
67
+ "D",
68
+ ]
69
+ "**/examples/*" = [
70
+ "D",
71
+ ]
72
+ "**/scrap/*" = [
73
+ "D",
74
+ ]
75
+
76
+ [tool.pytest.ini_options]
77
+ minversion = "6.0"
78
+ testpaths = [
79
+ "tests",
80
+ ]
81
+ doctest_optionflags = [
82
+ "NORMALIZE_WHITESPACE",
83
+ "ELLIPSIS",
84
+ ]
85
+
86
+ [tool.wads.ci]
87
+ project_name = ""
88
+
89
+ [tool.wads.ci.commands]
90
+ pre_test = []
91
+ test = []
92
+ post_test = []
93
+ lint = []
94
+ format = []
95
+
96
+ [tool.wads.ci.env]
97
+ required_envvars = []
98
+ test_envvars = []
99
+ extra_envvars = []
100
+
101
+ [tool.wads.ci.env.defaults]
102
+
103
+ [tool.wads.ci.quality.ruff]
104
+ enabled = true
105
+
106
+ [tool.wads.ci.quality.black]
107
+ enabled = false
108
+
109
+ [tool.wads.ci.quality.mypy]
110
+ enabled = false
111
+
112
+ [tool.wads.ci.testing]
113
+ python_versions = [
114
+ "3.10",
115
+ "3.12",
116
+ ]
117
+ pytest_args = [
118
+ "-v",
119
+ "--tb=short",
120
+ ]
121
+ coverage_enabled = true
122
+ coverage_threshold = 0
123
+ coverage_report_format = [
124
+ "term",
125
+ "xml",
126
+ ]
127
+ exclude_paths = [
128
+ "examples",
129
+ "scrap",
130
+ ]
131
+ test_on_windows = true
132
+
133
+ [tool.wads.ci.metrics]
134
+ enabled = true
135
+ config_path = ".github/umpyre-config.yml"
136
+ storage_branch = "code-metrics"
137
+ python_version = "3.10"
138
+ force_run = false
139
+
140
+ [tool.wads.ci.build]
141
+ sdist = true
142
+ wheel = true
143
+
144
+ [tool.wads.ci.publish]
145
+ enabled = true
146
+
147
+ [tool.wads.ci.docs]
148
+ enabled = true
149
+ builder = "epythet"
150
+ ignore_paths = [
151
+ "tests/",
152
+ "scrap/",
153
+ "examples/",
154
+ ]