File tree 3 files changed +34
-14
lines changed
3 files changed +34
-14
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,7 @@ class CMakeGenerator(Generator):
18
18
"""
19
19
20
20
def __init__ (self , pyproject : PyProject , cmake_data : CMakeData ) -> None :
21
- """
22
- TODO
23
- """
21
+ self .data = cmake_data
24
22
25
23
@staticmethod
26
24
def name () -> str :
@@ -36,13 +34,19 @@ def data_type() -> Type[GeneratorData]:
36
34
"""
37
35
return CMakeData
38
36
39
- def downloaded (self ) -> bool :
37
+ def generator_downloaded (self ) -> bool :
38
+
39
+ # CMake tooling is a part of the python package tooling
40
40
return True
41
41
42
- def download (self ) -> None :
42
+ def download_generator (self ) -> None :
43
43
"""
44
44
Installs the external tooling required by the generator if necessary
45
- Returns whether anything was installed or not
45
+ """
46
+
47
+ def update_generator (self ) -> None :
48
+ """
49
+ Update the tooling required by the generator
46
50
"""
47
51
48
52
def install (self ) -> None :
Original file line number Diff line number Diff line change @@ -145,6 +145,12 @@ class Generator(Plugin, API):
145
145
Abstract type to be inherited by CPPython Generator plugins
146
146
"""
147
147
148
+ @abstractmethod
149
+ def __init__ (self , pyproject : PyProject , generator_data : GeneratorData ) -> None :
150
+ """
151
+ Allows CPPython to pass the relevant data to constructed Generator plugin
152
+ """
153
+
148
154
@staticmethod
149
155
def plugin_group () -> str :
150
156
"""
@@ -169,15 +175,22 @@ def data_type() -> Type[GeneratorData]:
169
175
raise NotImplementedError ()
170
176
171
177
@abstractmethod
172
- def downloaded (self ) -> bool :
178
+ def generator_downloaded (self ) -> bool :
173
179
"""
174
180
Returns whether the generator needs to be downloaded
175
181
"""
176
182
raise NotImplementedError ()
177
183
178
184
@abstractmethod
179
- def download (self ) -> None :
185
+ def download_generator (self ) -> None :
180
186
"""
181
187
Installs the external tooling required by the generator
182
188
"""
183
189
raise NotImplementedError ()
190
+
191
+ @abstractmethod
192
+ def update_generator (self ) -> None :
193
+ """
194
+ Update the tooling required by the generator
195
+ """
196
+ raise NotImplementedError ()
Original file line number Diff line number Diff line change 2
2
description = " A Python package manager agnostic plugin integrating a transparent Conan and CMake workflow."
3
3
name = " cppython"
4
4
5
- license = " MIT"
5
+ license-expression = " MIT"
6
6
7
7
authors = [
8
- " Synodic Software" ,
8
+ { name = " Synodic Software" , email = " [email protected] " } ,
9
9
]
10
-
11
10
readme = " README.md"
12
11
13
- homepage = " https://github.com/Synodic-Software/CPPython"
14
- repository = " https://github.com/Synodic-Software/CPPython"
15
-
16
12
dynamic = [" version" ]
17
13
18
14
requires-python = " >=3.10"
@@ -25,6 +21,13 @@ dependencies = [
25
21
" pytest>=7.0.0" , # Required for testing injection
26
22
]
27
23
24
+ [project .license-files ]
25
+ paths = [" LICENSE.md" ]
26
+
27
+ [project .urls ]
28
+ homepage = " https://github.com/Synodic-Software/CPPython"
29
+ repository = " https://github.com/Synodic-Software/CPPython"
30
+
28
31
[tool .pdm ]
29
32
version = {use_scm = true }
30
33
You can’t perform that action at this time.
0 commit comments