Skip to content

Commit 3d9fbcf

Browse files
committed
Converts to a src layout
1 parent a086836 commit 3d9fbcf

File tree

7 files changed

+6
-9
lines changed

7 files changed

+6
-9
lines changed

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ maintainers = ["Crossedfall <[email protected]>"]
77
readme = "README.md"
88
license = "MIT"
99
repository = "https://github.com/OpenDreamProject/od-compiler-bot"
10-
packages = [{include = "od_compiler"}]
10+
packages = [{include = "od_compiler", from = "src"}]
1111

1212
[tool.poetry.dependencies]
1313
python = "^3.11"
@@ -48,9 +48,8 @@ quiet = 3
4848

4949
[tool.pytest.ini_options]
5050
addopts = "--cov=od_compiler -p no:legacypath"
51-
testpaths = [
52-
"tests",
53-
]
51+
testpaths = ["tests"]
52+
pythonpath = ["src"]
5453

5554
[tool.mypy]
5655
mypy_path = "od_compiler"

od_compiler/__init__.py renamed to src/od_compiler/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from flask import jsonify
55
from flask import request
66
from flask import Response
7-
87
from od_compiler.util.compiler_logger import compile_logger
98
from od_compiler.util.docker_actions import compileOD
109

File renamed without changes.
File renamed without changes.

od_compiler/util/docker_actions.py renamed to src/od_compiler/util/docker_actions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
from time import sleep
44

55
from gitdb.exc import BadName
6-
7-
from docker.client import from_env as docker_from_env
8-
from docker.errors import BuildError
96
from od_compiler.util.compiler_logger import compile_logger
107
from od_compiler.util.git_actions import updateOD
118
from od_compiler.util.utilities import cleanOldRuns
129
from od_compiler.util.utilities import splitLogs
1310
from od_compiler.util.utilities import stageBuild
1411
from od_compiler.util.utilities import writeOutput
1512

13+
from docker.client import from_env as docker_from_env
14+
from docker.errors import BuildError
15+
1616
client = docker_from_env()
1717

1818

od_compiler/util/git_actions.py renamed to src/od_compiler/util/git_actions.py

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

33
from git.repo import Repo
4-
54
from od_compiler.util.compiler_logger import compile_logger
65

76

File renamed without changes.

0 commit comments

Comments
 (0)