Skip to content

Commit

Permalink
Migrate from setup.py to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
larsevj committed Sep 10, 2024
1 parent 9630cc6 commit c42f651
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 136 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/fmu-ensemble.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,10 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: 📦 Install fmu-ensemble with dependencies
run: |
pip install --upgrade pip
pip install .
- name: 📦 Install test dependencies
- name: 📦 Install fmu-ensemble with test dependencies
run: |
pip install res2df
pip install .[tests,docs]
pip install .[tests, docs]
pip install "${{ matrix.numpy-version }}"
- name: Install ecl2df
Expand Down
Empty file removed .projectile
Empty file.
32 changes: 0 additions & 32 deletions .pylintrc

This file was deleted.

1 change: 0 additions & 1 deletion bandit.yml

This file was deleted.

5 changes: 0 additions & 5 deletions docs_requirements.txt

This file was deleted.

69 changes: 69 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
[build-system]
requires = ["setuptools>65", "setuptools_scm"]
build-backend = "setuptools.build_meta"

[project]
name = "fmu-ensemble"
authors = [
{name = "Håvard Berland", email = "[email protected]"},
]
description = "Python API to ensembles produced by ERT"
requires-python = ">= 3.8"
readme = "README.rst"
license = {text = "GPL-3.0"}
keywords = ["fmu", "ensemble"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dynamic = ["version"]
dependencies = [
"resdata >= 4.0.0",
"numpy",
"pandas",
"pyyaml >= 5.1",
]

[project.urls]
Repository = "https://github.com/equinor/fmu-ensemble"

[project.optional-dependencies]
test = [
"pytest>=2.9.2",
"pytest-cov",
]
docs = [
"ipython",
"rstcheck",
"sphinx",
"sphinx-argparse",
"sphinx_rtd_theme",
]
style = [
"pre-commit",
]
parquet = [
"pyarrow",
]

[tool.setuptools]
package-dir = {"" = "src"}
include-package-data = true

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

[tool.setuptools_scm]
write_to = "src/fmu/ensemble/version.py"

[tool.rstcheck]
ignore_directives = ["argparse", "automodule"]
# This looks like a bug in rstcheck:
ignore_messages = "Hyperlink target .* is not referenced"
22 changes: 0 additions & 22 deletions setup.cfg

This file was deleted.

65 changes: 0 additions & 65 deletions setup.py

This file was deleted.

4 changes: 0 additions & 4 deletions test_requirements.txt

This file was deleted.

0 comments on commit c42f651

Please sign in to comment.