Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide optional dependencies for opm #103

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ jobs:
run: |
pip install --upgrade pip setuptools wheel
pip install -r dev-requirements.txt
pip install opm

- name: Install pyopmspe11
run: |
pip install .
pip install .[opm]

- name: Check code style and linting
run: |
Expand Down
2 changes: 2 additions & 0 deletions docs/_sources/installation.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ install the Python requirements in a virtual environment with the following comm

**pip install opm**

This is equivalent to execute **pip install -e .[opm]** in the installation process.

For not macOS users, to install the dependencies used for the figure's LaTeX formatting, execute

**sudo apt-get install texlive-fonts-recommended texlive-fonts-extra dvipng cm-super**
Expand Down
1 change: 1 addition & 0 deletions docs/installation.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ <h2>Python package<a class="headerlink" href="#python-package" title="Link to th
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
install in macOS, opm seems to be faster), execute in the terminal</p>
<p><strong>pip install opm</strong></p>
<p>This is equivalent to execute <strong>pip install -e .[opm]</strong> in the installation process.</p>
<p>For not macOS users, to install the dependencies used for the figure’s LaTeX formatting, execute</p>
<p><strong>sudo apt-get install texlive-fonts-recommended texlive-fonts-extra dvipng cm-super</strong></p>
<p>For macOS users, see <a class="reference internal" href="#macos"><span class="std std-ref">Source build in macOS</span></a>.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/text/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ install the Python requirements in a virtual environment with the following comm

**pip install opm**

This is equivalent to execute **pip install -e .[opm]** in the installation process.

For not macOS users, to install the dependencies used for the figure's LaTeX formatting, execute

**sudo apt-get install texlive-fonts-recommended texlive-fonts-extra dvipng cm-super**
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,7 @@ Repository = "https://github.com/cssr-tools/pyopmspe11"

[tool.setuptools]
packages.find.where = ["src"]
platforms = ["all"]
platforms = ["all"]

[project.optional-dependencies]
opm = ["opm"]
Loading