Skip to content

Commit 56e3dec

Browse files
committed
Provide optional dependencies for opm
1 parent 0c8cae5 commit 56e3dec

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed

Diff for: .github/workflows/CI.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,10 @@ jobs:
4141
run: |
4242
pip install --upgrade pip setuptools wheel
4343
pip install -r dev-requirements.txt
44-
pip install opm
4544
4645
- name: Install pyopmspe11
4746
run: |
48-
pip install .
47+
pip install .[opm]
4948
5049
- name: Check code style and linting
5150
run: |

Diff for: docs/_sources/installation.rst.txt

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ install the Python requirements in a virtual environment with the following comm
5151

5252
**pip install opm**
5353

54+
This is equivalent to execute **pip install -e .[opm]** in the installation process.
55+
5456
For not macOS users, to install the dependencies used for the figure's LaTeX formatting, execute
5557

5658
**sudo apt-get install texlive-fonts-recommended texlive-fonts-extra dvipng cm-super**

Diff for: docs/installation.html

+1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ <h2>Python package<a class="headerlink" href="#python-package" title="Link to th
132132
to <a class="reference external" href="https://github.com/equinor/resdata">resdata</a>, both are use to read OPM output files; while resdata is easier to
133133
install in macOS, opm seems to be faster), execute in the terminal</p>
134134
<p><strong>pip install opm</strong></p>
135+
<p>This is equivalent to execute <strong>pip install -e .[opm]</strong> in the installation process.</p>
135136
<p>For not macOS users, to install the dependencies used for the figure’s LaTeX formatting, execute</p>
136137
<p><strong>sudo apt-get install texlive-fonts-recommended texlive-fonts-extra dvipng cm-super</strong></p>
137138
<p>For macOS users, see <a class="reference internal" href="#macos"><span class="std std-ref">Source build in macOS</span></a>.</p>

Diff for: docs/searchindex.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: docs/text/installation.rst

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ install the Python requirements in a virtual environment with the following comm
5151

5252
**pip install opm**
5353

54+
This is equivalent to execute **pip install -e .[opm]** in the installation process.
55+
5456
For not macOS users, to install the dependencies used for the figure's LaTeX formatting, execute
5557

5658
**sudo apt-get install texlive-fonts-recommended texlive-fonts-extra dvipng cm-super**

Diff for: pyproject.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,7 @@ Repository = "https://github.com/cssr-tools/pyopmspe11"
5050

5151
[tool.setuptools]
5252
packages.find.where = ["src"]
53-
platforms = ["all"]
53+
platforms = ["all"]
54+
55+
[project.optional-dependencies]
56+
opm = ["opm"]

0 commit comments

Comments
 (0)