Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
54 lines (49 loc) · 2.06 KB
/
Copy pathpyproject.toml
File metadata and controls
54 lines (49 loc) · 2.06 KB
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "dicebear-styles"
version = "11.0.0-rc.3"
description = "Definition files of the DiceBear avatar styles."
readme = "README.md"
requires-python = ">=3.10"
# Per-style licenses (see LICENSE.md); shipped as a license file rather than a
# single SPDX expression because the styles carry different licenses.
license-files = ["LICENSE.md"]
authors = [{ name = "Florian Körner", email = "contact@florian-koerner.com" }]
keywords = ["avatar", "dicebear"]
classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Multimedia :: Graphics",
]
# Data-only distribution: no runtime dependencies and no Python code. The style
# definitions ship as JSON resources under the `dicebear_styles` import name and
# are read by the consumer via the standard library, the same pure data the
# packages for the other languages ship:
#
# import json
# from importlib.resources import files
#
# style = json.loads(
# files("dicebear_styles").joinpath("adventurer.json").read_text("utf-8")
# )
[project.urls]
Homepage = "https://www.dicebear.com"
Repository = "https://github.com/dicebear/styles"
Issues = "https://github.com/dicebear/styles/issues"
# Ship the committed `src/*.json` definitions as the `dicebear_styles` namespace
# package (a directory of JSON resources, no `__init__.py`). `bypass-selection`
# tells hatchling there are no Python packages to discover — by design.
# Using `src/` (not the generated, gitignored `dist/`) keeps the package in sync
# with the PHP usage and needs no build step before packaging.
[tool.hatch.build.targets.wheel]
bypass-selection = true
force-include = { "src" = "dicebear_styles" }
[tool.hatch.build.targets.sdist]
include = ["src/*.json", "README.md", "LICENSE.md", "pyproject.toml"]