Skip to content

Commit

Permalink
Improve requirement management in setup.py (rely on requirements.txt)
Browse files Browse the repository at this point in the history
  • Loading branch information
nl78 committed Feb 10, 2025
1 parent 3a344d3 commit d23cddc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
except Exception as e:
print(f"Cannot create __version__.py: {e}")

requirements = []
with open("requirements.txt", newline='') as req_file:
for line in req_file:
requirements.append(line)

setup(
name="fmu_manipulation_toolbox",
version=version,
Expand Down Expand Up @@ -54,12 +59,7 @@
FMU Manipulation Toolbox also allows to group FMU's inside FMU Containers.
""",
install_requires=[
"PyQt5 >= 5.15.10",
"xmlschema >= 3.3.1",
"elementpath >= 4.4.0",
"colorama >= 0.4.6",
],
install_requires=requirements,
)

os.remove("fmu_manipulation_toolbox/__version__.py")

0 comments on commit d23cddc

Please sign in to comment.