Skip to content

Commit efc39ad

Browse files
committed
refactor: change project structure to mono-repo with multiple packages
1 parent 6966a3a commit efc39ad

Some content is hidden

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

47 files changed

+384
-95
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
- name: Install the project
100100
run: uv sync --locked --all-extras --dev
101101
- name: Run Unittests
102-
run: uv run pytest tests/unit --cov=debmagic
102+
run: uv run pytest --ignore tests/integration .
103103

104104
# TODO: integration tests currently don't work in the CI since they require running apt source on debian trixie -> CI runs on ubuntu
105105
# integration-tests:

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"[python]": {
33
"editor.defaultFormatter": "charliermarsh.ruff"
44
},
5-
"python.testing.pytestArgs": ["tests"],
5+
"python.testing.pytestArgs": ["."],
66
"python.testing.unittestEnabled": false,
77
"python.testing.pytestEnabled": true
88
}

packages/api/pyproject.toml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[project]
2+
name = "debmagic-api"
3+
version = "0.0.1-alpha.1"
4+
description = "build debian packages"
5+
license = "GPL-2.0-or-later"
6+
# license-files = ["../../LICENSE"]
7+
# readme = "../../README.md"
8+
requires-python = ">=3.12"
9+
classifiers = ["Programming Language :: Python :: 3"]
10+
dependencies = ["debmagic-common", "pydantic>=2,<3"]
11+
12+
[project.urls]
13+
homepage = "https://github.com/SFTtech/debmagic"
14+
source = "https://github.com/SFTtech/debmagic.git"
15+
issues = "https://github.com/SFTtech/debmagic/issues"
16+
releasenotes = "https://github.com/SFTtech/debmagic/-/blob/main/debian/changelog"
17+
18+
[build-system]
19+
requires = ["setuptools>=77.0.0", "setuptools-scm"]
20+
build-backend = "setuptools.build_meta"
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
from pathlib import Path
66
from typing import Sequence
77

8+
from debmagic.common.utils import run_cmd
9+
810
from ._build_stage import BuildStage
9-
from ._utils import run_cmd
1011

1112
if typing.TYPE_CHECKING:
1213
from ._package import BinaryPackage, PackageFilter, SourcePackage
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/debmagic/__init__.py renamed to packages/api/src/debmagic/v0/_dpkg/__init__.py

File renamed without changes.

src/debmagic/_dpkg/buildflags.py renamed to packages/api/src/debmagic/v0/_dpkg/buildflags.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
import subprocess
44
from pathlib import Path
55

6+
from debmagic.common.utils import run_cmd
7+
68
from .._package_version import PackageVersion
7-
from .._utils import run_cmd
89

910

1011
def _cmd(cmd: str, input_data: str | None = None, env: dict[str, str] | None = None, cwd: Path | None = None) -> str:

0 commit comments

Comments
 (0)