Skip to content

Commit

Permalink
Remove dev-requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
dafeda committed Sep 20, 2023
1 parent 96c6a44 commit b083de7
Show file tree
Hide file tree
Showing 13 changed files with 50 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/annotate_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: install project
run: pip install .
- name: install dev requirements
run: pip install -r dev-requirements.txt
run: pip install ".[dev]"
- name: install typing requirements
run: pip install -r types-requirements.txt
- name: find changed files
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ jobs:
find . -name "*.whl" -exec pip install {} \;
- name: Install dependencies
run: pip install -r dev-requirements.txt
run: pip install ".[dev]"

- name: Make test directory
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Install with dependencies
run: |
pip install .
pip install -r dev-requirements.txt
pip install ".[dev]"
- name: Test GUI
if: matrix.test-type == 'gui-tests'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/doctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

- name: Install with dependencies
run: |
pip install -r dev-requirements.txt
pip install ".[dev]"
- name: Test doctest
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_ert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
find . -name "*.whl" -exec pip install {} \;
- name: Install dependencies
run: pip install -r dev-requirements.txt
run: pip install ".[dev]"

- name: Test GUI
if: inputs.test-type == 'gui-test'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/typing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install -r types-requirements.txt
python -m pip install -r dev-requirements.txt
python -m pip install ".[dev]"
python -m pip install grpcio-tools
python -m grpc_tools.protoc -I src/_ert_com_protocol --mypy_out=src/_ert_com_protocol src/_ert_com_protocol/_schema.proto
- run: echo ::add-matcher::.github/mypy-matcher.json
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ noise in the review process.

You can build the documentation after installation by running
```bash
pip install -r dev-requirements.txt
pip install ".[dev]"
sphinx-build -n -v -E -W ./docs ./tmp/ert_docs
```
and then open the generated `./tmp/ert_docs/index.html` in a browser.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pip install --editable .
Additional development packages must be installed to run the test suite:

```sh
pip install -r dev-requirements.txt
pip install ".[dev]"
pytest tests/
```

Expand Down
2 changes: 1 addition & 1 deletion ci/jenkins/Jenkinsfile-performance
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pipeline {
source /opt/rh/devtoolset-9/enable
pip install --upgrade pip
pip install .
pip install -r dev-requirements.txt
pip install ".[dev]"
"""
}
}
Expand Down
2 changes: 1 addition & 1 deletion ci/jenkins/testkomodo-ERT.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ copy_test_files () {
}

install_test_dependencies () {
pip install -r dev-requirements.txt
pip install ".[dev]"
}

install_package () {
Expand Down
2 changes: 1 addition & 1 deletion ci/jenkins/testkomodo-repeat-flaky.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ copy_test_files () {
}

install_test_dependencies () {
pip install -r dev-requirements.txt
pip install ".[dev]"
pip install pytest-repeat
}

Expand Down
2 changes: 1 addition & 1 deletion ci/testkomodo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ copy_test_files () {
}

install_test_dependencies () {
pip install -r dev-requirements.txt
pip install ".[dev]"
}

run_ert_with_opm () {
Expand Down
38 changes: 38 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,44 @@ ert = "ert.__main__:main"
[project.urls]
Repository = "https://github.com/equinor/ert"

[project.optional-dependencies]
dev = [
"click",
"decorator",
"ecl_data_io",
"furo",
"flaky",
"grpcio-tools",
"hypothesis<=6.83.0; python_version=='3.8'", # ipython pinned to 8.12.2 for python 3.8 support
"hypothesis; python_version>='3.9'",
"jsonpath_ng",
"jupytext",
"oil_reservoir_synthesizer",
"pytest-asyncio",
"pytest-benchmark",
"pytest-cov",
"pytest-memray",
"pytest-mock",
"pytest-mpl",
"pytest-qt",
"pytest-raises",
"pytest-snapshot",
"pytest-timeout",
"pytest-xdist",
"pytest>6",
"requests",
"scikit-build",
"setuptools_scm",
"sortedcontainers",
"sphinx<7.2",
"sphinx-argparse",
"sphinx-autoapi",
"sphinx-copybutton",
"sphinxcontrib-plantuml",
"sphinxcontrib.datatemplates",
"testpath",
]

[tool.pytest.ini_options]
addopts = "-ra --strict-markers"
markers = [
Expand Down

0 comments on commit b083de7

Please sign in to comment.