Skip to content

Commit ac7a8df

Browse files
Jo-Byrjourdain
authored andcommitted
chore: migrate from setup tools to hatchling
1 parent 6298d9a commit ac7a8df

43 files changed

Lines changed: 22 additions & 27 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ignore =
1010

1111
exclude =
1212
# These are auto-generated. Just ignore any issues.
13-
trame_client/widgets/html.py
13+
src/trame_client/widgets/html.py
1414

1515
per-file-ignores =
1616
# These directories will always contain "from ... import *"

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ repos:
1515
- id: check-yaml
1616
- id: debug-statements
1717
- id: end-of-file-fixer
18-
exclude: ^trame_client/LICENSE$
1918
- id: mixed-line-ending
2019
- id: name-tests-test
2120
args: ["--pytest-test-first"]

MANIFEST.in

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

pyproject.toml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,29 @@ dev = [
4545

4646

4747
[build-system]
48-
requires = ['setuptools', 'wheel']
49-
build-backend = 'setuptools.build_meta'
50-
51-
[tool.setuptools.packages.find]
52-
where = ["."]
48+
requires = ["hatchling"]
49+
build-backend = "hatchling.build"
50+
51+
[tool.hatch.build]
52+
include = [
53+
"/src/**/*.py",
54+
"/src/trame_client/module/serve/**",
55+
"src/trame_client/module/user_provided_scripts/**",
56+
]
5357

54-
[tool.setuptools.package-data]
55-
"*" = ["trame_client/module/user_provided_scripts/es", "trame_client/module/user_provided_scripts/umd/.gitkeep"]
58+
[tool.hatch.build.targets.wheel]
59+
packages = [
60+
"src/trame_client",
61+
"src/trame",
62+
]
5663

5764
[tool.semantic_release]
5865
version_toml = [
5966
"pyproject.toml:project.version",
6067
]
68+
version_variables = [
69+
"src/trame_client/__init__.py:__version__",
70+
]
6171
build_command = """
6272
python -m venv .venv
6373
source .venv/bin/activate
@@ -81,7 +91,7 @@ fixable = ["ALL"]
8191
unfixable = []
8292

8393
[tool.ruff.lint.per-file-ignores]
84-
"trame_client/widgets/html.py" = ["E742"]
94+
"src/trame_client/widgets/html.py" = ["E742"]
8595

8696
[tool.ruff.format]
8797
quote-style = "double"

src/trame/ui/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
File renamed without changes.

0 commit comments

Comments
 (0)