flamapy 2.1.0.dev0__tar.gz → 2.1.0.dev2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- flamapy-2.1.0.dev2/LICENSE +165 -0
- {flamapy-2.1.0.dev0 → flamapy-2.1.0.dev2}/PKG-INFO +17 -13
- {flamapy-2.1.0.dev0 → flamapy-2.1.0.dev2}/flamapy/interfaces/python/flamapy_feature_model.py +19 -16
- {flamapy-2.1.0.dev0 → flamapy-2.1.0.dev2}/flamapy.egg-info/PKG-INFO +17 -13
- {flamapy-2.1.0.dev0 → flamapy-2.1.0.dev2}/flamapy.egg-info/SOURCES.txt +6 -1
- {flamapy-2.1.0.dev0 → flamapy-2.1.0.dev2}/flamapy.egg-info/entry_points.txt +0 -1
- flamapy-2.1.0.dev2/flamapy.egg-info/requires.txt +11 -0
- {flamapy-2.1.0.dev0 → flamapy-2.1.0.dev2}/pyproject.toml +38 -1
- flamapy-2.1.0.dev2/setup.py +3 -0
- flamapy-2.1.0.dev2/tests/test_basic_units.py +261 -0
- flamapy-2.1.0.dev2/tests/test_cli_basic_units.py +67 -0
- flamapy-2.1.0.dev2/tests/test_fama_suite_bdd.py +443 -0
- flamapy-2.1.0.dev2/tests/test_fama_suite_sat.py +629 -0
- flamapy-2.1.0.dev0/flamapy.egg-info/requires.txt +0 -12
- flamapy-2.1.0.dev0/setup.py +0 -45
- {flamapy-2.1.0.dev0 → flamapy-2.1.0.dev2}/README.md +0 -0
- {flamapy-2.1.0.dev0 → flamapy-2.1.0.dev2}/flamapy/commands/__init__.py +0 -0
- {flamapy-2.1.0.dev0 → flamapy-2.1.0.dev2}/flamapy/interfaces/python/__init__.py +0 -0
- {flamapy-2.1.0.dev0 → flamapy-2.1.0.dev2}/flamapy.egg-info/dependency_links.txt +0 -0
- {flamapy-2.1.0.dev0 → flamapy-2.1.0.dev2}/flamapy.egg-info/top_level.txt +0 -0
- {flamapy-2.1.0.dev0 → flamapy-2.1.0.dev2}/setup.cfg +0 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
+
License, supplemented by the additional permissions listed below.
|
|
12
|
+
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
+
General Public License.
|
|
18
|
+
|
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
|
20
|
+
other than an Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
+
of using an interface provided by the Library.
|
|
26
|
+
|
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
+
Application with the Library. The particular version of the Library
|
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
|
30
|
+
Version".
|
|
31
|
+
|
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
35
|
+
based on the Application, and not on the Linked Version.
|
|
36
|
+
|
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
38
|
+
object code and/or source code for the Application, including any data
|
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
41
|
+
|
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
43
|
+
|
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
|
46
|
+
|
|
47
|
+
2. Conveying Modified Versions.
|
|
48
|
+
|
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
|
51
|
+
that uses the facility (other than as an argument passed when the
|
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
|
53
|
+
version:
|
|
54
|
+
|
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
|
56
|
+
ensure that, in the event an Application does not supply the
|
|
57
|
+
function or data, the facility still operates, and performs
|
|
58
|
+
whatever part of its purpose remains meaningful, or
|
|
59
|
+
|
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
61
|
+
this License applicable to that copy.
|
|
62
|
+
|
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
64
|
+
|
|
65
|
+
The object code form of an Application may incorporate material from
|
|
66
|
+
a header file that is part of the Library. You may convey such object
|
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
|
68
|
+
material is not limited to numerical parameters, data structure
|
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
|
71
|
+
|
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
|
73
|
+
Library is used in it and that the Library and its use are
|
|
74
|
+
covered by this License.
|
|
75
|
+
|
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
77
|
+
document.
|
|
78
|
+
|
|
79
|
+
4. Combined Works.
|
|
80
|
+
|
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
|
82
|
+
taken together, effectively do not restrict modification of the
|
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
|
85
|
+
the following:
|
|
86
|
+
|
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
88
|
+
the Library is used in it and that the Library and its use are
|
|
89
|
+
covered by this License.
|
|
90
|
+
|
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
+
document.
|
|
93
|
+
|
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
|
95
|
+
execution, include the copyright notice for the Library among
|
|
96
|
+
these notices, as well as a reference directing the user to the
|
|
97
|
+
copies of the GNU GPL and this license document.
|
|
98
|
+
|
|
99
|
+
d) Do one of the following:
|
|
100
|
+
|
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
102
|
+
License, and the Corresponding Application Code in a form
|
|
103
|
+
suitable for, and under terms that permit, the user to
|
|
104
|
+
recombine or relink the Application with a modified version of
|
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
107
|
+
Corresponding Source.
|
|
108
|
+
|
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
111
|
+
a copy of the Library already present on the user's computer
|
|
112
|
+
system, and (b) will operate properly with a modified version
|
|
113
|
+
of the Library that is interface-compatible with the Linked
|
|
114
|
+
Version.
|
|
115
|
+
|
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
+
be required to provide such information under section 6 of the
|
|
118
|
+
GNU GPL, and only to the extent that such information is
|
|
119
|
+
necessary to install and execute a modified version of the
|
|
120
|
+
Combined Work produced by recombining or relinking the
|
|
121
|
+
Application with a modified version of the Linked Version. (If
|
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
126
|
+
for conveying Corresponding Source.)
|
|
127
|
+
|
|
128
|
+
5. Combined Libraries.
|
|
129
|
+
|
|
130
|
+
You may place library facilities that are a work based on the
|
|
131
|
+
Library side by side in a single library together with other library
|
|
132
|
+
facilities that are not Applications and are not covered by this
|
|
133
|
+
License, and convey such a combined library under terms of your
|
|
134
|
+
choice, if you do both of the following:
|
|
135
|
+
|
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
|
137
|
+
on the Library, uncombined with any other library facilities,
|
|
138
|
+
conveyed under the terms of this License.
|
|
139
|
+
|
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
|
141
|
+
is a work based on the Library, and explaining where to find the
|
|
142
|
+
accompanying uncombined form of the same work.
|
|
143
|
+
|
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
145
|
+
|
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
148
|
+
versions will be similar in spirit to the present version, but may
|
|
149
|
+
differ in detail to address new problems or concerns.
|
|
150
|
+
|
|
151
|
+
Each version is given a distinguishing version number. If the
|
|
152
|
+
Library as you received it specifies that a certain numbered version
|
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
|
154
|
+
applies to it, you have the option of following the terms and
|
|
155
|
+
conditions either of that published version or of any later version
|
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
|
160
|
+
|
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
164
|
+
permanent authorization for you to choose that version for the
|
|
165
|
+
Library.
|
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: flamapy
|
|
3
|
-
Version: 2.1.0.
|
|
4
|
-
Summary: Flamapy feature model is a distribution of the flama framework containing all plugins required to analyze feature models. It also offers a
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
License: UNKNOWN
|
|
9
|
-
Platform: UNKNOWN
|
|
10
|
-
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
12
|
-
Classifier: Operating System :: OS Independent
|
|
3
|
+
Version: 2.1.0.dev2
|
|
4
|
+
Summary: Flamapy feature model is a distribution of the flama framework containing all plugins required to analyze feature models. It also offers a richer API and a complete command line interface and documentation.
|
|
5
|
+
Author-email: Flamapy <flamapy@us.es>
|
|
6
|
+
License-Expression: GPL-3.0-or-later
|
|
7
|
+
Project-URL: Homepage, https://github.com/flamapy/flamapy-feature-model
|
|
13
8
|
Requires-Python: >=3.9
|
|
14
9
|
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Requires-Dist: flamapy-fw~=2.1.0.dev2
|
|
12
|
+
Requires-Dist: flamapy-fm~=2.1.0.dev2
|
|
13
|
+
Requires-Dist: flamapy-sat~=2.1.0.dev2
|
|
14
|
+
Requires-Dist: flamapy-bdd~=2.1.0.dev2
|
|
15
15
|
Provides-Extra: dev
|
|
16
|
+
Requires-Dist: pytest; extra == "dev"
|
|
17
|
+
Requires-Dist: pytest-mock; extra == "dev"
|
|
18
|
+
Requires-Dist: prospector; extra == "dev"
|
|
19
|
+
Requires-Dist: mypy; extra == "dev"
|
|
20
|
+
Requires-Dist: coverage; extra == "dev"
|
|
21
|
+
Dynamic: license-file
|
|
16
22
|
|
|
17
23
|
<div align="center">
|
|
18
24
|
|
|
@@ -96,5 +102,3 @@ constraints and dependencies. A a valid feature model is one that does encodes a
|
|
|
96
102
|
|
|
97
103
|
* satisfiable_configuration: This is a product that is produced from a valid configuration of features. A valid product satisfies all the constraints and dependencies in the feature model.
|
|
98
104
|
|
|
99
|
-
|
|
100
|
-
|
{flamapy-2.1.0.dev0 → flamapy-2.1.0.dev2}/flamapy/interfaces/python/flamapy_feature_model.py
RENAMED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import logging
|
|
1
2
|
from typing import List, Any, Union
|
|
2
3
|
from flamapy.core.discover import DiscoverMetamodels
|
|
3
4
|
from flamapy.metamodels.fm_metamodel.models import FeatureModel
|
|
4
5
|
from flamapy.core.exceptions import FlamaException
|
|
5
6
|
from flamapy.metamodels.configuration_metamodel.models import Configuration
|
|
6
7
|
|
|
8
|
+
logger = logging.getLogger(__name__)
|
|
9
|
+
|
|
7
10
|
|
|
8
11
|
class FLAMAFeatureModel:
|
|
9
12
|
def __init__(self, model_path: str):
|
|
@@ -58,7 +61,7 @@ class FLAMAFeatureModel:
|
|
|
58
61
|
result.append(partial_set)
|
|
59
62
|
return result
|
|
60
63
|
except FlamaException as exception:
|
|
61
|
-
|
|
64
|
+
logger.error("Error: %s", exception)
|
|
62
65
|
return None
|
|
63
66
|
|
|
64
67
|
def average_branching_factor(self) -> Union[None, float]:
|
|
@@ -77,7 +80,7 @@ class FLAMAFeatureModel:
|
|
|
77
80
|
).get_result()
|
|
78
81
|
return result
|
|
79
82
|
except FlamaException as exception:
|
|
80
|
-
|
|
83
|
+
logger.error("Error: %s", exception)
|
|
81
84
|
return None
|
|
82
85
|
|
|
83
86
|
def count_leafs(self) -> Union[None, int]:
|
|
@@ -94,7 +97,7 @@ class FLAMAFeatureModel:
|
|
|
94
97
|
).get_result()
|
|
95
98
|
return result
|
|
96
99
|
except FlamaException as exception:
|
|
97
|
-
|
|
100
|
+
logger.error("Error: %s", exception)
|
|
98
101
|
return None
|
|
99
102
|
|
|
100
103
|
def estimated_number_of_configurations(self) -> Union[None, int]:
|
|
@@ -113,7 +116,7 @@ class FLAMAFeatureModel:
|
|
|
113
116
|
).get_result()
|
|
114
117
|
return result
|
|
115
118
|
except FlamaException as exception:
|
|
116
|
-
|
|
119
|
+
logger.error("Error: %s", exception)
|
|
117
120
|
return None
|
|
118
121
|
|
|
119
122
|
def feature_ancestors(self, feature_name: str) -> Union[None, List[str]]:
|
|
@@ -133,7 +136,7 @@ class FLAMAFeatureModel:
|
|
|
133
136
|
result.append(res.name)
|
|
134
137
|
return result
|
|
135
138
|
except FlamaException as exception:
|
|
136
|
-
|
|
139
|
+
logger.error("Error: %s", exception)
|
|
137
140
|
return None
|
|
138
141
|
|
|
139
142
|
def leaf_features(self) -> Union[None, List[str]]:
|
|
@@ -159,7 +162,7 @@ class FLAMAFeatureModel:
|
|
|
159
162
|
leaf_features.append(feature.name)
|
|
160
163
|
return leaf_features
|
|
161
164
|
except FlamaException as exception:
|
|
162
|
-
|
|
165
|
+
logger.error("Error: %s", exception)
|
|
163
166
|
return None
|
|
164
167
|
|
|
165
168
|
def max_depth(self) -> Union[None, int]:
|
|
@@ -176,7 +179,7 @@ class FLAMAFeatureModel:
|
|
|
176
179
|
self.fm_model, "FMMaxDepthTree"
|
|
177
180
|
).get_result()
|
|
178
181
|
except FlamaException as exception:
|
|
179
|
-
|
|
182
|
+
logger.error("Error: %s", exception)
|
|
180
183
|
return None
|
|
181
184
|
|
|
182
185
|
# The methods above rely on sat to be executed.
|
|
@@ -195,7 +198,7 @@ class FLAMAFeatureModel:
|
|
|
195
198
|
).get_result()
|
|
196
199
|
return features
|
|
197
200
|
except FlamaException as exception:
|
|
198
|
-
|
|
201
|
+
logger.error("Error: %s", exception)
|
|
199
202
|
return None
|
|
200
203
|
|
|
201
204
|
def dead_features(self) -> Union[None, List[str]]:
|
|
@@ -211,7 +214,7 @@ class FLAMAFeatureModel:
|
|
|
211
214
|
).get_result()
|
|
212
215
|
return features
|
|
213
216
|
except FlamaException as exception:
|
|
214
|
-
|
|
217
|
+
logger.error("Error: %s", exception)
|
|
215
218
|
return None
|
|
216
219
|
|
|
217
220
|
def false_optional_features(self) -> Union[None, List[str]]:
|
|
@@ -230,7 +233,7 @@ class FLAMAFeatureModel:
|
|
|
230
233
|
features = operation.get_result()
|
|
231
234
|
return features
|
|
232
235
|
except FlamaException as exception:
|
|
233
|
-
|
|
236
|
+
logger.error("Error: %s", exception)
|
|
234
237
|
return None
|
|
235
238
|
|
|
236
239
|
def filter(self, configuration_path: str) -> Union[None, List[Configuration]]:
|
|
@@ -250,7 +253,7 @@ class FLAMAFeatureModel:
|
|
|
250
253
|
result = operation.get_result()
|
|
251
254
|
return result
|
|
252
255
|
except FlamaException as exception:
|
|
253
|
-
|
|
256
|
+
logger.error("Error: %s", exception)
|
|
254
257
|
return None
|
|
255
258
|
|
|
256
259
|
def configurations_number(self, with_sat: bool = False) -> Union[None, int]:
|
|
@@ -274,7 +277,7 @@ class FLAMAFeatureModel:
|
|
|
274
277
|
).get_result()
|
|
275
278
|
return nop
|
|
276
279
|
except FlamaException as exception:
|
|
277
|
-
|
|
280
|
+
logger.error("Error: %s", exception)
|
|
278
281
|
return None
|
|
279
282
|
|
|
280
283
|
def configurations(self, with_sat: bool = False) -> Union[None, List[Configuration]]:
|
|
@@ -297,7 +300,7 @@ class FLAMAFeatureModel:
|
|
|
297
300
|
).get_result()
|
|
298
301
|
return products
|
|
299
302
|
except FlamaException as exception:
|
|
300
|
-
|
|
303
|
+
logger.error("Error: %s", exception)
|
|
301
304
|
return None
|
|
302
305
|
|
|
303
306
|
def commonality(self, configuration_path: str) -> Union[None, float]:
|
|
@@ -317,7 +320,7 @@ class FLAMAFeatureModel:
|
|
|
317
320
|
operation.execute(self.sat_model)
|
|
318
321
|
return operation.get_result()
|
|
319
322
|
except FlamaException as exception:
|
|
320
|
-
|
|
323
|
+
logger.error("Error: %s", exception)
|
|
321
324
|
return None
|
|
322
325
|
|
|
323
326
|
def satisfiable_configuration(
|
|
@@ -346,7 +349,7 @@ class FLAMAFeatureModel:
|
|
|
346
349
|
result = operation.get_result()
|
|
347
350
|
return result
|
|
348
351
|
except FlamaException as exception:
|
|
349
|
-
|
|
352
|
+
logger.error("Error: %s", exception)
|
|
350
353
|
return None
|
|
351
354
|
|
|
352
355
|
def satisfiable(self) -> Union[None, bool]:
|
|
@@ -362,5 +365,5 @@ class FLAMAFeatureModel:
|
|
|
362
365
|
).get_result()
|
|
363
366
|
return result
|
|
364
367
|
except FlamaException as exception:
|
|
365
|
-
|
|
368
|
+
logger.error("Error: %s", exception)
|
|
366
369
|
return None
|
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: flamapy
|
|
3
|
-
Version: 2.1.0.
|
|
4
|
-
Summary: Flamapy feature model is a distribution of the flama framework containing all plugins required to analyze feature models. It also offers a
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
License: UNKNOWN
|
|
9
|
-
Platform: UNKNOWN
|
|
10
|
-
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
12
|
-
Classifier: Operating System :: OS Independent
|
|
3
|
+
Version: 2.1.0.dev2
|
|
4
|
+
Summary: Flamapy feature model is a distribution of the flama framework containing all plugins required to analyze feature models. It also offers a richer API and a complete command line interface and documentation.
|
|
5
|
+
Author-email: Flamapy <flamapy@us.es>
|
|
6
|
+
License-Expression: GPL-3.0-or-later
|
|
7
|
+
Project-URL: Homepage, https://github.com/flamapy/flamapy-feature-model
|
|
13
8
|
Requires-Python: >=3.9
|
|
14
9
|
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Requires-Dist: flamapy-fw~=2.1.0.dev2
|
|
12
|
+
Requires-Dist: flamapy-fm~=2.1.0.dev2
|
|
13
|
+
Requires-Dist: flamapy-sat~=2.1.0.dev2
|
|
14
|
+
Requires-Dist: flamapy-bdd~=2.1.0.dev2
|
|
15
15
|
Provides-Extra: dev
|
|
16
|
+
Requires-Dist: pytest; extra == "dev"
|
|
17
|
+
Requires-Dist: pytest-mock; extra == "dev"
|
|
18
|
+
Requires-Dist: prospector; extra == "dev"
|
|
19
|
+
Requires-Dist: mypy; extra == "dev"
|
|
20
|
+
Requires-Dist: coverage; extra == "dev"
|
|
21
|
+
Dynamic: license-file
|
|
16
22
|
|
|
17
23
|
<div align="center">
|
|
18
24
|
|
|
@@ -96,5 +102,3 @@ constraints and dependencies. A a valid feature model is one that does encodes a
|
|
|
96
102
|
|
|
97
103
|
* satisfiable_configuration: This is a product that is produced from a valid configuration of features. A valid product satisfies all the constraints and dependencies in the feature model.
|
|
98
104
|
|
|
99
|
-
|
|
100
|
-
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
LICENSE
|
|
1
2
|
README.md
|
|
2
3
|
pyproject.toml
|
|
3
4
|
setup.py
|
|
@@ -9,4 +10,8 @@ flamapy.egg-info/requires.txt
|
|
|
9
10
|
flamapy.egg-info/top_level.txt
|
|
10
11
|
flamapy/commands/__init__.py
|
|
11
12
|
flamapy/interfaces/python/__init__.py
|
|
12
|
-
flamapy/interfaces/python/flamapy_feature_model.py
|
|
13
|
+
flamapy/interfaces/python/flamapy_feature_model.py
|
|
14
|
+
tests/test_basic_units.py
|
|
15
|
+
tests/test_cli_basic_units.py
|
|
16
|
+
tests/test_fama_suite_bdd.py
|
|
17
|
+
tests/test_fama_suite_sat.py
|
|
@@ -1,6 +1,43 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "flamapy"
|
|
7
|
+
version = "2.1.0.dev2"
|
|
8
|
+
description = "Flamapy feature model is a distribution of the flama framework containing all plugins required to analyze feature models. It also offers a richer API and a complete command line interface and documentation."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "GPL-3.0-or-later"
|
|
11
|
+
authors = [{ name = "Flamapy", email = "flamapy@us.es" }]
|
|
12
|
+
requires-python = ">=3.9"
|
|
13
|
+
dependencies = [
|
|
14
|
+
"flamapy-fw~=2.1.0.dev2",
|
|
15
|
+
"flamapy-fm~=2.1.0.dev2",
|
|
16
|
+
"flamapy-sat~=2.1.0.dev2",
|
|
17
|
+
"flamapy-bdd~=2.1.0.dev2",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[project.optional-dependencies]
|
|
21
|
+
dev = [
|
|
22
|
+
"pytest",
|
|
23
|
+
"pytest-mock",
|
|
24
|
+
"prospector",
|
|
25
|
+
"mypy",
|
|
26
|
+
"coverage",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[project.scripts]
|
|
30
|
+
flamapy = "flamapy.commands:flamapy_cli"
|
|
31
|
+
|
|
32
|
+
[project.urls]
|
|
33
|
+
Homepage = "https://github.com/flamapy/flamapy-feature-model"
|
|
34
|
+
|
|
35
|
+
[tool.setuptools.packages.find]
|
|
36
|
+
include = ["flamapy.*"]
|
|
37
|
+
|
|
1
38
|
[tool.ruff]
|
|
2
39
|
line-length = 100 # Matches max-line-length from pycodestyle
|
|
3
|
-
target-version = "
|
|
40
|
+
target-version = "py39"
|
|
4
41
|
|
|
5
42
|
[tool.ruff.lint]
|
|
6
43
|
select = ["E", "W", "F", "C", "PL", "RUF"] # Includes pycodestyle, pylint, and McCabe complexity
|