flamapy-fw 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.
Files changed (57) hide show
  1. flamapy_fw-2.1.0.dev2/LICENSE +165 -0
  2. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/PKG-INFO +12 -12
  3. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/discover.py +7 -2
  4. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/models/ast.py +2 -19
  5. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/utils.py +1 -1
  6. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy_fw.egg-info/PKG-INFO +12 -12
  7. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy_fw.egg-info/SOURCES.txt +1 -0
  8. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy_fw.egg-info/entry_points.txt +0 -1
  9. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/pyproject.toml +33 -1
  10. flamapy_fw-2.1.0.dev2/setup.py +3 -0
  11. flamapy-fw-2.1.0.dev0/setup.py +0 -41
  12. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/README.md +0 -0
  13. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/__init__.py +0 -0
  14. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/config.py +0 -0
  15. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/exceptions.py +0 -0
  16. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/models/__init__.py +0 -0
  17. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/models/variability_model.py +0 -0
  18. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/__init__.py +0 -0
  19. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/abstract_operation.py +0 -0
  20. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/atomic_sets.py +0 -0
  21. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/average_branching_factor.py +0 -0
  22. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/commonality.py +0 -0
  23. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/configurations.py +0 -0
  24. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/configurations_number.py +0 -0
  25. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/core_features.py +0 -0
  26. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/count_leafs.py +0 -0
  27. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/dead_features.py +0 -0
  28. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/error_detection.py +0 -0
  29. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/error_diagnosis.py +0 -0
  30. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/estimated_configurations_number.py +0 -0
  31. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/false_optional_features.py +0 -0
  32. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/filter.py +0 -0
  33. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/metrics_operation.py +0 -0
  34. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/sampling.py +0 -0
  35. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/satisfiable.py +0 -0
  36. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/satisfiable_configuration.py +0 -0
  37. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/operations/variability.py +0 -0
  38. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/plugins.py +0 -0
  39. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/transformations/__init__.py +0 -0
  40. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/transformations/abstract_transformation.py +0 -0
  41. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/transformations/model_to_model.py +0 -0
  42. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/transformations/model_to_text.py +0 -0
  43. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/core/transformations/text_to_model.py +0 -0
  44. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/metamodels/configuration_metamodel/__init__.py +0 -0
  45. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/metamodels/configuration_metamodel/models/__init__.py +0 -0
  46. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/metamodels/configuration_metamodel/models/configuration.py +0 -0
  47. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/metamodels/configuration_metamodel/transformations/__init__.py +0 -0
  48. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/metamodels/configuration_metamodel/transformations/configuration_basic_reader.py +0 -0
  49. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/metamodels/configuration_metamodel/transformations/configuration_basic_writer.py +0 -0
  50. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/metamodels/configuration_metamodel/transformations/configuration_json_reader.py +0 -0
  51. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/metamodels/configuration_metamodel/transformations/configuration_json_writer.py +0 -0
  52. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/metamodels/configuration_metamodel/transformations/uvls_json_reader.py +0 -0
  53. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy/metamodels/configuration_metamodel/transformations/uvls_json_writer.py +0 -0
  54. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy_fw.egg-info/dependency_links.txt +0 -0
  55. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy_fw.egg-info/requires.txt +0 -0
  56. {flamapy-fw-2.1.0.dev0 → flamapy_fw-2.1.0.dev2}/flamapy_fw.egg-info/top_level.txt +0 -0
  57. {flamapy-fw-2.1.0.dev0 → flamapy_fw-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,20 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: flamapy-fw
3
- Version: 2.1.0.dev0
3
+ Version: 2.1.0.dev2
4
4
  Summary: Flamapy is a Python-based AAFM framework that takes into consideration previous AAFM tool designs and enables multi-solver and multi-metamodel support for the integration of AAFM tooling on the Python ecosystem.
5
- Home-page: https://github.com/flamapy/core
6
- Author: Flamapy
7
- Author-email: flamapy@us.es
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
5
+ Author-email: Flamapy <flamapy@us.es>
6
+ License-Expression: GPL-3.0-or-later
7
+ Project-URL: Homepage, https://github.com/flamapy/core
13
8
  Requires-Python: >=3.9
14
9
  Description-Content-Type: text/markdown
10
+ License-File: LICENSE
15
11
  Provides-Extra: dev
12
+ Requires-Dist: pytest; extra == "dev"
13
+ Requires-Dist: pytest-mock; extra == "dev"
14
+ Requires-Dist: prospector; extra == "dev"
15
+ Requires-Dist: mypy; extra == "dev"
16
+ Requires-Dist: coverage; extra == "dev"
17
+ Dynamic: license-file
16
18
 
17
19
  # Flamapy
18
20
  Flamapy is a Python-based AAFM framework that takes into consideration previous AAFM tool designs and enables multi-solver and multi-metamodel support for the integration of AAFM tooling on the Python ecosystem.
@@ -39,5 +41,3 @@ Detailed changes for each release are documented in the [release notes](https://
39
41
  ## Contributing
40
42
 
41
43
  See [CONTRIBUTING.md](https://github.com/diverso-lab/core/blob/master/CONTRIBUTING.md)
42
-
43
-
@@ -50,7 +50,12 @@ class DiscoverMetamodels:
50
50
  classes += self.search_classes(import_module(file_name))
51
51
  else:
52
52
  _file = import_module(file_name)
53
- classes += inspect.getmembers(_file, inspect.isclass)
53
+ classes += [
54
+ member
55
+ for member in inspect.getmembers(_file, inspect.isclass)
56
+ if member[1].__module__ == _file.__name__
57
+ ]
58
+
54
59
  return classes
55
60
 
56
61
  def discover(self) -> Plugins:
@@ -251,7 +256,7 @@ class DiscoverMetamodels:
251
256
 
252
257
  def __transform_to_model_from_file(self, file: str) -> VariabilityModel:
253
258
  t2m_transformations = self.get_transformations_t2m()
254
- extension = file.split(".")[-1]
259
+ extension = file.rsplit(".", maxsplit=1)[-1]
255
260
  t2m_filters = filter(
256
261
  lambda t2m: t2m.get_source_extension() == extension, t2m_transformations
257
262
  )
@@ -1,4 +1,3 @@
1
- import string
2
1
  from typing import Any
3
2
  from enum import Enum
4
3
 
@@ -95,7 +94,7 @@ class Node:
95
94
  return self.is_op() and self.data in AGGREGATION_OPERATORS
96
95
 
97
96
  def __str__(self) -> str:
98
- data = self.data.value if self.is_op() else safename(str(self.data))
97
+ data = self.data.value if self.is_op() else str(self.data)
99
98
  if self.left and self.right:
100
99
  return f"{data}[{self.left}][{self.right}]"
101
100
  if self.left and not self.right:
@@ -116,7 +115,7 @@ class Node:
116
115
  return res
117
116
 
118
117
  def pretty_str(self) -> str:
119
- data = self.data.value if self.is_op() else safename(str(self.data))
118
+ data = self.data.value if self.is_op() else str(self.data)
120
119
  left = Node._get_pretty_str_node(self.left) if self.left is not None else ""
121
120
  right = Node._get_pretty_str_node(self.right) if self.right is not None else ""
122
121
 
@@ -381,19 +380,3 @@ def get_clause_from_or_node(node: Node) -> list[Any]:
381
380
  term = node.right.data if node.right.is_term() else f"-{node.right.left.data}"
382
381
  clause.append(term)
383
382
  return clause
384
-
385
-
386
- def safename(name: str) -> str:
387
- if "." in name:
388
- return ".".join([safe_simple_name(simple_name) for simple_name in name.split(".")])
389
- return safe_simple_name(name)
390
-
391
-
392
- def safe_simple_name(name: str) -> str:
393
- if name.startswith("'") and name.endswith("'"):
394
- return name
395
- return f'"{name}"' if any(char not in safecharacters() for char in name) else name
396
-
397
-
398
- def safecharacters() -> str:
399
- return string.ascii_letters + string.digits + "_"
@@ -2,7 +2,7 @@ import os.path
2
2
 
3
3
 
4
4
  def extract_filename_extension(filename: str) -> str:
5
- return filename.split(".")[-1]
5
+ return filename.rsplit(".", maxsplit=1)[-1]
6
6
 
7
7
 
8
8
  def file_exists(filepath: str) -> bool:
@@ -1,18 +1,20 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: flamapy-fw
3
- Version: 2.1.0.dev0
3
+ Version: 2.1.0.dev2
4
4
  Summary: Flamapy is a Python-based AAFM framework that takes into consideration previous AAFM tool designs and enables multi-solver and multi-metamodel support for the integration of AAFM tooling on the Python ecosystem.
5
- Home-page: https://github.com/flamapy/core
6
- Author: Flamapy
7
- Author-email: flamapy@us.es
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
5
+ Author-email: Flamapy <flamapy@us.es>
6
+ License-Expression: GPL-3.0-or-later
7
+ Project-URL: Homepage, https://github.com/flamapy/core
13
8
  Requires-Python: >=3.9
14
9
  Description-Content-Type: text/markdown
10
+ License-File: LICENSE
15
11
  Provides-Extra: dev
12
+ Requires-Dist: pytest; extra == "dev"
13
+ Requires-Dist: pytest-mock; extra == "dev"
14
+ Requires-Dist: prospector; extra == "dev"
15
+ Requires-Dist: mypy; extra == "dev"
16
+ Requires-Dist: coverage; extra == "dev"
17
+ Dynamic: license-file
16
18
 
17
19
  # Flamapy
18
20
  Flamapy is a Python-based AAFM framework that takes into consideration previous AAFM tool designs and enables multi-solver and multi-metamodel support for the integration of AAFM tooling on the Python ecosystem.
@@ -39,5 +41,3 @@ Detailed changes for each release are documented in the [release notes](https://
39
41
  ## Contributing
40
42
 
41
43
  See [CONTRIBUTING.md](https://github.com/diverso-lab/core/blob/master/CONTRIBUTING.md)
42
-
43
-
@@ -1,3 +1,4 @@
1
+ LICENSE
1
2
  README.md
2
3
  pyproject.toml
3
4
  setup.py
@@ -1,3 +1,2 @@
1
1
  [console_scripts]
2
2
  flamapy = flamapy.commands:flamapy_cli
3
-
@@ -1,6 +1,38 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "flamapy-fw"
7
+ version = "2.1.0.dev2"
8
+ description = "Flamapy is a Python-based AAFM framework that takes into consideration previous AAFM tool designs and enables multi-solver and multi-metamodel support for the integration of AAFM tooling on the Python ecosystem."
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
+
15
+ [project.optional-dependencies]
16
+ dev = [
17
+ "pytest",
18
+ "pytest-mock",
19
+ "prospector",
20
+ "mypy",
21
+ "coverage",
22
+ ]
23
+
24
+ [project.scripts]
25
+ flamapy = "flamapy.commands:flamapy_cli"
26
+
27
+ [project.urls]
28
+ Homepage = "https://github.com/flamapy/core"
29
+
30
+ [tool.setuptools.packages.find]
31
+ include = ["flamapy.*"]
32
+
1
33
  [tool.ruff]
2
34
  line-length = 100 # Matches max-line-length from pycodestyle
3
- target-version = "py38" # Adjust if using another Python version
35
+ target-version = "py39"
4
36
 
5
37
  [tool.ruff.lint]
6
38
  select = ["E", "W", "F", "C", "PL", "RUF"] # Includes pycodestyle, pylint, and McCabe complexity
@@ -0,0 +1,3 @@
1
+ from setuptools import setup
2
+
3
+ setup()
@@ -1,41 +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 development requirements from the dev-requirements.txt file
14
- dev_requirements = read_requirements("requirements-dev.txt")
15
-
16
- setuptools.setup(
17
- name="flamapy-fw",
18
- version="2.1.0.dev0",
19
- author="Flamapy",
20
- author_email="flamapy@us.es",
21
- description="Flamapy is a Python-based AAFM framework that takes " \
22
- "into consideration previous AAFM tool designs and enables multi-solver "
23
- "and multi-metamodel support for the integration of AAFM tooling on " \
24
- "the Python ecosystem.",
25
- long_description=long_description,
26
- long_description_content_type="text/markdown",
27
- url="https://github.com/flamapy/core",
28
- packages=setuptools.find_namespace_packages(include=["flamapy.*"]),
29
- classifiers=[
30
- "Programming Language :: Python :: 3",
31
- "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
32
- "Operating System :: OS Independent",
33
- ],
34
- python_requires=">=3.9",
35
- extras_require={"dev": dev_requirements},
36
- entry_points={
37
- "console_scripts": [
38
- "flamapy = flamapy.commands:flamapy_cli",
39
- ],
40
- },
41
- )