Skip to content

Commit 40d6262

Browse files
committed
refactor: switch to src layout
1 parent d037ddb commit 40d6262

File tree

192 files changed

+152
-140
lines changed

Some content is hidden

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

192 files changed

+152
-140
lines changed

.vscodeignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,13 @@ playground
4646
coverage.xml
4747
.python-version
4848

49+
# mkdocs
50+
docs
51+
overrides
52+
site
53+
4954
# others
5055
scripts
51-
doc
5256

5357
**/.robotcode_cache
5458

hatch.toml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
[version]
2-
path = "robotcode/cli/__version__.py"
2+
path = "src/robotcode/cli/__version__.py"
33

4-
[build.targets.sdist]
5-
only-include = ["robotcode", "CHANGELOG.md"]
4+
[build]
5+
dev-mode-dirs = ["src"]
66

77
[build.targets.wheel]
8-
only-include = ["robotcode"]
8+
only-include = ["src/robotcode"]
9+
sources = ["src"]
10+
11+
[build.targets.sdist]
12+
only-include = ["src", "CHANGELOG.md"]
13+
914

1015
[envs.default]
1116
dependencies = [
@@ -114,6 +119,7 @@ deploy = ["python scripts/deploy_docs.py"]
114119

115120

116121
[envs.build]
122+
skip-install = true
117123
detached = true
118124
python = "38"
119125
dependencies = ["GitPython", "semantic-version"]

packages/analyze/pyproject.toml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
55
[project]
66
name = "robotcode-analyze"
77
description = 'RobotCode analyze plugin for Robot Framework'
8-
readme = {"file" = "README.md", "content-type" = "text/markdown"}
8+
readme = { "file" = "README.md", "content-type" = "text/markdown" }
99
requires-python = ">=3.8"
1010
license = "Apache-2.0"
1111
keywords = []
@@ -25,11 +25,7 @@ classifiers = [
2525
"Framework :: Robot Framework",
2626
"Framework :: Robot Framework :: Tool",
2727
]
28-
dependencies = [
29-
"robotframework>=4.1.0",
30-
"robotcode-plugin",
31-
"robotcode-robot"
32-
]
28+
dependencies = ["robotframework>=4.1.0", "robotcode-plugin", "robotcode-robot"]
3329
dynamic = ["version"]
3430

3531
[project.entry-points.robotcode]
@@ -44,15 +40,18 @@ Issues = "https://github.com/d-biehl/robotcode/issues"
4440
Source = "https://github.com/d-biehl/robotcode"
4541

4642
[tool.hatch.version]
47-
path = "robotcode/analyze/__version__.py"
43+
path = "src/robotcode/analyze/__version__.py"
4844

49-
[tool.hatch.envs.build]
50-
detached = true
51-
python = "38"
45+
[tool.hatch.build]
46+
dev-mode-dirs = ["src"]
5247

48+
[tool.hatch.build.targets.wheel]
49+
only-include = ["src/robotcode"]
50+
sources = ["src"]
5351

5452
[tool.hatch.build.targets.sdist]
55-
only-include = ["robotcode"]
53+
only-include = ["src"]
5654

57-
[tool.hatch.build.targets.wheel]
58-
only-include = ["robotcode"]
55+
[tool.hatch.envs.build]
56+
detached = true
57+
python = "38"

packages/analyze/robotcode/analyze/hooks.py renamed to packages/analyze/src/robotcode/analyze/hooks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from typing import List
22

33
import click
4-
54
from robotcode.plugin import hookimpl
65

76
from .cli import analyze

packages/core/pyproject.toml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
55
[project]
66
name = "robotcode-core"
77
description = 'Some core classes for RobotCode'
8-
readme = {"file" = "README.md", "content-type" = "text/markdown"}
8+
readme = { "file" = "README.md", "content-type" = "text/markdown" }
99
requires-python = ">=3.8"
1010
license = "Apache-2.0"
1111
keywords = []
@@ -37,15 +37,18 @@ Issues = "https://github.com/d-biehl/robotcode/issues"
3737
Source = "https://github.com/d-biehl/robotcode"
3838

3939
[tool.hatch.version]
40-
path = "robotcode/core/__version__.py"
40+
path = "src/robotcode/core/__version__.py"
4141

42-
[tool.hatch.envs.build]
43-
detached = true
44-
python = "38"
42+
[tool.hatch.build]
43+
dev-mode-dirs = ["src"]
4544

45+
[tool.hatch.build.targets.wheel]
46+
only-include = ["src/robotcode"]
47+
sources = ["src"]
4648

4749
[tool.hatch.build.targets.sdist]
48-
only-include = ["robotcode"]
50+
only-include = ["src"]
4951

50-
[tool.hatch.build.targets.wheel]
51-
only-include = ["robotcode"]
52+
[tool.hatch.envs.build]
53+
detached = true
54+
python = "38"

0 commit comments

Comments
 (0)