File tree Expand file tree Collapse file tree 2 files changed +27
-19
lines changed Expand file tree Collapse file tree 2 files changed +27
-19
lines changed Original file line number Diff line number Diff line change @@ -7,17 +7,18 @@ version: 2
7
7
8
8
# Set the version of Python and other tools you might need
9
9
build :
10
- os : ubuntu-22.04
10
+ os : ubuntu-lts-latest
11
11
tools :
12
- python : " 3.11"
12
+ python : " 3"
13
+ jobs :
14
+ pre_create_environment :
15
+ - asdf plugin add uv
16
+ - asdf install uv latest
17
+ - asdf global uv latest
18
+ create_environment :
19
+ - uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
20
+ install :
21
+ - UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --frozen --group docs
13
22
14
23
mkdocs :
15
24
configuration : mkdocs.yml
16
-
17
- # Optionally set the version of Python and requirements required to build your docs
18
- python :
19
- install :
20
- - method : pip
21
- path : .
22
- extra_requirements :
23
- - docs
Original file line number Diff line number Diff line change 1
1
[build-system ]
2
- requires = [" setuptools>=68 " , " setuptools_scm[toml]>=7.1 " ]
3
- build-backend = " setuptools.build_meta "
2
+ requires = [" hatchling " , " hatch-vcs " ]
3
+ build-backend = " hatchling.build "
4
4
5
5
[project ]
6
6
name = " python-openhab"
@@ -59,16 +59,23 @@ test = [
59
59
" beautifulsoup4" ,
60
60
]
61
61
62
- [tool .setuptools_scm ]
62
+ [tool .hatch .envs .default ]
63
+ installer = " uv"
63
64
64
- [tool .setuptools ]
65
- include-package-data = true
65
+ [tool .hatch .build .targets .wheel ]
66
+ packages = [
67
+ " /openhab" ,
68
+ ]
66
69
67
- [tool .setuptools .packages ]
68
- find = { namespaces = false }
70
+ [tool .hatch .build .targets .sdist ]
71
+ include = [
72
+ " /openhab" ,
73
+ " /tests" ,
74
+ ]
75
+ exclude = []
69
76
70
- [tool .setuptools . package-data ]
71
- openhab = [ " py.typed " ]
77
+ [tool .hatch . version ]
78
+ source = " vcs "
72
79
73
80
[tool .mypy ]
74
81
show_error_context = true
You can’t perform that action at this time.
0 commit comments