flamapy 2.1.0.dev1__tar.gz → 2.5.0.dev0__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.5.0.dev0/LICENSE +165 -0
- {flamapy-2.1.0.dev1 → flamapy-2.5.0.dev0}/PKG-INFO +11 -23
- {flamapy-2.1.0.dev1 → flamapy-2.5.0.dev0}/flamapy/interfaces/python/flamapy_feature_model.py +30 -15
- {flamapy-2.1.0.dev1 → flamapy-2.5.0.dev0}/flamapy.egg-info/PKG-INFO +11 -23
- {flamapy-2.1.0.dev1 → flamapy-2.5.0.dev0}/flamapy.egg-info/SOURCES.txt +1 -0
- flamapy-2.5.0.dev0/flamapy.egg-info/requires.txt +11 -0
- {flamapy-2.1.0.dev1 → flamapy-2.5.0.dev0}/pyproject.toml +38 -1
- flamapy-2.5.0.dev0/setup.py +3 -0
- {flamapy-2.1.0.dev1 → flamapy-2.5.0.dev0}/tests/test_fama_suite_bdd.py +2 -2
- flamapy-2.1.0.dev1/flamapy.egg-info/requires.txt +0 -12
- flamapy-2.1.0.dev1/setup.py +0 -45
- {flamapy-2.1.0.dev1 → flamapy-2.5.0.dev0}/README.md +0 -0
- {flamapy-2.1.0.dev1 → flamapy-2.5.0.dev0}/flamapy/commands/__init__.py +0 -0
- {flamapy-2.1.0.dev1 → flamapy-2.5.0.dev0}/flamapy/interfaces/python/__init__.py +0 -0
- {flamapy-2.1.0.dev1 → flamapy-2.5.0.dev0}/flamapy.egg-info/dependency_links.txt +0 -0
- {flamapy-2.1.0.dev1 → flamapy-2.5.0.dev0}/flamapy.egg-info/entry_points.txt +0 -0
- {flamapy-2.1.0.dev1 → flamapy-2.5.0.dev0}/flamapy.egg-info/top_level.txt +0 -0
- {flamapy-2.1.0.dev1 → flamapy-2.5.0.dev0}/setup.cfg +0 -0
- {flamapy-2.1.0.dev1 → flamapy-2.5.0.dev0}/tests/test_basic_units.py +0 -0
- {flamapy-2.1.0.dev1 → flamapy-2.5.0.dev0}/tests/test_cli_basic_units.py +0 -0
- {flamapy-2.1.0.dev1 → flamapy-2.5.0.dev0}/tests/test_fama_suite_sat.py +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,36 +1,24 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flamapy
|
|
3
|
-
Version: 2.
|
|
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
|
-
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
10
|
-
Classifier: Operating System :: OS Independent
|
|
3
|
+
Version: 2.5.0.dev0
|
|
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
|
|
11
8
|
Requires-Python: >=3.9
|
|
12
9
|
Description-Content-Type: text/markdown
|
|
13
|
-
|
|
14
|
-
Requires-Dist: flamapy-fw~=2.
|
|
15
|
-
Requires-Dist: flamapy-fm~=2.
|
|
16
|
-
Requires-Dist: flamapy-sat~=2.
|
|
17
|
-
Requires-Dist: flamapy-bdd~=2.
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Requires-Dist: flamapy-fw~=2.5.0.dev0
|
|
12
|
+
Requires-Dist: flamapy-fm~=2.5.0.dev0
|
|
13
|
+
Requires-Dist: flamapy-sat~=2.5.0.dev0
|
|
14
|
+
Requires-Dist: flamapy-bdd~=2.5.0.dev0
|
|
18
15
|
Provides-Extra: dev
|
|
19
16
|
Requires-Dist: pytest; extra == "dev"
|
|
20
17
|
Requires-Dist: pytest-mock; extra == "dev"
|
|
21
18
|
Requires-Dist: prospector; extra == "dev"
|
|
22
19
|
Requires-Dist: mypy; extra == "dev"
|
|
23
20
|
Requires-Dist: coverage; extra == "dev"
|
|
24
|
-
Dynamic:
|
|
25
|
-
Dynamic: author-email
|
|
26
|
-
Dynamic: classifier
|
|
27
|
-
Dynamic: description
|
|
28
|
-
Dynamic: description-content-type
|
|
29
|
-
Dynamic: home-page
|
|
30
|
-
Dynamic: provides-extra
|
|
31
|
-
Dynamic: requires-dist
|
|
32
|
-
Dynamic: requires-python
|
|
33
|
-
Dynamic: summary
|
|
21
|
+
Dynamic: license-file
|
|
34
22
|
|
|
35
23
|
<div align="center">
|
|
36
24
|
|
{flamapy-2.1.0.dev1 → flamapy-2.5.0.dev0}/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):
|
|
@@ -57,6 +60,18 @@ class FLAMAFeatureModel:
|
|
|
57
60
|
partial_set.append(feature.name)
|
|
58
61
|
result.append(partial_set)
|
|
59
62
|
return result
|
|
63
|
+
except FlamaException as exception:
|
|
64
|
+
logger.error("Error: %s", exception)
|
|
65
|
+
return None
|
|
66
|
+
|
|
67
|
+
def language_level(self) -> Union[None, Any]:
|
|
68
|
+
"""Return the UVL language level."""
|
|
69
|
+
|
|
70
|
+
try:
|
|
71
|
+
result = self.discover_metamodel.use_operation(
|
|
72
|
+
self.fm_model, "FMLanguageLevel"
|
|
73
|
+
).get_result()
|
|
74
|
+
return result
|
|
60
75
|
except FlamaException as exception:
|
|
61
76
|
print(f"Error: {exception}")
|
|
62
77
|
return None
|
|
@@ -77,7 +92,7 @@ class FLAMAFeatureModel:
|
|
|
77
92
|
).get_result()
|
|
78
93
|
return result
|
|
79
94
|
except FlamaException as exception:
|
|
80
|
-
|
|
95
|
+
logger.error("Error: %s", exception)
|
|
81
96
|
return None
|
|
82
97
|
|
|
83
98
|
def count_leafs(self) -> Union[None, int]:
|
|
@@ -94,7 +109,7 @@ class FLAMAFeatureModel:
|
|
|
94
109
|
).get_result()
|
|
95
110
|
return result
|
|
96
111
|
except FlamaException as exception:
|
|
97
|
-
|
|
112
|
+
logger.error("Error: %s", exception)
|
|
98
113
|
return None
|
|
99
114
|
|
|
100
115
|
def estimated_number_of_configurations(self) -> Union[None, int]:
|
|
@@ -113,7 +128,7 @@ class FLAMAFeatureModel:
|
|
|
113
128
|
).get_result()
|
|
114
129
|
return result
|
|
115
130
|
except FlamaException as exception:
|
|
116
|
-
|
|
131
|
+
logger.error("Error: %s", exception)
|
|
117
132
|
return None
|
|
118
133
|
|
|
119
134
|
def feature_ancestors(self, feature_name: str) -> Union[None, List[str]]:
|
|
@@ -133,7 +148,7 @@ class FLAMAFeatureModel:
|
|
|
133
148
|
result.append(res.name)
|
|
134
149
|
return result
|
|
135
150
|
except FlamaException as exception:
|
|
136
|
-
|
|
151
|
+
logger.error("Error: %s", exception)
|
|
137
152
|
return None
|
|
138
153
|
|
|
139
154
|
def leaf_features(self) -> Union[None, List[str]]:
|
|
@@ -159,7 +174,7 @@ class FLAMAFeatureModel:
|
|
|
159
174
|
leaf_features.append(feature.name)
|
|
160
175
|
return leaf_features
|
|
161
176
|
except FlamaException as exception:
|
|
162
|
-
|
|
177
|
+
logger.error("Error: %s", exception)
|
|
163
178
|
return None
|
|
164
179
|
|
|
165
180
|
def max_depth(self) -> Union[None, int]:
|
|
@@ -176,7 +191,7 @@ class FLAMAFeatureModel:
|
|
|
176
191
|
self.fm_model, "FMMaxDepthTree"
|
|
177
192
|
).get_result()
|
|
178
193
|
except FlamaException as exception:
|
|
179
|
-
|
|
194
|
+
logger.error("Error: %s", exception)
|
|
180
195
|
return None
|
|
181
196
|
|
|
182
197
|
# The methods above rely on sat to be executed.
|
|
@@ -195,7 +210,7 @@ class FLAMAFeatureModel:
|
|
|
195
210
|
).get_result()
|
|
196
211
|
return features
|
|
197
212
|
except FlamaException as exception:
|
|
198
|
-
|
|
213
|
+
logger.error("Error: %s", exception)
|
|
199
214
|
return None
|
|
200
215
|
|
|
201
216
|
def dead_features(self) -> Union[None, List[str]]:
|
|
@@ -211,7 +226,7 @@ class FLAMAFeatureModel:
|
|
|
211
226
|
).get_result()
|
|
212
227
|
return features
|
|
213
228
|
except FlamaException as exception:
|
|
214
|
-
|
|
229
|
+
logger.error("Error: %s", exception)
|
|
215
230
|
return None
|
|
216
231
|
|
|
217
232
|
def false_optional_features(self) -> Union[None, List[str]]:
|
|
@@ -230,7 +245,7 @@ class FLAMAFeatureModel:
|
|
|
230
245
|
features = operation.get_result()
|
|
231
246
|
return features
|
|
232
247
|
except FlamaException as exception:
|
|
233
|
-
|
|
248
|
+
logger.error("Error: %s", exception)
|
|
234
249
|
return None
|
|
235
250
|
|
|
236
251
|
def filter(self, configuration_path: str) -> Union[None, List[Configuration]]:
|
|
@@ -250,7 +265,7 @@ class FLAMAFeatureModel:
|
|
|
250
265
|
result = operation.get_result()
|
|
251
266
|
return result
|
|
252
267
|
except FlamaException as exception:
|
|
253
|
-
|
|
268
|
+
logger.error("Error: %s", exception)
|
|
254
269
|
return None
|
|
255
270
|
|
|
256
271
|
def configurations_number(self, with_sat: bool = False) -> Union[None, int]:
|
|
@@ -274,7 +289,7 @@ class FLAMAFeatureModel:
|
|
|
274
289
|
).get_result()
|
|
275
290
|
return nop
|
|
276
291
|
except FlamaException as exception:
|
|
277
|
-
|
|
292
|
+
logger.error("Error: %s", exception)
|
|
278
293
|
return None
|
|
279
294
|
|
|
280
295
|
def configurations(self, with_sat: bool = False) -> Union[None, List[Configuration]]:
|
|
@@ -297,7 +312,7 @@ class FLAMAFeatureModel:
|
|
|
297
312
|
).get_result()
|
|
298
313
|
return products
|
|
299
314
|
except FlamaException as exception:
|
|
300
|
-
|
|
315
|
+
logger.error("Error: %s", exception)
|
|
301
316
|
return None
|
|
302
317
|
|
|
303
318
|
def commonality(self, configuration_path: str) -> Union[None, float]:
|
|
@@ -317,7 +332,7 @@ class FLAMAFeatureModel:
|
|
|
317
332
|
operation.execute(self.sat_model)
|
|
318
333
|
return operation.get_result()
|
|
319
334
|
except FlamaException as exception:
|
|
320
|
-
|
|
335
|
+
logger.error("Error: %s", exception)
|
|
321
336
|
return None
|
|
322
337
|
|
|
323
338
|
def satisfiable_configuration(
|
|
@@ -346,7 +361,7 @@ class FLAMAFeatureModel:
|
|
|
346
361
|
result = operation.get_result()
|
|
347
362
|
return result
|
|
348
363
|
except FlamaException as exception:
|
|
349
|
-
|
|
364
|
+
logger.error("Error: %s", exception)
|
|
350
365
|
return None
|
|
351
366
|
|
|
352
367
|
def satisfiable(self) -> Union[None, bool]:
|
|
@@ -362,5 +377,5 @@ class FLAMAFeatureModel:
|
|
|
362
377
|
).get_result()
|
|
363
378
|
return result
|
|
364
379
|
except FlamaException as exception:
|
|
365
|
-
|
|
380
|
+
logger.error("Error: %s", exception)
|
|
366
381
|
return None
|
|
@@ -1,36 +1,24 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flamapy
|
|
3
|
-
Version: 2.
|
|
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
|
-
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
10
|
-
Classifier: Operating System :: OS Independent
|
|
3
|
+
Version: 2.5.0.dev0
|
|
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
|
|
11
8
|
Requires-Python: >=3.9
|
|
12
9
|
Description-Content-Type: text/markdown
|
|
13
|
-
|
|
14
|
-
Requires-Dist: flamapy-fw~=2.
|
|
15
|
-
Requires-Dist: flamapy-fm~=2.
|
|
16
|
-
Requires-Dist: flamapy-sat~=2.
|
|
17
|
-
Requires-Dist: flamapy-bdd~=2.
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Requires-Dist: flamapy-fw~=2.5.0.dev0
|
|
12
|
+
Requires-Dist: flamapy-fm~=2.5.0.dev0
|
|
13
|
+
Requires-Dist: flamapy-sat~=2.5.0.dev0
|
|
14
|
+
Requires-Dist: flamapy-bdd~=2.5.0.dev0
|
|
18
15
|
Provides-Extra: dev
|
|
19
16
|
Requires-Dist: pytest; extra == "dev"
|
|
20
17
|
Requires-Dist: pytest-mock; extra == "dev"
|
|
21
18
|
Requires-Dist: prospector; extra == "dev"
|
|
22
19
|
Requires-Dist: mypy; extra == "dev"
|
|
23
20
|
Requires-Dist: coverage; extra == "dev"
|
|
24
|
-
Dynamic:
|
|
25
|
-
Dynamic: author-email
|
|
26
|
-
Dynamic: classifier
|
|
27
|
-
Dynamic: description
|
|
28
|
-
Dynamic: description-content-type
|
|
29
|
-
Dynamic: home-page
|
|
30
|
-
Dynamic: provides-extra
|
|
31
|
-
Dynamic: requires-dist
|
|
32
|
-
Dynamic: requires-python
|
|
33
|
-
Dynamic: summary
|
|
21
|
+
Dynamic: license-file
|
|
34
22
|
|
|
35
23
|
<div align="center">
|
|
36
24
|
|
|
@@ -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.5.0.dev0"
|
|
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.5.0.dev0",
|
|
15
|
+
"flamapy-fm~=2.5.0.dev0",
|
|
16
|
+
"flamapy-sat~=2.5.0.dev0",
|
|
17
|
+
"flamapy-bdd~=2.5.0.dev0",
|
|
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
|
|
@@ -61,7 +61,7 @@ def test_core_features_operation(setup_model, expected_output):
|
|
|
61
61
|
operation = BDDCoreFeatures()
|
|
62
62
|
operation.execute(model)
|
|
63
63
|
result = operation.get_core_features()
|
|
64
|
-
assert result == expected_output, (
|
|
64
|
+
assert sorted(result) == sorted(expected_output), (
|
|
65
65
|
f"The result {result} does not match with the expected output {expected_output}"
|
|
66
66
|
)
|
|
67
67
|
|
|
@@ -109,7 +109,7 @@ def test_dead_features_operation(setup_model, expected_output):
|
|
|
109
109
|
operation = BDDDeadFeatures()
|
|
110
110
|
operation.execute(model)
|
|
111
111
|
result = operation.get_dead_features()
|
|
112
|
-
assert result == expected_output, (
|
|
112
|
+
assert sorted(result) == sorted(expected_output), (
|
|
113
113
|
f"The result {result} does not match the expected output {expected_output}"
|
|
114
114
|
)
|
|
115
115
|
|
flamapy-2.1.0.dev1/setup.py
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import setuptools
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
with open("README.md", "r") as fh:
|
|
5
|
-
long_description = fh.read()
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def read_requirements(file):
|
|
9
|
-
with open(file, "r") as fh:
|
|
10
|
-
return fh.read().splitlines()
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
# Read requirements from the requirements.txt file
|
|
14
|
-
requirements = read_requirements("requirements.txt")
|
|
15
|
-
|
|
16
|
-
# Read development requirements from the dev-requirements.txt file
|
|
17
|
-
dev_requirements = read_requirements("requirements-dev.txt")
|
|
18
|
-
|
|
19
|
-
setuptools.setup(
|
|
20
|
-
name="flamapy",
|
|
21
|
-
version="2.1.0.dev1",
|
|
22
|
-
author="Flamapy",
|
|
23
|
-
author_email="flamapy@us.es",
|
|
24
|
-
description="Flamapy feature model is a distribution of the " \
|
|
25
|
-
"flama framework containing all plugins required to analyze " \
|
|
26
|
-
"feature models. It also offers a richier API and a complete " \
|
|
27
|
-
"command line interface and documentation.",
|
|
28
|
-
long_description=long_description,
|
|
29
|
-
long_description_content_type="text/markdown",
|
|
30
|
-
url="https://github.com/flamapy/flamapy-feature-model",
|
|
31
|
-
packages=setuptools.find_namespace_packages(include=["flamapy.*"]),
|
|
32
|
-
classifiers=[
|
|
33
|
-
"Programming Language :: Python :: 3",
|
|
34
|
-
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
|
35
|
-
"Operating System :: OS Independent",
|
|
36
|
-
],
|
|
37
|
-
python_requires=">=3.9",
|
|
38
|
-
install_requires=requirements,
|
|
39
|
-
extras_require={"dev": dev_requirements},
|
|
40
|
-
entry_points={
|
|
41
|
-
"console_scripts": [
|
|
42
|
-
"flamapy = flamapy.commands:flamapy_cli",
|
|
43
|
-
],
|
|
44
|
-
},
|
|
45
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|