-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
98 lines (77 loc) · 2.69 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
# SPDX-License-Identifier: Apache-2.0
# Copyright 2022 The Foundry Visionmongers Ltd
# The metadata here should be kept in sync with the main OpenAssetIO
# repository (Python versions, platforms, etc): https://github.com/OpenAssetIO/OpenAssetIO
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "openassetio-traitgen"
version = "1.0.0a10"
requires-python = ">=3.10"
dependencies = ["jinja2==3.1.4", "pyyaml==6.0.0", "jsonschema==4.7.2"]
authors = [
{ name = "Contributors to the OpenAssetIO project", email = "[email protected]" }
]
description = """\
Generate OpenAssetIO Trait and Specification classes from a simple YAML description.\
"""
keywords = ["openassetio", "codegen", "trait"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Code Generators"
]
[project.scripts]
openassetio-traitgen = "openassetio_traitgen.__main__:main"
[project.readme]
text = """\
# OpenAssetIO Code Generation Tool
The `openassetio-traitgen` tool can be used to generate Trait and
Specification classes from a simple YAML description. This avoids
the laborious and error-prone task of creating these by hand.
This package is entirely self-contained and can be used without an
[OpenAssetIO](https://github.com/OpenAssetIO/OpenAssetIO)
installation. It provides code generation CLI, along with a
corresponding python package that can be used for custom generation.
## Supported languages
- Python 3.10+
## Installation
The package is available on PyPI, so to get the latest stable release
```bash
python -m pip install openassetio-traitgen
```
## Usage
```bash
openassetio-traitgen -h
```
"""
content-type = "text/markdown"
[project.urls]
OpenAssetIO = "https://github.com/OpenAssetIO/OpenAssetIO"
Source = "https://github.com/OpenAssetIO/OpenAssetIO-TraitGen"
Issues = "https://github.com/OpenAssetIO/OpenAssetIO-TraitGen/issues"
[tool.setuptools.packages.find]
where = ["python"]
[tool.setuptools]
package-dir = {"" = "python"}
# NB: This requires the use of pyproject-flake8
[tool.flake8]
max-line-length = 99
extend-ignore = "E266,"
[tool.pylint.format]
max-line-length = 99
[tool.black]
line-length = 99
[tool.pytest.ini_options]
markers = [
"ctest: marks tests as involving a CMake CTest test",
]