Skip to content

Commit 559ef35

Browse files
authored
Remove Generator Field (#34)
1 parent 7724d3e commit 559ef35

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

cppython/data.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
Defaulted data to help testing
33
"""
44

5-
from pathlib import Path
6-
75
from cppython_core.schema import PEP621, CPPythonData, PyProject, TargetEnum, ToolData
86

97
default_pep621 = PEP621(name="test_name", version="1.0")
108

119
# CMake is a default plugin
12-
default_cppython_data = CPPythonData(**{"generator": "cmake", "target": TargetEnum.EXE, "install-path": Path()})
10+
default_cppython_data = CPPythonData(**{"target": TargetEnum.EXE})
1311
default_tool_data = ToolData(**{"cppython": default_cppython_data})
1412
default_pyproject = PyProject(**{"project": default_pep621, "tool": default_tool_data})

pdm.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ requires-python = ">=3.10"
1616
dependencies = [
1717
"click>=8.0.3",
1818
"tomlkit>=0.10.0",
19-
"cppython-core>=0.1.1",
19+
"cppython-core>=0.1.2",
2020
]
2121

2222
[project.license-files]

tests/unit/test_interface.py

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
from cppython.console import Config, ConsoleInterface, cli
1212
from cppython.data import default_pyproject
13-
from cppython.project import ProjectConfiguration
1413

1514

1615
class TestCLIInterface(InterfaceUnitTests):

0 commit comments

Comments
 (0)