Skip to content

Commit 6e592b2

Browse files
committed
fix(build): update python package definition
1 parent f005874 commit 6e592b2

29 files changed

+439
-40
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

pyproject.toml

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