-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert to pure pyproject.toml setup
- Loading branch information
1 parent
4887ca8
commit 9aefc6f
Showing
17 changed files
with
119 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
ignore = W503, E203 | ||
exclude = docs/conf.py, .eggs, version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ build: | |
|
||
python: | ||
install: | ||
- requirements: requirements/requirements.txt | ||
- method: pip | ||
path: .[docs] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,83 @@ | ||
# NOTE: you have to use single-quoted strings in TOML for regular expressions. | ||
[build-system] | ||
requires = ["pip>=19.1.1", "setuptools", "setuptools_scm[toml]>=6.2"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "fmu-dataio" | ||
description = "Facilitate data io in FMU with rich metadata" | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
license = { text = "Apache 2.0" } | ||
authors = [ | ||
{ name = "Equinor", email = "[email protected]" }, | ||
] | ||
keywords = ["fmu", "sumo"] | ||
|
||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Natural Language :: English", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Physics", | ||
"Topic :: Software Development :: Libraries", | ||
"Topic :: Utilities", | ||
] | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"xtgeo>=2.16", | ||
"PyYAML", | ||
"pyarrow", | ||
"fmu-config>=1.1.0", | ||
"pandas", | ||
"numpy" | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/equinor/fmu-dataio" | ||
Repository = "https://github.com/equinor/fmu-dataio" | ||
Issues = "https://github.com/equinor/fmu-dataio/issues" | ||
Documentation = "https://xtgeo.readthedocs.io" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"black", | ||
"coverage>=4.1", | ||
"flake8", | ||
"isort", | ||
"hypothesis", | ||
"mypy", | ||
"pylint", | ||
"pytest", | ||
"pytest-cov", | ||
"pydocstyle", | ||
"pytest-runner", | ||
"pytest-mock", | ||
"termcolor", | ||
"rstcheck", | ||
] | ||
docs = [ | ||
"pydocstyle", | ||
"Sphinx<7", | ||
"autoapi", | ||
"sphinx-rtd-theme", | ||
"sphinx-autodoc-typehints<1.23", | ||
"sphinxcontrib-apidoc", | ||
"sphinx-togglebutton", | ||
"urllib3<1.27", | ||
] | ||
|
||
[project.entry-points.ert] | ||
dataio_case_metadata = "fmu.dataio.scripts.create_case_metadata" | ||
|
||
|
||
[tool.black] | ||
line-length = 88 | ||
target-version = ['py38', 'py39', 'py310', 'py311'] | ||
|
@@ -25,5 +104,25 @@ exclude = ''' | |
[tool.isort] | ||
profile = "black" | ||
|
||
[build-system] | ||
requires = ["pip>=19.1.1", "setuptools>=28", "setuptools_scm>=3.2.0", "pyarrow"] | ||
|
||
[tool.setuptools_scm] | ||
write_to = "src/fmu/dataio/version.py" | ||
|
||
[tool.pytest.ini_options] | ||
minversion = "6.0" | ||
addopts = "--verbose" | ||
log_cli = "False" | ||
log_cli_format = "%(levelname)8s (%(relativeCreated)6.0fms) %(filename)44s [%(funcName)40s()] %(lineno)4d >> %(message)s" | ||
log_cli_level = "INFO" | ||
testpaths = "tests" | ||
markers = [ | ||
"integration: marks a test as an integration test", | ||
] | ||
xfail_strict = true | ||
|
||
[tool.mypy] | ||
ignore_missing_imports = true | ||
|
||
[tool.pydocstyle] | ||
convention = "google" | ||
match = '(?!(test_|_)).*\.py' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#pytest tests/test_grid3d/test_grid.py::test_roffbin_import_v2_emerald -o log_cli=true -s | ||
|
||
[pytest] | ||
minversion = 6.0 | ||
addopts = --verbose | ||
log_cli = False | ||
log_cli_format = %(levelname)8s (%(relativeCreated)6.0fms) %(name)37s [%(funcName)42s()] %(lineno)4d >> %(message)s | ||
log_cli_level = INFO | ||
testpaths = | ||
tests | ||
# [pytest] | ||
# minversion = 6.0 | ||
# addopts = --verbose | ||
# log_cli = False | ||
# log_cli_format = %(levelname)8s (%(relativeCreated)6.0fms) %(name)37s [%(funcName)42s()] %(lineno)4d >> %(message)s | ||
# log_cli_level = INFO | ||
# testpaths = | ||
# tests |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.