Skip to content

Commit 8e8de52

Browse files
Jo-Byrjourdain
authored andcommitted
fix(build): update python package definition
1 parent f005874 commit 8e8de52

30 files changed

+447
-45
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
repos:
22
- repo: https://github.com/codespell-project/codespell
3-
rev: v2.1.0
3+
rev: v2.3.0
44
hooks:
55
- id: codespell
66

77
- repo: https://github.com/astral-sh/ruff-pre-commit
8-
rev: v0.8.4
8+
rev: v0.13.0
99
hooks:
1010
- id: ruff
1111
- id: ruff-format

docs/definitions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The __YAML__ structure follow the given hierarchy:
4949
1. Proxy type: Unique string representing the type of a given proxy.
5050
1. _tags: Internal key use to capture a list of `labels` for a given proxy so they can be found/filtered later on.
5151
2. Property name: Unique string within current proxy representing an entry in your data model.
52-
1. Property caracteristics:
52+
1. Property characteristics:
5353
1. size: How many values should be stored for that property. Skipping size attribute will imply a size of 1.
5454
If size is superior to 1, or set to -1, the property will be interpreted as a list.
5555
If size is set to -1, the size is dynamic, otherwise it is fixed.

pyproject.toml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
[project]
2+
name = "trame-simput"
3+
version = "1.0.2"
4+
description = "Simput implementation for trame "
5+
authors = [
6+
{name = "Kitware Inc."},
7+
]
8+
dependencies = [
9+
"trame-client",
10+
"pyyaml"
11+
]
12+
requires-python = ">=3.9"
13+
readme = "README.rst"
14+
license = {text = "Apache Software License"}
15+
keywords = ["Python", "Interactive", "Web", "Application", "Framework"]
16+
classifiers = [
17+
"Development Status :: 5 - Production/Stable",
18+
"Environment :: Web Environment",
19+
"License :: OSI Approved :: Apache Software License",
20+
"Natural Language :: English",
21+
"Operating System :: OS Independent",
22+
"Programming Language :: Python :: 3 :: Only",
23+
"Topic :: Software Development :: Libraries :: Application Frameworks",
24+
"Topic :: Software Development :: Libraries :: Python Modules",
25+
]
26+
27+
[project.optional-dependencies]
28+
dev = [
29+
"pre-commit",
30+
"ruff",
31+
"pytest",
32+
]
33+
34+
[build-system]
35+
requires = ["hatchling"]
36+
build-backend = "hatchling.build"
37+
38+
[tool.hatch.build]
39+
include = [
40+
"src/trame_simput/module/serve/**",
41+
"src/**/*.py",
42+
]
43+
44+
[tool.hatch.build.targets.wheel]
45+
packages = [
46+
"src/trame_simput",
47+
"src/trame",
48+
]
49+
50+
[tool.semantic_release]
51+
version_toml = ["pyproject.toml:project.version"]
52+
version_variables = ["src/trame_simput/__init__.py:__version__"]
53+
build_command = "pip install uv && uv build"
54+
55+
[tool.ruff]
56+
line-length = 88
57+
indent-width = 4
58+
target-version = "py39"
59+
60+
[tool.ruff.lint]
61+
select = ["E", "W", "F"]
62+
ignore = []
63+
fixable = ["ALL"]
64+
unfixable = []
65+
66+
67+
[tool.ruff.format]
68+
quote-style = "double"
69+
indent-style = "space"
70+
skip-magic-trailing-comma = false
71+
line-ending = "auto"
72+
docstring-code-format = true
73+
74+
# This only has an effect when the `docstring-code-format` setting is
75+
# enabled.
76+
docstring-code-line-length = "dynamic"
77+
78+
[tool.ruff.lint.pycodestyle]
79+
max-line-length = 120
80+
81+
[lint.pydocstyle]
82+
convention = "google"

setup.cfg

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

setup.py

Lines changed: 0 additions & 3 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)