Skip to content

Commit 0145735

Browse files
committed
chore: migrate from setup tools to hatchling
1 parent 5e37837 commit 0145735

43 files changed

Lines changed: 21 additions & 26 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: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,29 @@ dev = [
4242

4343

4444
[build-system]
45-
requires = ['setuptools', 'wheel']
46-
build-backend = 'setuptools.build_meta'
45+
requires = ["hatchling"]
46+
build-backend = "hatchling.build"
4747

48-
[tool.setuptools.packages.find]
49-
where = ["."]
48+
[tool.hatch.build]
49+
include = [
50+
"/src/**/*.py",
51+
"/src/trame_client/module/serve/**",
52+
"src/trame_client/module/user_provided_scripts/**",
53+
]
5054

51-
[tool.setuptools.package-data]
52-
"*" = ["trame_client/module/user_provided_scripts/es", "trame_client/module/user_provided_scripts/umd/.gitkeep"]
55+
[tool.hatch.build.targets.wheel]
56+
packages = [
57+
"src/trame_client",
58+
"src/trame",
59+
]
5360

5461
[tool.semantic_release]
5562
version_toml = [
5663
"pyproject.toml:project.version",
5764
]
65+
version_variables = [
66+
"src/trame_client/__init__.py:__version__",
67+
]
5868
build_command = """
5969
python -m venv .venv
6070
source .venv/bin/activate
@@ -78,7 +88,7 @@ fixable = ["ALL"]
7888
unfixable = []
7989

8090
[tool.ruff.lint.per-file-ignores]
81-
"trame_client/widgets/html.py" = ["E742"]
91+
"src/trame_client/widgets/html.py" = ["E742"]
8292

8393
[tool.ruff.format]
8494
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)